aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorKarl Heuer1999-04-26 04:13:01 +0000
committerKarl Heuer1999-04-26 04:13:01 +0000
commit2990dcd48431cfb159dbc0e1b6f9738cd35866f3 (patch)
treecf73f5d86bf3ccd57950278b1c969e820aa712a2 /lisp/textmodes
parent889c6ef5d97c31c1cbba36f2a851063f2bc67e49 (diff)
downloademacs-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.el3
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
113and don't split the file if large. You can use Info-tagify and 113and don't split the file if large. You can use Info-tagify and
114Info-split to do these manually." 114Info-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)