Merge from savannah/emacs-30
93ac2cb742
Fix some widgets in customize-dirlocals42a4c847e2
Fix register-use-preview behavior with never value
This commit is contained in:
commit
bd9ea1c7db
2 changed files with 7 additions and 3 deletions
|
@ -5992,7 +5992,7 @@ The appropriate types are:
|
|||
(val (car value)))
|
||||
(cond
|
||||
((eq val 'mode) (setf (nth 1 args)
|
||||
'(symbol :keymap custom-dirlocals-field-map
|
||||
`(symbol :keymap ,custom-dirlocals-field-map
|
||||
:tag "Minor mode")))
|
||||
((eq val 'unibyte) (setf (nth 1 args) '(boolean)))
|
||||
((eq val 'subdirs) (setf (nth 1 args) '(boolean)))
|
||||
|
@ -6001,7 +6001,7 @@ The appropriate types are:
|
|||
(when (custom--editable-field-p w)
|
||||
(widget-put w :keymap custom-dirlocals-field-map))
|
||||
(setf (nth 1 args) w)))
|
||||
(t (setf (nth 1 args) '(sexp :keymap custom-dirlocals-field-map))))
|
||||
(t (setf (nth 1 args) `(sexp :keymap ,custom-dirlocals-field-map))))
|
||||
(widget-put (nth 0 args) :keymap custom-dirlocals-field-map)
|
||||
(widget-group-value-create widget)))
|
||||
|
||||
|
|
|
@ -582,7 +582,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))
|
||||
|
|
Loading…
Add table
Reference in a new issue