[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/etc/NEWS.22,v

From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/etc/NEWS.22,v
Date: Sat, 01 Mar 2008 20:31:09 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/03/01 20:31:09

Index: NEWS.22
RCS file: /sources/emacs/emacs/etc/NEWS.22,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- NEWS.22     1 Mar 2008 01:28:27 -0000       1.35
+++ NEWS.22     1 Mar 2008 20:31:09 -0000       1.36
@@ -135,7 +135,15 @@
 * Lisp Changes in Emacs 22.2.
 ** Frame-local variables are deprecated and are slated for removal.
-Use frame parameters instead.
+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))
 ** The function invisible-p returns non-nil if the character
 after a specified position is invisible.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]