From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Peter Westlake" Subject: Re: org-annotation-helper Date: Mon, 01 Sep 2008 12:20:40 +0100 Message-ID: <1220268040.22076.1271531427@webmail.messagingengine.com> References: <17249.1220148863@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ka7Sr-0005yL-Bk for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:20:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ka7So-0005y8-Lk for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:20:55 -0400 Received: from [199.232.76.173] (port=47455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka7So-0005y5-AE for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:20:54 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:60087) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ka7Sn-0007gY-Po for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:20:53 -0400 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id EC98715C549 for ; Mon, 1 Sep 2008 07:20:40 -0400 (EDT) Content-Disposition: inline In-Reply-To: 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: org-mode On Sun, 31 Aug 2008 12:19:23 +0200, "Richard G Riley" said: > > caveat : I do not know if this is optimal or even recommended but it now > works for me. > > I have modified the code a little to remove hex from the actual link. > I have "boxquoted" all code so you will need to remove that. > > firefox/iceweasel : To set up the bookmark link, simple create a new > book mark called "remember" in firefox and make this the location > code: > > ,---- > | > javascript:location.href='remember://%20'+location.href+'%1C'+escape(document.title)+'%1C'+escape(window.getSelection()) > `---- I have a slightly different link, which works too: javascript:location.href='remember://'+location.href+'::remember::'+escape(document.title)+'::remember::'+escape(window.getSelection()) On the subject of org-annotation-helper, the code has this comment about %a: > | ;; FIXME can't access %a in the template -- how to set > annotation? (raise-frame) While I was trying to make this work, using a slightly earlier version, I found that the %a would work if I had an active region selected at the time. Before I could find out how to make a region active, or stop it being needed, I found the new version of the code, and now I use %:region. But it would be interesting to know why org-mode tests for there being an active region; it seems to do it quite a lot. You need an active region to convert a table with C-c |, for instance. Carsten, is there any reason why it works this way? Peter.