diff options
| author | Chong Yidong | 2011-10-26 08:44:06 +0800 |
|---|---|---|
| committer | Chong Yidong | 2011-10-26 08:44:06 +0800 |
| commit | b1f6fa2666442e27ae8ac3439fd1891c94fe36bc (patch) | |
| tree | bb17cd1f4a09f00db5cf2ee1b752a94e86f05d02 /etc | |
| parent | 507ea2587e3b868468e83ff6bc8b3303c4097984 (diff) | |
| download | emacs-b1f6fa2666442e27ae8ac3439fd1891c94fe36bc.tar.gz emacs-b1f6fa2666442e27ae8ac3439fd1891c94fe36bc.zip | |
Document with-wrapper-hook.
* doc/emacs/modes.texi (Running Hooks): Document with-wrapper-hook.
* lisp/subr.el (with-wrapper-hook): Rewrite doc.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -1169,7 +1169,13 @@ must also be supplied. | |||
| 1169 | ** pre/post-command-hook are not reset to nil upon error. | 1169 | ** pre/post-command-hook are not reset to nil upon error. |
| 1170 | Instead, the offending function is removed. | 1170 | Instead, the offending function is removed. |
| 1171 | 1171 | ||
| 1172 | ** New low-level function run-hook-wrapped. | 1172 | ** New hook types |
| 1173 | |||
| 1174 | *** New function `run-hook-wrapped' for running an abnormal hook by | ||
| 1175 | passing the hook functions as arguments to a "wrapping" function. | ||
| 1176 | +++ | ||
| 1177 | *** New macro `with-wrapper-hook' for running an abnormal hook as a | ||
| 1178 | set of "wrapping" filters, similar to around advice. | ||
| 1173 | 1179 | ||
| 1174 | ** `server-eval-at' is provided to allow evaluating forms on different | 1180 | ** `server-eval-at' is provided to allow evaluating forms on different |
| 1175 | Emacs server instances. | 1181 | Emacs server instances. |