From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: firefox urls Date: Wed, 21 May 2008 07:28:58 +0200 Message-ID: References: <20080512113321.45188d4b@dhcp-296-6> <87k5hxa5ia.fsf@uvic.ca> <871w44wlgz.fsf@uvic.ca> <7bef1f890805171827w40525d0fi95b7e9d31400ac96@mail.gmail.com> <87wslsgoai.fsf@uvic.ca> <3ziqx86h7a.fsf@richardriley.net> <877idodh9w.fsf@uvic.ca> <19851.1211316397@alphaville.zko.hp.com> <20080520214937.45aaf1a0@buster.rakestrawmornlocal> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jygso-00030c-Dk for emacs-orgmode@gnu.org; Wed, 21 May 2008 01:29:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jygsn-00030Q-LS for emacs-orgmode@gnu.org; Wed, 21 May 2008 01:29:02 -0400 Received: from [199.232.76.173] (port=58735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jygsn-00030N-Da for emacs-orgmode@gnu.org; Wed, 21 May 2008 01:29:01 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:30566) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jygsn-0003wN-2I for emacs-orgmode@gnu.org; Wed, 21 May 2008 01:29:01 -0400 In-Reply-To: <20080520214937.45aaf1a0@buster.rakestrawmornlocal> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Rakestraw Cc: emacs-orgmode@gnu.org On May 21, 2008, at 3:49 AM, John Rakestraw wrote: > On Tue, 20 May 2008 16:46:37 -0400 > Nick Dokos 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