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:
@@ -569,7 +569,11 @@ or \\='never."
|
||||
(setq pat input))))
|
||||
(if (setq win (get-buffer-window buffer))
|
||||
(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
|
||||
;; *-use-preview == insist.
|
||||
(exit-minibuffer))
|
||||
|
||||
Reference in New Issue
Block a user