Mercurial > emacs
comparison etc/NEWS @ 80262:22717831546c
More info on how to replace make-variable-frame-local.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 01 Mar 2008 20:30:51 +0000 |
parents | 093f7929845a |
children | 3c73d7e0c880 |
comparison
equal
deleted
inserted
replaced
80261:4af0bb174714 | 80262:22717831546c |
---|---|
133 `shell-dirtrack-mode' instead. | 133 `shell-dirtrack-mode' instead. |
134 | 134 |
135 * Lisp Changes in Emacs 22.2. | 135 * Lisp Changes in Emacs 22.2. |
136 | 136 |
137 ** Frame-local variables are deprecated and are slated for removal. | 137 ** Frame-local variables are deprecated and are slated for removal. |
138 Use frame parameters instead. | 138 They can easily be emulated. Rather than calling `make-variable-frame-local' |
139 and accessing the variable value directly, explicitly check for a | |
140 frame-parameter, and if there is one, use its value in preference to | |
141 that of the variable. Eg: | |
142 (let ((fp (assoc 'var (frame-parameters)))) | |
143 ;; Use frame-parameter, even if nil. | |
144 (if fp (cdr fp) | |
145 ;; Else use normal variable value. | |
146 var)) | |
139 | 147 |
140 ** The function invisible-p returns non-nil if the character | 148 ** The function invisible-p returns non-nil if the character |
141 after a specified position is invisible. | 149 after a specified position is invisible. |
142 | 150 |
143 +++ | 151 +++ |