diff options
| author | Glenn Morris | 2008-03-01 20:30:51 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-01 20:30:51 +0000 |
| commit | 59cd993bbda67978f1c25e205b9c429cd30e267f (patch) | |
| tree | 8ccea86c1db19e8a0c237ce683079952bc38a4c3 | |
| parent | 8e7883692a55a3fcf2b19f9b86b11947a490f6c8 (diff) | |
| download | emacs-59cd993bbda67978f1c25e205b9c429cd30e267f.tar.gz emacs-59cd993bbda67978f1c25e205b9c429cd30e267f.zip | |
More info on how to replace make-variable-frame-local.
| -rw-r--r-- | etc/NEWS | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -135,7 +135,15 @@ because they clash with commands provided by dirtrack.el. Use | |||
| 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. |