summaryrefslogtreecommitdiff
path: root/lisp/frame.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-07-08 11:08:55 +0300
committerEli Zaretskii <eliz@gnu.org>2017-07-08 11:08:55 +0300
commit6e2a2b334d6ab58722ddd0eda19413c115573980 (patch)
tree379950dd355b991034d60f0110f9b9e33479f4de /lisp/frame.el
parent5df239fc6ffbbb16ea6e5546fbec1508bf2cb4b7 (diff)
downloademacs-6e2a2b334d6ab58722ddd0eda19413c115573980.tar.gz
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.
Diffstat (limited to 'lisp/frame.el')
-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'."
(make-obsolete-variable
'window-system-version "it does not give useful information." "24.3")
-;; Variables which should trigger redisplay of the current buffer.
+;; Variables whose change of value should trigger redisplay of the
+;; current buffer.
+;; To test whether a given variable needs to be added to this list,
+;; write a simple interactive function that changes the variable's
+;; value and bind that function to a simple key, like F5. If typing
+;; F5 then produces the correct effect, the variable doesn't need
+;; to be in this list; otherwise, it does.
(mapc (lambda (var)
(add-variable-watcher var (symbol-function 'set-buffer-redisplay)))
'(line-spacing