emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 53514e7: * lisp/info.el (Info-search): Don't deactivate mark when


From: Juri Linkov
Subject: master 53514e7: * lisp/info.el (Info-search): Don't deactivate mark when landed in same node
Date: Thu, 14 Jan 2021 14:09:15 -0500 (EST)

branch: master
commit 53514e77a5a85b53ea0acd55f2ea5f1f78dc356c
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/info.el (Info-search): Don't deactivate mark when landed in same node
    
    (bug#45839)
---
 lisp/info.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/info.el b/lisp/info.el
index 62d7b58..dec9392 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1973,7 +1973,6 @@ If DIRECTION is `backward', search in the reverse 
direction."
                        "Regexp search%s" (car Info-search-history)
                       (if case-fold-search "" " case-sensitively"))
                      nil 'Info-search-history)))
-  (deactivate-mark)
   (when (equal regexp "")
     (setq regexp (car Info-search-history)))
   (when regexp
@@ -2066,6 +2065,7 @@ If DIRECTION is `backward', search in the reverse 
direction."
                (< found opoint-max))
           ;; Search landed in the same node
           (goto-char found)
+        (deactivate-mark)
         (widen)
         (goto-char found)
         (save-match-data (Info-select-node)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]