From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rupert Swarbrick 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 Message-ID: <53F34B59.2070201@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJj5Y-0006va-SK for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 09:04:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJj5R-0000t5-3V for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 09:04:36 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:43196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJj5Q-0000sw-UG for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 09:04:29 -0400 Received: from [10.177.72.102] (unknown [10.177.72.102]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 8BD939F9F7 for ; Tue, 19 Aug 2014 06:04:26 -0700 (PDT) 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 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/)