Re: [Orgmode] blank lines and keystrokes for org remember templates

2007-09-07 Thread Carsten Dominik

The problem is that it is hard to see if a final newline
in a remember buffer is meant to indicate an empty line or not.
I will fix it in the following way:  After exiting the remember buffer,
Org-mode will add a newline *if there is none* and insert the resulting 
string
into the outline tree.  So if your template does end with zero or one 
\n,
there will be no empty line after the entry.  If it ends with \n\n, 
there

will be an empty line.

- Carsten

On Sep 7, 2007, at 0:40, John Wiegley wrote:


Scott Jaderholm [EMAIL PROTECTED] writes:

If I write TODO something I get a blank line after it in my org file 
even

though I didn't put a newline when using remember.


Even stranger is that it *doesn't* put a blank line if you have 
multiple lines
of text in your remember block.  I'd vote that if the template has no 
blank

line, the entry never gets a blank line.

John


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut Anton Pannekoek
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



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


[Orgmode] blank lines and keystrokes for org remember templates

2007-09-06 Thread Scott Jaderholm
Hi,

1. When I use remember with a template I get a blank line after the text
that I type.

My template looks like this:
(setq org-remember-templates
  '((?l * TODO %? ~/Documents/org/life.org New Tasks)))

If I write TODO something I get a blank line after it in my org file even
though I didn't put a newline when using remember.

Is this default behavior? Is there a way to change it so that a newline
isn't inserted?

2. How do I bind a keystroke to start remember with one of the
org-remember-templates rather than prompting you for the template name?

Thank you,
Scott
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] blank lines and keystrokes for org remember templates

2007-09-06 Thread John Wiegley
Scott Jaderholm [EMAIL PROTECTED] writes:

 If I write TODO something I get a blank line after it in my org file even
 though I didn't put a newline when using remember.

Even stranger is that it *doesn't* put a blank line if you have multiple lines
of text in your remember block.  I'd vote that if the template has no blank
line, the entry never gets a blank line.

John


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode