diff options
| author | Karl Heuer | 1999-04-26 04:13:01 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-04-26 04:13:01 +0000 |
| commit | 2990dcd48431cfb159dbc0e1b6f9738cd35866f3 (patch) | |
| tree | cf73f5d86bf3ccd57950278b1c969e820aa712a2 /lisp/textmodes | |
| parent | 889c6ef5d97c31c1cbba36f2a851063f2bc67e49 (diff) | |
| download | emacs-2990dcd48431cfb159dbc0e1b6f9738cd35866f3.tar.gz emacs-2990dcd48431cfb159dbc0e1b6f9738cd35866f3.zip | |
(texinfo-format-buffer): Bind coding-system-for-write, to avoid hanging when
non-interactive.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index b1653ffa366..101737227b2 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -113,7 +113,8 @@ Non-nil argument (prefix, if interactive) means don't make tag table | |||
| 113 | and don't split the file if large. You can use Info-tagify and | 113 | and don't split the file if large. You can use Info-tagify and |
| 114 | Info-split to do these manually." | 114 | Info-split to do these manually." |
| 115 | (interactive "P") | 115 | (interactive "P") |
| 116 | (let ((lastmessage "Formatting Info file...")) | 116 | (let ((lastmessage "Formatting Info file...") |
| 117 | (coding-system-for-write buffer-file-coding-system)) | ||
| 117 | (message lastmessage) | 118 | (message lastmessage) |
| 118 | (widen) | 119 | (widen) |
| 119 | (texinfo-format-buffer-1) | 120 | (texinfo-format-buffer-1) |