# HG changeset patch # User Glenn Morris # Date 1204514826 0 # Node ID 3c73d7e0c880464d8281721dc664d63cf7ba5f12 # Parent ff365ee5c861d11c224b0665a5747a63707d4113 Tweak frame-local variables entry. diff -r ff365ee5c861 -r 3c73d7e0c880 etc/NEWS --- 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.