;; one character.
(let ((overlay (make-overlay (1- to) to nil t nil)))
(overlay-put overlay 'field 'boundary)
- (overlay-put overlay 'keymap keymap)
+ ;; Use `local-map' here, not `keymap', so that normal editing
+ ;; works in the field when, say, Custom uses `suppress-keymap'.
+ (overlay-put overlay 'local-map keymap)
(overlay-put overlay 'face face)
(overlay-put overlay 'help-echo help-echo))
(setq to (1- to))
(widget-put widget :field-overlay overlay)
;;(overlay-put overlay 'detachable nil)
(overlay-put overlay 'field widget)
- (overlay-put overlay 'keymap keymap)
+ (overlay-put overlay 'local-map keymap)
(overlay-put overlay 'face face)
(overlay-put overlay 'help-echo help-echo)))
(widget-specify-secret widget))