diff options
author | Glenn Morris <rgm@gnu.org> | 2008-03-03 03:27:16 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-03-03 03:27:16 +0000 |
commit | 83c7166192ef25f99922b319131505e816287fba (patch) | |
tree | af8c3cbc15de7d746a267b2dc276f3478b2c5d09 /etc/NEWS.22 | |
parent | aba08fe5f68c19febc0ffde6b67af5142b269a97 (diff) | |
download | emacs-83c7166192ef25f99922b319131505e816287fba.tar.gz |
Tweak frame-local variables entry.
Diffstat (limited to 'etc/NEWS.22')
-rw-r--r-- | etc/NEWS.22 | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/etc/NEWS.22 b/etc/NEWS.22 index 5778e56ca26..dec786ba524 100644 --- a/etc/NEWS.22 +++ b/etc/NEWS.22 @@ -138,12 +138,9 @@ because they clash with commands provided by dirtrack.el. Use They can easily be emulated. Rather than calling `make-variable-frame-local' and accessing the variable value directly, explicitly check for a frame-parameter, and if there is one, use its value in preference to -that of the variable. Eg: -(let ((fp (assoc 'var (frame-parameters)))) - ;; Use frame-parameter, even if nil. - (if fp (cdr fp) - ;; Else use normal variable value. - var)) +that of the variable. Note that buffer-local values should take +preference over frame-local ones, so you may wish to check `local-variable-p' +first. ** The function invisible-p returns non-nil if the character after a specified position is invisible. |