changeset 92424:72829b7b170c

Tweak frame-local variables entry.
author Glenn Morris <rgm@gnu.org>
date Mon, 03 Mar 2008 03:27:16 +0000
parents 312562d2ffe9
children c6c2c9daee54
files etc/NEWS.22
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS.22	Mon Mar 03 03:24:32 2008 +0000
+++ b/etc/NEWS.22	Mon Mar 03 03:27:16 2008 +0000
@@ -138,12 +138,9 @@
 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.