mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
Add commentary for subtle aspect of frame.el
* lisp/frame.el: Explain why we use symbol-function when adding watchers for certain variables that need to trigger redisplay.
This commit is contained in:
parent
61c8434fec
commit
e5471b2381
@ -2475,6 +2475,9 @@ See also `toggle-frame-maximized'."
|
||||
;; F5 then produces the correct effect, the variable doesn't need
|
||||
;; to be in this list; otherwise, it does.
|
||||
(mapc (lambda (var)
|
||||
;; Using symbol-function here tells the watcher machinery to
|
||||
;; call the C function set-buffer-redisplay directly, thus
|
||||
;; avoiding a potential GC.
|
||||
(add-variable-watcher var (symbol-function 'set-buffer-redisplay)))
|
||||
'(line-spacing
|
||||
overline-margin
|
||||
|
Loading…
Reference in New Issue
Block a user