]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/info.el (Info-search): Don't deactivate mark when landed in same node
authorJuri Linkov <juri@linkov.net>
Thu, 14 Jan 2021 19:08:46 +0000 (21:08 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 14 Jan 2021 19:08:46 +0000 (21:08 +0200)
(bug#45839)

lisp/info.el

index 62d7b583ff20efedf08f16e2619ec814d58ea958..dec93928b38367000aaee97ef3c60e39b8cf8012 100644 (file)
@@ -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)))