emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rupert Swarbrick <ruperts@broadcom.com>
To: emacs-orgmode@gnu.org
Subject: 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	[thread overview]
Message-ID: <53F34B59.2070201@broadcom.com> (raw)

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	other threads:[~2014-08-19 13:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53F34B59.2070201@broadcom.com \
    --to=ruperts@broadcom.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).