1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00

(texinfo-format-region):

[on behalf of Lennart Borgman <lennart.borgman.073@student.lu.se>]
    Set buffer to read-only except for texinfo-format-region evaluation.
This commit is contained in:
Robert J. Chassell 2005-12-14 21:57:31 +00:00
parent bf63eb6967
commit 2cd2e4c5db

View File

@ -212,6 +212,8 @@ converted to Info is stored in a temporary buffer."
;;; Find a buffer to use.
(switch-to-buffer (get-buffer-create texinfo-region-buffer-name))
(setq buffer-read-only t)
(let ((inhibit-read-only t))
(erase-buffer)
;; Insert the header into the buffer.
(insert header-text)
@ -313,7 +315,7 @@ converted to Info is stored in a temporary buffer."
(goto-char (point-min))
(Info-tagify input-buffer)
(goto-char (point-min))
(message "Done.")))
(message "Done."))))
;;;###autoload
(defun texi2info (&optional nosplit)