emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Org mode links not sufficiently quoted in org-link-search [8.3b


From: Rupert Swarbrick
Subject: [O] Bug: Org mode links not sufficiently quoted in org-link-search [8.3beta (release_8.3beta-245-g3a1fff @ /home/ruperts/.emacs.d/libraries/org-mode/lisp/)]
Date: Tue, 19 Aug 2014 14:04:25 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

When trying to jump back to some links that I'd saved in make logs, I
got what appeared to be a hang in Emacs. Here's an example link (with
the identifying bits taken out, I'm afraid)

[[file:/some/where/build.log::make%5B3%5D:%20***%20%5Bfoo.o%5D%20Error%201][My message]]

The problem seems to be that ORG-LINK-SEARCH gets an input with regex
special characters in ("***" in this case). Then the WORDS variable, set
on line 11054 by splitting the input on whitespace, is used in re4 and
re5 without quoting.

Rewriting line 11054 to set WORDS to

   (mapcar #'regexp-quote (org-split-string s "[ \n\r\t]+"))

seems to fix things for me.


Rupert


Emacs  : GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll 
bars)
 of 2014-06-27 on xl-cam-rhel6test
Package: Org-mode version 8.3beta (release_8.3beta-245-g3a1fff @ /home/ruperts/.emacs.d/libraries/org-mode/lisp/)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]