summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2021-12-01 19:36:00 +0200
committerJuri Linkov <juri@linkov.net>2021-12-01 19:36:00 +0200
commit8230a47ecc8c11f518ee20a9055c0c27339a6730 (patch)
treec259792c17fcff7fbe00996705158acf9086d04e /lisp/isearch.el
parent740ae2818fa585b52b7e0b29f1612a812959d4d3 (diff)
downloademacs-8230a47ecc8c11f518ee20a9055c0c27339a6730.tar.gz
emacs-8230a47ecc8c11f518ee20a9055c0c27339a6730.tar.bz2
emacs-8230a47ecc8c11f518ee20a9055c0c27339a6730.zip
* lisp/help.el (help--analyze-key): Prefer posn-set-point over mouse-set-point
* lisp/help.el (help--analyze-key): Use posn-set-point instead of mouse-set-point that runs the hook mouse-leave-buffer-hook via mouse-minibuffer-check. Using posn-set-point also unnecessitates extra conditions added in bug#51421. * lisp/isearch.el (isearch-describe-key, isearch-describe-mode): Add precautions to not call isearch-update when the executed command exited isearch-mode (bug#51173).
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index d9a48cfcf2d..c382d0ad2a0 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -521,14 +521,14 @@ This is like `describe-bindings', but displays only Isearch keys."
(interactive)
(let ((display-buffer-overriding-action isearch--display-help-action))
(call-interactively 'describe-key))
- (isearch-update))
+ (when isearch-mode (isearch-update)))
(defun isearch-describe-mode ()
"Display documentation of Isearch mode."
(interactive)
(let ((display-buffer-overriding-action isearch--display-help-action))
(describe-function 'isearch-forward))
- (isearch-update))
+ (when isearch-mode (isearch-update)))
(defalias 'isearch-mode-help 'isearch-describe-mode)