emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: John Wiegley <johnw@newartisans.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: blank lines and keystrokes for org remember templates
Date: Fri, 7 Sep 2007 10:04:21 +0200	[thread overview]
Message-ID: <f28a73a0da2154ae3ac6a76e690e3d63@science.uva.nl> (raw)
In-Reply-To: <m2zlzzv2mk.fsf@newartisans.com>

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" <jaderholm@gmail.com> 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

  reply	other threads:[~2007-09-07  8:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 21:16 blank lines and keystrokes for org remember templates Scott Jaderholm
2007-09-06 22:40 ` John Wiegley
2007-09-07  8:04   ` Carsten Dominik [this message]
2007-09-09 14:15     ` Nuutti Kotivuori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f28a73a0da2154ae3ac6a76e690e3d63@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=johnw@newartisans.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).