emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2014-08-19 13:04 Rupert Swarbrick
  0 siblings, 0 replies; only message in thread
From: Rupert Swarbrick @ 2014-08-19 13:04 UTC (permalink / raw)
  To: emacs-orgmode

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/)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-19 13:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-19 13:04 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/)] Rupert Swarbrick

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).