Re: [Orgmode] Re: formatting times as HH:MM with leading zeros

2010-01-21 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Jan 20, 2010, at 9:28 PM, Stephen Eglen wrote:


Thanks Carsten.


P.S. I know you have signed some copyright papers.  Do they cover all
of Emacs?

yes, all of emacs.

Here is patch and suggested changelog.

thanks!
Stephen

p.s. 'M-x occur RET Non-nil means, RET' in org-agenda.el shows 33
instances of where  a comma has been placed after the word 'means'.  I
think this is wrong, and a misinterpretation of the advice from
elisp.info:

  * The documentation string for a variable that is a yes-or-no flag
should start with words such as "Non-nil means," to make it clear
that all non-`nil' values are equivalent and indicate explicitly
what `nil' and non-`nil' mean.

as I think the comma before the closing quote is supposed to be  
outside

the quote (US style).  Likewise, grep shows this typo in many other
places in org lisp files.  Compare with files.el from Emacs, where you
always see 'Non-nil means 'without the comma.



2010-01-20  Stephen Eglen  

* org-agenda.el (org-get-time-of-day): Use
org-agenda-time-leading-zero to allow leading zero (rather than
space) for times.

*** /var/folders/46/46z6IiS7Fkihleb0T+9Yvk+++TI/-Tmp-/ediff20705uea	 
Wed Jan 20 20:18:24 2010
--- /Users/stephen/langs/emacs/elisp-ds/org-mode/lisp/org-agenda.el	 
Wed Jan 20 20:18:20 2010

***
*** 805,810 
--- 805,816 
 (format "%-10s %2d %s %4d%s"
dayname day monthname year weekstring)))

+ (defcustom org-agenda-time-leading-zero nil
+   "Non-nil means use leading zero for military times in agenda.
+ For example, 9:30am would become 09:30 rather than  9:30."
+   :group 'org-agenda-daily/weekly
+   :type 'boolean)
+
 (defcustom org-agenda-weekend-days '(6 0)
   "Which days are weekend?
 These days get the special face `org-agenda-date-weekend' in the  
agenda

***
*** 4902,4907 
--- 4908,4915 
(mod h1 24) h1))
(t0 (+ (* 100 h2) m))
(t1 (concat (if (>= h1 24) "+" " ")
+   (if (and org-agenda-time-leading-zero
+(< t0 1000)) "0" "")
(if (< t0 100) "0" "")
(if (< t0 10)  "0" "")
(int-to-string t0




- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: formatting times as HH:MM with leading zeros

2010-01-21 Thread Carsten Dominik


On Jan 20, 2010, at 9:28 PM, Stephen Eglen wrote:


p.s. 'M-x occur RET Non-nil means, RET' in org-agenda.el shows 33
instances of where  a comma has been placed after the word 'means'.  I
think this is wrong, and a misinterpretation of the advice from
elisp.info:

  * The documentation string for a variable that is a yes-or-no flag
should start with words such as "Non-nil means," to make it clear
that all non-`nil' values are equivalent and indicate explicitly
what `nil' and non-`nil' mean.

as I think the comma before the closing quote is supposed to be  
outside

the quote (US style).  Likewise, grep shows this typo in many other
places in org lisp files.  Compare with files.el from Emacs, where you
always see 'Non-nil means 'without the comma.


OK, I fixed these as well.  Can't push right now for some reason, so  
it will be in the next push when things work again.


THANKS

- Carsten





2010-01-20  Stephen Eglen  

* org-agenda.el (org-get-time-of-day): Use
org-agenda-time-leading-zero to allow leading zero (rather than
space) for times.

*** /var/folders/46/46z6IiS7Fkihleb0T+9Yvk+++TI/-Tmp-/ediff20705uea	 
Wed Jan 20 20:18:24 2010
--- /Users/stephen/langs/emacs/elisp-ds/org-mode/lisp/org-agenda.el	 
Wed Jan 20 20:18:20 2010

***
*** 805,810 
--- 805,816 
 (format "%-10s %2d %s %4d%s"
dayname day monthname year weekstring)))

+ (defcustom org-agenda-time-leading-zero nil
+   "Non-nil means use leading zero for military times in agenda.
+ For example, 9:30am would become 09:30 rather than  9:30."
+   :group 'org-agenda-daily/weekly
+   :type 'boolean)
+
 (defcustom org-agenda-weekend-days '(6 0)
   "Which days are weekend?
 These days get the special face `org-agenda-date-weekend' in the  
agenda

***
*** 4902,4907 
--- 4908,4915 
(mod h1 24) h1))
(t0 (+ (* 100 h2) m))
(t1 (concat (if (>= h1 24) "+" " ")
+   (if (and org-agenda-time-leading-zero
+(< t0 1000)) "0" "")
(if (< t0 100) "0" "")
(if (< t0 10)  "0" "")
(int-to-string t0




- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Open link with different suffix in org mode

2010-01-21 Thread Xin Shi
Hello Experts,

I'm using Emacs 23.1.1 and org mode 6.34b.  In the org file, if I use a link
say [[./link.org][test]], it will open the link.org file in another buffer
with orgmode. It will be also true, if I use [[./link.txt][link test]],
which will open a link.txt file with Text mode. However, if I do the
following:

[[./test.info][test]], it will just hang there. It seems that org does not
know how to deal with the .info suffix. Are there any way to set the org to
open different link?
I've read the org manual, but didn't find the solution. Any suggestions?

Thanks!

Xin
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] Moving to babel the whole configuration

2010-01-21 Thread andrea
I'm really tempted to move all my emacs configuration in only one big file.
This would also help me to make it more consistent and readable.

But I'm afraid to mess up something, in theory I just need:
- a simple org and babel loader
- one big file containing everything

But how is emacs behaving?

For example the customization frame would be able to write on that file?

Other possible problems?



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Taru Karttunen
Hello

I am wondering whether org-babel would be suitable for managing a
bibtex database of ~1500 entries. I am thinking of making Bibtex
entries into literate source code and thus have org-mode managing
them in a more sensible way.

Has anyone else done something like this? Any better ideas how to
accomplish this?

- Taru Karttunen




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] Moving to babel the whole configuration

2010-01-21 Thread Dan Davison
andrea  writes:

> I'm really tempted to move all my emacs configuration in only one big file.
> This would also help me to make it more consistent and readable.
>
> But I'm afraid to mess up something, in theory I just need:
> - a simple org and babel loader
> - one big file containing everything
>

Hi Andrea,

I've used a single org mode file to keep all my emacs configuration code
for the last 5 months or so and I have not had any problems at all. I
highly recommend it.  I am using a simple set up:

My ~/.emacs contains

--
(add-to-list 'load-path "/usr/local/src/org-mode/lisp")
(add-to-list 'load-path "/usr/local/src/org-mode/contrib/lisp")
(require 'org-install)
(require 'org-babel-init)
(org-babel-load-file "~/config/emacs/emacs.org")
--

and all the rest of my emacs config code is in ~/config/emacs/emacs.org

There is a more sophisticated setup described in the org-babel manual

http://orgmode.org/worg/org-contrib/babel/intro.php

in the section "Emacs Initialization with Org-babel"

> But how is emacs behaving?
>
> For example the customization frame would be able to write on that file?

M-x customize writes things like (custom-set-variables ...) to the
bottom of my ~/.emacs file. But I don't really use M-x customize much.

Dan

>
> Other possible problems?



>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] Moving to babel the whole configuration

2010-01-21 Thread Thomas S. Dye


On Jan 21, 2010, at 6:19 AM, andrea wrote:

I'm really tempted to move all my emacs configuration in only one  
big file.

This would also help me to make it more consistent and readable.

But I'm afraid to mess up something, in theory I just need:
- a simple org and babel loader
- one big file containing everything

But how is emacs behaving?

For example the customization frame would be able to write on that  
file?


Other possible problems?


Hi Andrea,

Have you seen the emacs starter kits?  I've found Eric Schulte's  
starter kit to be very handy.  After struggling with emacs  
configuration for decades I now have at least the illusion of  
control.  The configuration is held in a series of org files that hold  
emacs-lisp code blocks, which are tangled to produce the .el file that  
emacs expects.  Each of my code chunks resides under its own org-mode  
heading, replete with notes, links, etc.  It is kind of like a  
literate .emacs program.


hth,
Tom


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Thomas S. Dye


On Jan 21, 2010, at 6:20 AM, Taru Karttunen wrote:


Hello

I am wondering whether org-babel would be suitable for managing a
bibtex database of ~1500 entries. I am thinking of making Bibtex
entries into literate source code and thus have org-mode managing
them in a more sensible way.

Has anyone else done something like this? Any better ideas how to
accomplish this?

- Taru Karttunen


Aloha Taru,

This is an interesting idea.  I haven't tried it, but I have spent a  
lot of effort over many years maintaining a large BibTeX database.


Once bibtex is registered as an Org-babel language, then bibtex mode  
would be available for editing entries.  Org keywords have an  
immediate and obvious use for topical bibliographies.  The literate  
programming capability of Org-babel might be used to implement an  
authority list for author names, which would help solve one of the  
biggest problems we have trying to maintain a database with many  
contributors.


Please keep me up-to-date as you either implement an org-mode BibTeX  
database or decide against it for some reason.


All the best,
Tom 
 



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org Folded View when Startup

2010-01-21 Thread Chao Lu
Hey,

I found my Org refuse to do the overview view correctly. Although I have
explicitly set the org-startup-folded to be t. Each time when I open an org
file, it still in plain view (not folded). So I have to M-x org-mode, then
it enters the fold view, which is really annoying...

Could anybody help me?

My version of Emacs is 23.1.90.1 (WinNT), Org-mode is 6.33trans.

And my configure for org is included in attachment.

Thanks a lot.

Chao


org.el
Description: Binary data
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Torsten Wagner
Hi Taru,

I was thinking of something similar but (even if I like org-babel a lot) not 
based on org-babel. I think a own mode ala org-bibtex would be nice. However, 
the ideas might be joinable.

My idea would be to have somethink like the org-mode link-feature. However, 
instead of asking for the link and a describtion text, I like to give the 
bibtex-key only. Somewhere in the Header I like to define the bibtex style and 
as soon as I finish this kind of link, it would be formated *direclty* 
according to the bibtex-style. Removing one of the square brackets should show 
the single bibtex entry for possible modifications. Closing the link again will 
reformat the descriptive text accordingly. 

By this way I would be able to maintain the database in org-mode with addional 
notes and information which are not interesting for the database records.

Just an idea..


Totti


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Bill Powell
At Fri, 22 Jan 2010 09:35:06 +0900,
Torsten Wagner wrote:
> 
> Hi Taru,
> 
> I was thinking of something similar but (even if I like org-babel a lot) not 
> based on org-babel. I think a own mode ala org-bibtex would be nice. However, 
> the ideas might be joinable.
> 
> My idea would be to have somethink like the org-mode link-feature. However, 
> instead of asking for the link and a describtion text, I like to give the 
> bibtex-key only. Somewhere in the Header I like to define the bibtex style 
> and 
> as soon as I finish this kind of link, it would be formated *direclty* 
> according to the bibtex-style. Removing one of the square brackets should 
> show 
> the single bibtex entry for possible modifications. Closing the link again 
> will 
> reformat the descriptive text accordingly. 
> 
> By this way I would be able to maintain the database in org-mode with 
> addional 
> notes and information which are not interesting for the database records.
> 
> Just an idea..

Managing bibtex in org-mode sounds exciting! I wish I had some helpful
ideas, but at least I'll be delighted to beta test anything y'all think up.
Here's a +1 to figuring this out. :)

Bill Powell



> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-babel

2010-01-21 Thread Richard Riley

Two questions/requests on this nice module

1) Open src blocks to edit : I found docs which said C-c c-o or C-c '
should open src blocks. The first executes it according to the docs. So
how to open? Is there no standard binding I might need to enable?

2) I set up the emacs init as described in the org-babel web pages
http://orgmode.org/worg/org-contrib/babel/intro.php#sec-8.2.1 and I am
up and running but only after I manually created my emacs-init.el which
corresponds to the emacs-init.org file that org-babel processes as my
emacs init file. My understanding was that babel should create that file
from the code snippets in the org file on its own.  Or does it need to
be turned on? It doesnt create by default as the instructions seem to
suggest.


Small bug - Further to (2) the instructions here
http://orgmode.org/worg/org-contrib/babel/intro.php incorrectly contain
"org" as the path following a git clone (src/org/contrib/lisp etc) - it
should be org-mode on the path.



regards,

r.

-- 
Google Talk : rileyrg...@googlemail.com  http://www.google.com/talk

ASCII ribbon campaign ( )
 - against HTML email  X
 & vCards / \


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Resumes in orgmode

2010-01-21 Thread Raffi R
Dear list,

I've recently taken the first step toward maintaining my resumé in
orgmode. I was wondering if anyone had advice, templates, or settings
to share for how they render resumés (esp. in LaTeX) using orgmode.

Thank you very much,
- Raffi.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Index reference in orgmode

2010-01-21 Thread Water Lin

I am taking notes with org mode, which is something like Wiki.

I want to index some book or refercen in global way. So I want to insert
some sentence and point out from which reference it comes.

The first idea jumped into my mind is to use BiBTeX. If I can use BiBTeX
together with my orgmode, it is very powerful. Then I can generate some
document using LaTeX without a break.

Any way?

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode