diff options
| author | Chong Yidong | 2009-01-22 04:54:35 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-01-22 04:54:35 +0000 |
| commit | 1d1cf99f755b85114fe722c6b6d02419bdc30df9 (patch) | |
| tree | bed59e6038fa2af1bd84130aef08efd69a6320d0 | |
| parent | ae12425c9d1bb813a2c58ec94cb835b76c18fb6a (diff) | |
| download | emacs-1d1cf99f755b85114fe722c6b6d02419bdc30df9.tar.gz emacs-1d1cf99f755b85114fe722c6b6d02419bdc30df9.zip | |
(format-annotate-function): Set write-region-post-annotation-function.
| -rw-r--r-- | lisp/format.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/format.el b/lisp/format.el index 34545810c56..27253a2c47d 100644 --- a/lisp/format.el +++ b/lisp/format.el | |||
| @@ -218,6 +218,9 @@ For most purposes, consider using `format-encode-region' instead." | |||
| 218 | (multibyte enable-multibyte-characters) | 218 | (multibyte enable-multibyte-characters) |
| 219 | (coding-system buffer-file-coding-system)) | 219 | (coding-system buffer-file-coding-system)) |
| 220 | (with-current-buffer copy-buf | 220 | (with-current-buffer copy-buf |
| 221 | (set (make-local-variable | ||
| 222 | 'write-region-post-annotation-function) | ||
| 223 | 'kill-buffer) | ||
| 221 | (setq selective-display sel-disp) | 224 | (setq selective-display sel-disp) |
| 222 | (set-buffer-multibyte multibyte) | 225 | (set-buffer-multibyte multibyte) |
| 223 | (setq buffer-file-coding-system coding-system)) | 226 | (setq buffer-file-coding-system coding-system)) |