From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Sexton Subject: Re: Small patch to restrict syntactic context where [[links]] are active Date: Mon, 26 Jul 2010 06:08:53 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=51397 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdGsA-0005ne-CK for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 02:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdGs5-0005tm-4z for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 02:09:10 -0400 Received: from lo.gmane.org ([80.91.229.12]:45978) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdGs4-0005tc-Vs for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 02:09:05 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OdGs3-00031y-2O for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 08:09:03 +0200 Received: from ip-118-90-58-221.xdsl.xnet.co.nz ([118.90.58.221]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2010 08:09:03 +0200 Received: from psexton by ip-118-90-58-221.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2010 08:09:03 +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 Paul Sexton xnet.co.nz> writes: Unfortunately this doesn't seem to work as well as I thought. For some reason when org-bracket-link-context-ok is called, (point) is not at the end of the link, despite the fact that the docs for re-search-forward state that is where the point should be. Without a way to get the position at the end of the match, the context stuff does not work correctly. (the stuff activating org links outside org mode still works however.)