emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/etc/NEWS,v [EMACS_22_BASE]
Date: Sat, 01 Mar 2008 20:30:52 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Glenn Morris <gm>       08/03/01 20:30:52

Index: NEWS
===================================================================
RCS file: /sources/emacs/emacs/etc/NEWS,v
retrieving revision 1.1465.2.63
retrieving revision 1.1465.2.64
diff -u -b -r1.1465.2.63 -r1.1465.2.64
--- NEWS        25 Feb 2008 08:15:15 -0000      1.1465.2.63
+++ NEWS        1 Mar 2008 20:30:51 -0000       1.1465.2.64
@@ -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]