diff options
Diffstat (limited to 'japanese/emacs-manual/files/PORT_TEXIFMT.MK')
-rw-r--r-- | japanese/emacs-manual/files/PORT_TEXIFMT.MK | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/japanese/emacs-manual/files/PORT_TEXIFMT.MK b/japanese/emacs-manual/files/PORT_TEXIFMT.MK index 9443db0cbd56..a050d11992dd 100644 --- a/japanese/emacs-manual/files/PORT_TEXIFMT.MK +++ b/japanese/emacs-manual/files/PORT_TEXIFMT.MK @@ -2,13 +2,14 @@ ;;; PORT_TEXIFMT.MK --- for texinfo-format ;;; Code: -(defun port-texinfo-format () +(defun port-texinfo-format (file &optional coding-system) (let (obuf) - (find-file (expand-file-name PORT-TEXI)) + (find-file (expand-file-name file)) (setq obuf (current-buffer)) (require 'texinfmt) (texinfo-format-buffer t) - (set-buffer-file-coding-system 'iso-2022-jp) + (if coding-system + (set-buffer-file-coding-system coding-system)) (save-buffer) (kill-buffer (current-buffer)) (kill-buffer obuf))) |