From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Peter Westlake" Subject: Re: org-annotation-helper Date: Mon, 01 Sep 2008 12:35:57 +0100 Message-ID: <1220268957.24473.1271533841@webmail.messagingengine.com> References: <17249.1220148863@gamaville.dokosmarshall.org> <1220268040.22076.1271531427@webmail.messagingengine.com> <1EBADC4C-6252-4AE0-B974-2F7301FB6DB5@uva.nl> 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 1Ka7hS-0002J2-4e for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:36:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ka7hR-0002Ie-5K for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:36:01 -0400 Received: from [199.232.76.173] (port=48606 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka7hQ-0002Ib-Vu for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:36:01 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:37574) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ka7hQ-0005WY-Ob for emacs-orgmode@gnu.org; Mon, 01 Sep 2008 07:36:00 -0400 Content-Disposition: inline In-Reply-To: <1EBADC4C-6252-4AE0-B974-2F7301FB6DB5@uva.nl> 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: Carsten Dominik Cc: org-mode On Mon, 1 Sep 2008 13:27:18 +0200, "Carsten Dominik" said: > > 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? > > Hi Peter, > > how else should Org know the range of lines to convert? Or maybe I > misunderstand your question? If I use C-space to place the mark at the beginning of the table, and move point to the end, then the region covers the table, and I would expect C-c | to operate on the region. Instead, it ignores the region and asks what size table to make. If I highlight a region using the mouse, then it works. Peter.