aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-07-08 11:08:55 +0300
committerEli Zaretskii2017-07-08 11:08:55 +0300
commit6e2a2b334d6ab58722ddd0eda19413c115573980 (patch)
tree379950dd355b991034d60f0110f9b9e33479f4de
parent5df239fc6ffbbb16ea6e5546fbec1508bf2cb4b7 (diff)
downloademacs-6e2a2b334d6ab58722ddd0eda19413c115573980.tar.gz
emacs-6e2a2b334d6ab58722ddd0eda19413c115573980.zip
Commentary enhancement in frame.el
* lisp/frame.el: Explain how to test whether a variable needs to be added to the list of those which are watched for buffer redisplay.
-rw-r--r--lisp/frame.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index c629a9497c0..0e9f38589f9 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -2458,7 +2458,13 @@ See also `toggle-frame-maximized'."
2458(make-obsolete-variable 2458(make-obsolete-variable
2459 'window-system-version "it does not give useful information." "24.3") 2459 'window-system-version "it does not give useful information." "24.3")
2460 2460
2461;; Variables which should trigger redisplay of the current buffer. 2461;; Variables whose change of value should trigger redisplay of the
2462;; current buffer.
2463;; To test whether a given variable needs to be added to this list,
2464;; write a simple interactive function that changes the variable's
2465;; value and bind that function to a simple key, like F5. If typing
2466;; F5 then produces the correct effect, the variable doesn't need
2467;; to be in this list; otherwise, it does.
2462(mapc (lambda (var) 2468(mapc (lambda (var)
2463 (add-variable-watcher var (symbol-function 'set-buffer-redisplay))) 2469 (add-variable-watcher var (symbol-function 'set-buffer-redisplay)))
2464 '(line-spacing 2470 '(line-spacing