mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Fix display of custom menus after putative cosmetic change
* lisp/wid-edit.el (widget-setup): Restore version from before the previous commit.
This commit is contained in:
parent
60c9702972
commit
0c321ddbd3
1 changed files with 11 additions and 8 deletions
|
|
@ -1377,14 +1377,17 @@ When not inside a field, signal an error."
|
|||
(defun widget-setup ()
|
||||
"Setup current buffer so editing string widgets works."
|
||||
(widget--allow-insertion
|
||||
(dolist (field widget-field-new)
|
||||
(push field widget-field-list)
|
||||
(let ((from (car (widget-get field :field-overlay)))
|
||||
(to (cdr (widget-get field :field-overlay))))
|
||||
(widget-specify-field field
|
||||
(marker-position from) (marker-position to))
|
||||
(set-marker from nil)
|
||||
(set-marker to nil))))
|
||||
(let (field)
|
||||
(while widget-field-new
|
||||
(setq field (car widget-field-new)
|
||||
widget-field-new (cdr widget-field-new)
|
||||
widget-field-list (cons field widget-field-list))
|
||||
(let ((from (car (widget-get field :field-overlay)))
|
||||
(to (cdr (widget-get field :field-overlay))))
|
||||
(widget-specify-field field
|
||||
(marker-position from) (marker-position to))
|
||||
(set-marker from nil)
|
||||
(set-marker to nil)))))
|
||||
(widget-clear-undo)
|
||||
(widget-add-change))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue