From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos 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: Sun, 20 Jul 2014 14:08:31 -0400 Message-ID: <87mwc3c38g.fsf@gmail.com> References: <84r41gji7h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8vXc-0004RO-Eq for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:09:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8vXU-0005Gx-Un for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:08:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:46669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8vXU-0005GZ-OB for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:08:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X8vXQ-0001xk-HX for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 20:08:44 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2014 20:08:44 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2014 20:08:44 +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: emacs-orgmode@gnu.org Andrea Rossetti writes: > when I insert some text like "elisp:sometext" or "shell:sometext" > in an Org buffer, it becomes highlighted and clickable. On click, > a prompt asks for confirm to execute "sometext". > > I get the same behaviour if I add tags to a headline, and one > of the tags is "elisp" or "shell". > > I expected this behaviour when I create links with double square > brackets, but not in default text paragraphs, nor in the tags. > May I please ask for some feedback: > > 1) did I miss something, and this was expected (at least for default > text paragraphs)? I don't know whether it's expected (one of these years I really have to sit down and learn the syntax). > 2) is this reproducible for some of you as well? > Yes. > I attach here a small test case: > > * my elisp tricks collection :elisp:andrea:tricks: > > I like to write elisp:it is useful. > I seldow use shell:but it's useful as well > > Workarounds: - in text, leave a space after the colon - that's standard practice anyway. - in tags, put the `link' tag at the end: :andrea:tricks:elisp: The latter doesn't help if you have two `link'-type tags, but it should cover the majority of problematic cases. -- Nick