# HG changeset patch # User Glenn Morris # Date 1204514836 0 # Node ID 72829b7b170cbce8b46042d3e85f1703b3e52a3e # Parent 312562d2ffe934aa4ef204b1e785848904fe1b23 Tweak frame-local variables entry. diff -r 312562d2ffe9 -r 72829b7b170c etc/NEWS.22 --- 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.