]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix some widgets in customize-dirlocals
authorMauro Aranda <maurooaranda@gmail.com>
Thu, 6 Mar 2025 08:45:50 +0000 (05:45 -0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 07:16:56 +0000 (08:16 +0100)
* lisp/cus-edit.el (custom-dynamic-cons-value-create): Make sure
to eval the keymap property.  (Bug#76756)

(cherry picked from commit 93ac2cb742f6fb90a36d758617cecb36c3d33e46)

lisp/cus-edit.el

index 1bdc5a287d6ee6f195e2c8b3a14fd7d0e6f4240a..3b9b32f3360aef7746ca95128d0d46dfa6b4607e 100644 (file)
@@ -6039,7 +6039,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)))
@@ -6048,7 +6048,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)))