mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
64c1cad545
GNU Emacs Lisp Reference Manual edition 2.5. PR: ports/17771 Submitted by: OKAZAKI Tetsurou <okazaki@be.to>
18 lines
460 B
Makefile
18 lines
460 B
Makefile
;;; -*- Emacs-Lisp -*-
|
|
;;; PORT_TEXIFMT.MK --- for texinfo-format
|
|
;;; Code:
|
|
|
|
(defun port-texinfo-format (file &optional coding-system)
|
|
(let (obuf)
|
|
(find-file (expand-file-name file))
|
|
(setq obuf (current-buffer))
|
|
(require 'texinfmt)
|
|
(texinfo-format-buffer t)
|
|
(if coding-system
|
|
(set-buffer-file-coding-system coding-system))
|
|
(save-buffer)
|
|
(kill-buffer (current-buffer))
|
|
(kill-buffer obuf)))
|
|
|
|
;;; PORT_TEXIFMT.MK ends here
|