Fix register-use-preview behavior with never value
Allow popping up preview when pressing C-h. Don't exit the minibuffer when the call to register-read-with-preview-fancy is triggered by C-h. * lisp/register.el (register-read-with-preview-fancy): Do it.
This commit is contained in:
parent
121371a706
commit
42a4c847e2
1 changed files with 5 additions and 1 deletions
|
@ -569,7 +569,11 @@ or \\='never."
|
||||||
(setq pat input))))
|
(setq pat input))))
|
||||||
(if (setq win (get-buffer-window buffer))
|
(if (setq win (get-buffer-window buffer))
|
||||||
(with-selected-window win
|
(with-selected-window win
|
||||||
(when noconfirm
|
(when (or (eq noconfirm t) ; Using insist
|
||||||
|
;; Don't exit when noconfirm == (never)
|
||||||
|
;; If we are here user has pressed C-h
|
||||||
|
;; calling `register-preview-1'.
|
||||||
|
(memq nil noconfirm))
|
||||||
;; Happen only when
|
;; Happen only when
|
||||||
;; *-use-preview == insist.
|
;; *-use-preview == insist.
|
||||||
(exit-minibuffer))
|
(exit-minibuffer))
|
||||||
|
|
Loading…
Add table
Reference in a new issue