aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert J. Chassell2005-12-14 21:57:31 +0000
committerRobert J. Chassell2005-12-14 21:57:31 +0000
commit2cd2e4c5db54eb96b4d0c541863489ad828132df (patch)
tree0b0da961906c8f09d48ee032a4b3edb9a4a550b3
parentbf63eb69676e4bb7804802c3d3a727dbfac149d0 (diff)
downloademacs-2cd2e4c5db54eb96b4d0c541863489ad828132df.tar.gz
emacs-2cd2e4c5db54eb96b4d0c541863489ad828132df.zip
(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.
-rw-r--r--lisp/textmodes/texinfmt.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el
index d46d2f81fd4..15a15eb37fb 100644
--- a/lisp/textmodes/texinfmt.el
+++ b/lisp/textmodes/texinfmt.el
@@ -212,6 +212,8 @@ converted to Info is stored in a temporary buffer."
212 212
213;;; Find a buffer to use. 213;;; Find a buffer to use.
214 (switch-to-buffer (get-buffer-create texinfo-region-buffer-name)) 214 (switch-to-buffer (get-buffer-create texinfo-region-buffer-name))
215 (setq buffer-read-only t)
216 (let ((inhibit-read-only t))
215 (erase-buffer) 217 (erase-buffer)
216 ;; Insert the header into the buffer. 218 ;; Insert the header into the buffer.
217 (insert header-text) 219 (insert header-text)
@@ -313,7 +315,7 @@ converted to Info is stored in a temporary buffer."
313 (goto-char (point-min)) 315 (goto-char (point-min))
314 (Info-tagify input-buffer) 316 (Info-tagify input-buffer)
315 (goto-char (point-min)) 317 (goto-char (point-min))
316 (message "Done."))) 318 (message "Done."))))
317 319
318;;;###autoload 320;;;###autoload
319(defun texi2info (&optional nosplit) 321(defun texi2info (&optional nosplit)