From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Rossetti Subject: Re: Bug: syntax highlighting of elisp:blahblah and shell:blablah [8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/)] Date: Mon, 21 Jul 2014 20:28:28 +0200 Message-ID: <84egxek1mb.fsf@gmail.com> References: <84r41gji7h.fsf@gmail.com> <87mwc3c38g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9IKc-0006hx-1W for emacs-orgmode@gnu.org; Mon, 21 Jul 2014 14:29:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9IKS-0004bZ-Va for emacs-orgmode@gnu.org; Mon, 21 Jul 2014 14:29:01 -0400 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:36155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9IKS-0004bP-Nd for emacs-orgmode@gnu.org; Mon, 21 Jul 2014 14:28:52 -0400 Received: by mail-we0-f171.google.com with SMTP id p10so7994711wes.30 for ; Mon, 21 Jul 2014 11:28:50 -0700 (PDT) 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: Nick Dokos Cc: emacs-orgmode@gnu.org Nick Dokos writes: > I don't know whether it's expected (one of these years I really have > to sit down and learn the syntax). I digged a bit further about the "linkification" of shell:bla and elisp:bla (the same applies to all protocols listed in `org-link-types'): - this type of links is defined by the syntax (see "plain link" in defcustom `org-activate-links') - syntax seems not to consider the corner-case of tags shell:bla - the unwanted link inhibits the function "click on tags => do a search by tags" - my workaround: I won't use `elisp' and `shell' in the tags, but `el' and `sh' - possible actions could be: - change the syntax (backward-incompatible): the regexp for plain links should not allow for ":" delimiters - or (backward-compatible) change `org-activate-plain-links' so that a plain link is not activated if it's inside a tag - or (backward-compatible) leave everything as it is now, as it's a minor bug (note that the tag search with "C-c \" works properly, the problem is just that you can't start a search with a mouse click) Kindest regards, Andrea