diff options
Diffstat (limited to 'lisp/cus-edit.el')
| -rw-r--r-- | lisp/cus-edit.el | 7 |
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'." | |||
| 2212 | (unless (eq state 'modified) | 2212 | (unless (eq state 'modified) |
| 2213 | (unless (memq state '(nil unknown hidden)) | 2213 | (unless (memq state '(nil unknown hidden)) |
| 2214 | (widget-put widget :custom-state 'modified)) | 2214 | (widget-put widget :custom-state 'modified)) |
| 2215 | (custom-magic-reset widget) | 2215 | ;; Update the status text (usually from "STANDARD" to "EDITED |
| 2216 | ;; bla bla" in the buffer after the command has run. Otherwise | ||
| 2217 | ;; commands like `M-u' (that work on a region in the buffer) | ||
| 2218 | ;; will upcase the wrong part of the buffer, since more text has | ||
| 2219 | ;; been inserted before point. | ||
| 2220 | (run-with-idle-timer 0.0 nil #'custom-magic-reset widget) | ||
| 2216 | (apply 'widget-default-notify widget args)))) | 2221 | (apply 'widget-default-notify widget args)))) |
| 2217 | 2222 | ||
| 2218 | (defun custom-redraw (widget) | 2223 | (defun custom-redraw (widget) |