emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ethan Blanton <elb@psg.com>
To: emacs-orgmode@gnu.org
Subject: remember template "bottom" bug
Date: Fri, 26 Sep 2008 16:29:23 -0400	[thread overview]
Message-ID: <20080926202923.GA16855@elb.elitists.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1067 bytes --]

Hi,

I'm using org-mode 6.07b (installed from source) with emacs 22.1.1 and
remember.el 1.9 (both installed from Ubunty Hardy package
repositories), and remember templates which specify their heading as
bottom seem to display a rather unfortunate bug -- the inserted node
*replaces* the current bottom entry in the file.

For example, if I have a todo.org of the following contents:

* TODO Mow the lawn
* TODO Wash the dishes

... and a remember template:

(setq org-remember-templates '(("Todo" ?t "* TODO %?" "todo.org" bottom)))

Then, when I use that template to enter the TODO item "Vacuum the
carpet", todo.org will have "Wash the dishes" removed and replaced by
"Vacuum the carpet":

* TODO Mow the lawn
* TODO Vacuum the carpet

The location 'top' works as expected, as do literal headings.

Ethan

-- 
The laws that forbid the carrying of arms are laws [that have no remedy
for evils].  They disarm only those who are neither inclined nor
determined to commit crimes.
		-- Cesare Beccaria, "On Crimes and Punishments", 1764

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

             reply	other threads:[~2008-09-26 20:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-26 20:29 Ethan Blanton [this message]
2008-09-27  5:57 ` remember template "bottom" bug Carsten Dominik

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=20080926202923.GA16855@elb.elitists.net \
    --to=elb@psg.com \
    --cc=emacs-orgmode@gnu.org \
    /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).