summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMichaƂ Kondraciuk <k.michal@zoho.com>2019-09-17 01:13:08 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-09-17 01:13:08 +0200
commit90ddad804a34b70af7d849f1fdd1f069a3c30f54 (patch)
tree8ef9a8876082ec1018ad7923a8cb4d8486e4d504 /lisp
parent603e70483b844201a46f13e0a9e7acf50d3fd273 (diff)
downloademacs-90ddad804a34b70af7d849f1fdd1f069a3c30f54.tar.gz
emacs-90ddad804a34b70af7d849f1fdd1f069a3c30f54.tar.bz2
emacs-90ddad804a34b70af7d849f1fdd1f069a3c30f54.zip
Allow `M-u' to work when editing fields in Customize
* lisp/cus-edit.el (custom-notify): Allow more editing commands to work in the Customize buffers (bug#31205). Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp')
-rw-r--r--lisp/cus-edit.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 8a8bad91137..24969633373 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -2212,7 +2212,12 @@ and `face'."
(unless (eq state 'modified)
(unless (memq state '(nil unknown hidden))
(widget-put widget :custom-state 'modified))
- (custom-magic-reset widget)
+ ;; Update the status text (usually from "STANDARD" to "EDITED
+ ;; bla bla" in the buffer after the command has run. Otherwise
+ ;; commands like `M-u' (that work on a region in the buffer)
+ ;; will upcase the wrong part of the buffer, since more text has
+ ;; been inserted before point.
+ (run-with-idle-timer 0.0 nil #'custom-magic-reset widget)
(apply 'widget-default-notify widget args))))
(defun custom-redraw (widget)