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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue