From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel M German Subject: Re: firefox urls Date: Wed, 21 May 2008 08:05:55 -0700 Message-ID: <87prrf8zos.fsf@uvic.ca> 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> Reply-To: dmg@uvic.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JyqSr-0003TB-Nr for emacs-orgmode@gnu.org; Wed, 21 May 2008 11:42:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyqSq-0003Ro-Bc for emacs-orgmode@gnu.org; Wed, 21 May 2008 11:42:52 -0400 Received: from [199.232.76.173] (port=40711 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyqSq-0003Rd-4b for emacs-orgmode@gnu.org; Wed, 21 May 2008 11:42:52 -0400 Received: from tungsten.cs.uvic.ca ([142.104.68.122]:48796 helo=mn.cs.uvic.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JyqSp-0005ED-KN for emacs-orgmode@gnu.org; Wed, 21 May 2008 11:42:51 -0400 In-Reply-To: (Carsten Dominik's message of "Wed, 21 May 2008 07:28:58 +0200") 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: emacs-orgmode@gnu.org Carsten> This seems to be a bug in org-annotation-helper.el. Carsten> org-remember must be called like this: Carsten> (org-remember nil ?w) Carsten> instead of like this: Carsten> (org-remember ?w) Carsten> Furthermore, in order to get %i as the region, you need to Carsten> select the text in the *org-ann* temporary buffer, after inserting Carsten> the text. So after "(insert region)", maybe you need something Carsten> like: Carsten> (insert-region) Carsten> (goto-char (point-max)) Carsten> (set-mark (point-min)) Carsten> An you need to have transient-mark-mode on for this. Carsten> This is a hack, I think it is actually better to use %:region in Carsten> the template instead. Yes, that was a hack. I could not find any other way to "select" the text than to create a new buffer where I set the mark, then pasted the text --that seemed enought for my emacs configuration to have the text selected. I'll look at your suggestions and update the code. Thanks Carsten, --daniel -- -- Daniel M. German http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with .