From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: FR: Fontify links even when in comments Date: Tue, 24 Feb 2015 13:53:09 +0100 Message-ID: <87twybeaiy.fsf@yahoo.fr> References: <874mqc5spp.fsf@nicolasgoaziou.fr> <87pp8z4tij.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQEyb-00052D-Sl for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 07:52:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQEyV-0003Rk-Qn for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 07:52:37 -0500 Received: from mxin.ulb.ac.be ([164.15.128.112]:50117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQEyV-0003RW-Kz for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 07:52:31 -0500 In-Reply-To: <87pp8z4tij.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 24 Feb 2015 09:13:08 +0100") 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: Ken Mankoff Cc: Org-mode Nicolas Goaziou writes: > They cannot contain link, nor anything else. However, the feature you > describe above was deemed useful enough that `org-open-at-point' > sloppily opens anything looking like a link (or a timestamp) within > a comment. > > However, there is, per syntax, no link there, and I don't think it > should be fontified. AUCTeX has a variable named `LaTeX-syntactic-comments' : ,---- | User option: If non-nil comments will be handled according to LaTeX | syntax. `---- In AUCTeX, it is mainly about filling and indentation, but in Org it could mean "let the usual (interactive) commands pretend we're not in a comment". If Org is to adopt such a variable, it could fontify according to what the interactive commands will do. Would that be acceptable ? It could be made a minor mode. -- Nicolas Richard.