diff options
| author | Po Lu | 2025-03-06 21:55:41 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-06 21:55:41 +0800 |
| commit | bd9ea1c7dbf99581c585144fb413e28f2f16f178 (patch) | |
| tree | 0efb046e88b473969f38f1ac033b7ee4b140994a | |
| parent | 3b59b8fa9706f8e6b0d3cf194bcf9b310bf11ac0 (diff) | |
| parent | 93ac2cb742f6fb90a36d758617cecb36c3d33e46 (diff) | |
| download | emacs-bd9ea1c7dbf99581c585144fb413e28f2f16f178.tar.gz emacs-bd9ea1c7dbf99581c585144fb413e28f2f16f178.zip | |
Merge from savannah/emacs-30
93ac2cb742f Fix some widgets in customize-dirlocals
42a4c847e28 Fix register-use-preview behavior with never value
| -rw-r--r-- | lisp/cus-edit.el | 4 | ||||
| -rw-r--r-- | lisp/register.el | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 5ce940bd0e5..e0e39b72c76 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -5992,7 +5992,7 @@ The appropriate types are: | |||
| 5992 | (val (car value))) | 5992 | (val (car value))) |
| 5993 | (cond | 5993 | (cond |
| 5994 | ((eq val 'mode) (setf (nth 1 args) | 5994 | ((eq val 'mode) (setf (nth 1 args) |
| 5995 | '(symbol :keymap custom-dirlocals-field-map | 5995 | `(symbol :keymap ,custom-dirlocals-field-map |
| 5996 | :tag "Minor mode"))) | 5996 | :tag "Minor mode"))) |
| 5997 | ((eq val 'unibyte) (setf (nth 1 args) '(boolean))) | 5997 | ((eq val 'unibyte) (setf (nth 1 args) '(boolean))) |
| 5998 | ((eq val 'subdirs) (setf (nth 1 args) '(boolean))) | 5998 | ((eq val 'subdirs) (setf (nth 1 args) '(boolean))) |
| @@ -6001,7 +6001,7 @@ The appropriate types are: | |||
| 6001 | (when (custom--editable-field-p w) | 6001 | (when (custom--editable-field-p w) |
| 6002 | (widget-put w :keymap custom-dirlocals-field-map)) | 6002 | (widget-put w :keymap custom-dirlocals-field-map)) |
| 6003 | (setf (nth 1 args) w))) | 6003 | (setf (nth 1 args) w))) |
| 6004 | (t (setf (nth 1 args) '(sexp :keymap custom-dirlocals-field-map)))) | 6004 | (t (setf (nth 1 args) `(sexp :keymap ,custom-dirlocals-field-map)))) |
| 6005 | (widget-put (nth 0 args) :keymap custom-dirlocals-field-map) | 6005 | (widget-put (nth 0 args) :keymap custom-dirlocals-field-map) |
| 6006 | (widget-group-value-create widget))) | 6006 | (widget-group-value-create widget))) |
| 6007 | 6007 | ||
diff --git a/lisp/register.el b/lisp/register.el index a338eb586d2..a955cf96232 100644 --- a/lisp/register.el +++ b/lisp/register.el | |||
| @@ -582,7 +582,11 @@ or \\='never." | |||
| 582 | (setq pat input)))) | 582 | (setq pat input)))) |
| 583 | (if (setq win (get-buffer-window buffer)) | 583 | (if (setq win (get-buffer-window buffer)) |
| 584 | (with-selected-window win | 584 | (with-selected-window win |
| 585 | (when noconfirm | 585 | (when (or (eq noconfirm t) ; Using insist |
| 586 | ;; Don't exit when noconfirm == (never) | ||
| 587 | ;; If we are here user has pressed C-h | ||
| 588 | ;; calling `register-preview-1'. | ||
| 589 | (memq nil noconfirm)) | ||
| 586 | ;; Happen only when | 590 | ;; Happen only when |
| 587 | ;; *-use-preview == insist. | 591 | ;; *-use-preview == insist. |
| 588 | (exit-minibuffer)) | 592 | (exit-minibuffer)) |