From: Glenn Morris Date: Mon, 3 Mar 2008 03:27:06 +0000 (+0000) Subject: Tweak frame-local variables entry. X-Git-Tag: emacs-pretest-22.1.92~26 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee199d9e65fd6ccbdb77d0016eb8b2664e335590;p=emacs.git Tweak frame-local variables entry. --- diff --git a/etc/NEWS b/etc/NEWS index 5971c479658..141db1fd2eb 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -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.