diff options
| author | Glenn Morris | 2008-03-03 03:27:06 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-03 03:27:06 +0000 |
| commit | ee199d9e65fd6ccbdb77d0016eb8b2664e335590 (patch) | |
| tree | a8e0b84d4d8ad993431155f3cf9c165359102a0d | |
| parent | 1344a1f99e110e040d69325f27a6d2afd26a7535 (diff) | |
| download | emacs-ee199d9e65fd6ccbdb77d0016eb8b2664e335590.tar.gz emacs-ee199d9e65fd6ccbdb77d0016eb8b2664e335590.zip | |
Tweak frame-local variables entry.
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 3 insertions, 6 deletions
| @@ -138,12 +138,9 @@ because they clash with commands provided by dirtrack.el. Use | |||
| 138 | They can easily be emulated. Rather than calling `make-variable-frame-local' | 138 | They can easily be emulated. Rather than calling `make-variable-frame-local' |
| 139 | and accessing the variable value directly, explicitly check for a | 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 | 140 | frame-parameter, and if there is one, use its value in preference to |
| 141 | that of the variable. Eg: | 141 | that of the variable. Note that buffer-local values should take |
| 142 | (let ((fp (assoc 'var (frame-parameters)))) | 142 | preference over frame-local ones, so you may wish to check `local-variable-p' |
| 143 | ;; Use frame-parameter, even if nil. | 143 | first. |
| 144 | (if fp (cdr fp) | ||
| 145 | ;; Else use normal variable value. | ||
| 146 | var)) | ||
| 147 | 144 | ||
| 148 | ** The function invisible-p returns non-nil if the character | 145 | ** The function invisible-p returns non-nil if the character |
| 149 | after a specified position is invisible. | 146 | after a specified position is invisible. |