emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <C.Dominik@uva.nl>
To: John Rakestraw <lists@johnrakestraw.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: firefox urls
Date: Wed, 21 May 2008 07:28:58 +0200	[thread overview]
Message-ID: <C5951B48-CE96-4444-9B68-5ACA0A227E19@uva.nl> (raw)
In-Reply-To: <20080520214937.45aaf1a0@buster.rakestrawmornlocal>


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

> On Tue, 20 May 2008 16:46:37 -0400
> Nick Dokos <nicholas.dokos@hp.com> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-05-21  5:29 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-12 15:22 firefox urls Richard G Riley
2008-05-12 15:33 ` John Rakestraw
2008-05-14  4:12   ` Daniel M German
2008-05-14  4:30     ` Carsten Dominik
2008-05-14 16:57     ` John Rakestraw
     [not found]     ` <871w44wlgz.fsf@uvic.ca>
2008-05-18  1:27       ` Alan E. Davis
2008-05-18  5:43         ` Daniel M German
2008-05-20 17:03           ` Richard G Riley
2008-05-20 17:20             ` Daniel M German
2008-05-20 20:46               ` Nick Dokos
2008-05-20 21:49                 ` Daniel M German
2008-05-21  1:49                 ` John Rakestraw
2008-05-21  5:28                   ` Carsten Dominik [this message]
2008-05-21 11:06                     ` Richard G Riley
2008-05-21 15:44                       ` John Rakestraw
2008-05-21 16:10                         ` Nick Dokos
2008-05-23 23:28                           ` Daniel M German
     [not found]                             ` <7bef1f890805232005s4755106eg2c928029e6db1767@mail.gmail.com>
2008-05-24  3:08                               ` Fwd: " Alan E. Davis
2008-05-24  3:14                             ` Alan E. Davis
2008-05-24  3:20                               ` Alan E. Davis
     [not found]                               ` <87r6bsmle5.fsf@uvic.ca>
2008-05-24  5:18                                 ` Alan E. Davis
2008-05-21 14:55                     ` John Rakestraw
2008-05-21 15:05                     ` Daniel M German
2008-05-21 14:58                   ` Nick Dokos
2008-05-21 10:51                 ` Richard G Riley

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=C5951B48-CE96-4444-9B68-5ACA0A227E19@uva.nl \
    --to=c.dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@johnrakestraw.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).