From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: FR: Fontify links even when in comments Date: Tue, 24 Feb 2015 09:10:02 -0500 Message-ID: References: <874mqc5spp.fsf@nicolasgoaziou.fr> <87pp8z4tij.fsf@nicolasgoaziou.fr> <87twybeaiy.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQGBc-0008JT-E3 for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 09:10:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQGBX-00031u-G8 for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 09:10:08 -0500 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:53323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQGBX-0002yt-9a for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 09:10:03 -0500 Received: by mail-qa0-f44.google.com with SMTP id n8so27144089qaq.3 for ; Tue, 24 Feb 2015 06:10:03 -0800 (PST) In-reply-to: <87twybeaiy.fsf@yahoo.fr> 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: Nicolas Richard Cc: Org-mode On 2015-02-24 at 07:53, Nicolas Richard wrote: > 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. It would certainly be acceptable to me... -k.