[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: syntax highlighting of elisp:blahblah and shell:blablah [8.
From: |
Andrea Rossetti |
Subject: |
Re: [O] 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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Nick Dokos <address@hidden> 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