From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] org-open-at-point does not work anymore in comment blocks Date: Fri, 18 Jul 2014 12:28:26 +0200 Message-ID: <87vbqvm051.fsf@nicolasgoaziou.fr> References: <87vbqvxgq9.fsf@konixwork.incubateur.ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X85OP-00039u-1l for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 06:28:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X85OH-0005Qg-4e for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 06:27:56 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:53091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X85OG-0005Qc-V5 for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 06:27:49 -0400 In-Reply-To: <87vbqvxgq9.fsf@konixwork.incubateur.ens-lyon.fr> (Samuel Loury's message of "Fri, 18 Jul 2014 09:34:38 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Loury Cc: OrgMode ML Hello, Samuel Loury writes: > On version baa2c5943a4afce71a6336cbd957139e840bd952. > > Links are not followed anymore in comment blocks. > > You may test it by launching (org-open-at-point) with the cursor into > the link in the following example. > * Test #+BEGIN_COMMENT [[http://orgmode.org/]] #+END_COMMENT > > It triggers a user error in lisp/org.el at line 10641 since there is no > computed context. This is to be expected. Commenting some part of a buffer tells the parser to ignore it. The only purpose of comments is to deactivate some syntax (e.g., a link, a timestamp...) in the buffer, which is exactly what happens here. If you want to ignore that part only during export, but still want to use keep it active in the buffer, I suggest to use a drawer, with an appropriate `org-export-with-drawers' value, e.g., #+OPTIONS: d:(not "IGNORE_ME") :IGNORE_ME: [[http://orgmode.org]] :END: This was discussed before on this ML. Some users made a point that `org-open-at-point' should process links in node properties. In the case of comments, though, I think we should be strict and use drawers instead. Regards, -- Nicolas Goaziou