]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak frame-local variables entry.
authorGlenn Morris <rgm@gnu.org>
Mon, 3 Mar 2008 03:27:16 +0000 (03:27 +0000)
committerGlenn Morris <rgm@gnu.org>
Mon, 3 Mar 2008 03:27:16 +0000 (03:27 +0000)
etc/NEWS.22

index 5778e56ca26ddcba0931f6a2abb3d7bb6dcc1e46..dec786ba5242a528a42f65852ee359fef3298369 100644 (file)
@@ -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.