# HG changeset patch # User Glenn Morris # Date 1204403469 0 # Node ID c24471443e225e3675a067986c0e53baeae104d6 # Parent 3cb290e82a4d5dbff56449439f22cc434d7c5a3e More info on how to replace make-variable-frame-local. diff -r 3cb290e82a4d -r c24471443e22 etc/NEWS.22 --- a/etc/NEWS.22 Sat Mar 01 20:23:36 2008 +0000 +++ b/etc/NEWS.22 Sat Mar 01 20:31:09 2008 +0000 @@ -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.