changeset 80265:3c73d7e0c880

Tweak frame-local variables entry.
author Glenn Morris <rgm@gnu.org>
date Mon, 03 Mar 2008 03:27:06 +0000
parents ff365ee5c861
children 191c9a6e1768
files etc/NEWS
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Sun Mar 02 16:18:21 2008 +0000
+++ b/etc/NEWS	Mon Mar 03 03:27:06 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.