From c1b8f41c37ce29d6944a76f8582de934c099271c Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Tue, 12 Oct 2010 21:00:12 +0000 Subject: [PATCH] Return 'dedicated on match when search must match exact headline * org.el (org-link-search): Return 'dedicated on successful match when org-link-search-must-match-exact-headline is set to t. --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index 56c2b6a7d..4a037fece 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9428,6 +9428,7 @@ in all files. If AVOID-POS is given, ignore matches near that position." (regexp-quote s)) nil t)) ;; OK, found a match + (setq type 'dedicated) (goto-char (match-beginning 0))) ((and (not org-link-search-inhibit-query) (eq org-link-search-must-match-exact-headline 'query-to-create)