From 109c86998ecb9a153ca442df072910f58c3aee39 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 29 Mar 2017 14:12:58 +0200 Subject: [PATCH] Allow blank lines in text search link * lisp/org.el (org-link-search): Allow blank lines. This is a follow-up to 4dde26f08. --- lisp/org.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index dc3668218..5e0817ccf 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11172,8 +11172,7 @@ of matched result, which is either `dedicated' or `fuzzy'." (normalized (replace-regexp-in-string "\n[ \t]*" " " s)) (starred (eq (string-to-char normalized) ?*)) (words (split-string (if starred (substring s 1) s))) - (s-multi-re - (mapconcat #'regexp-quote words "\\([ \t]*\n[ \t]*\\|[ \t]+\\)")) + (s-multi-re (mapconcat #'regexp-quote words "\\(?:[ \t\n]+\\)")) (s-single-re (mapconcat #'regexp-quote words "[ \t]+")) type) (cond -- 2.11.4.GIT