emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] firefox urls


From: Carsten Dominik
Subject: Re: [Orgmode] firefox urls
Date: Wed, 21 May 2008 07:28:58 +0200


On May 21, 2008, at 3:49 AM, John Rakestraw wrote:

On Tue, 20 May 2008 16:46:37 -0400
Nick Dokos <address@hidden> wrote:

when bzg/org-annotation-helper calls org-remember with argument ?w, I
expect this template to pop up in a *Remember* buffer. Instead, I get
asked which template I want to use (I have three more templates in
org-remember-templates).

I get the same thing -- in fact, org-annotation-helper has *never*
forced the selection of the template for me in the months I've been
using it; I've always had to select it by pressing "w". Even more
puzzling (to me, anyway), is that occasionally when I press "w" the
first time, I get nothing, but when I press it the second time, I get
the template, complete with a "w" keyed in at point.

This seems to be a bug in org-annotation-helper.el.
org-remember must be called like this:

(org-remember nil ?w)

instead of like this:

(org-remember ?w)


Furthermore, in order to get %i as the region, you need to
select the text in the *org-ann* temporary buffer, after inserting
the text.  So after "(insert region)", maybe you need something
like:

(insert-region)
(goto-char (point-max))
(set-mark (point-min))

An you need to have transient-mark-mode on for this.
This is a hack, I think it is actually better to use %:region in
the template instead.

HTH

- Carsten



When I say "w" and force the choice, the
contents of the buffer are not what I expect: I get the time stamp
from %u, and the link from %c, but *not* the selection from %i.

When I use the %i variable in the template, I get the same thing you
describe -- the selection doesn't show up in the note created from the
template. When I use "%:region" instead of "%i", it does show up as
expected.

--John

--
John Rakestraw


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]