Commit 1d599df5 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

Fix last change to textmodes/page-ext.el

* lisp/textmodes/page-ext.el (pages-directory): Make buffer writable
while we build it (bug#28431).
parent a726e09a
...@@ -583,6 +583,7 @@ directory for only the accessible portion of the buffer." ...@@ -583,6 +583,7 @@ directory for only the accessible portion of the buffer."
(with-output-to-temp-buffer pages-directory-buffer (with-output-to-temp-buffer pages-directory-buffer
(with-current-buffer standard-output (with-current-buffer standard-output
(pages-directory-mode) (pages-directory-mode)
(setq buffer-read-only nil)
(insert (insert
"==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" ?\n) "==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" ?\n)
(setq pages-buffer pages-target-buffer) (setq pages-buffer pages-target-buffer)
...@@ -631,6 +632,7 @@ directory for only the accessible portion of the buffer." ...@@ -631,6 +632,7 @@ directory for only the accessible portion of the buffer."
))))) )))))
(set-buffer standard-output) (set-buffer standard-output)
(setq buffer-read-only t)
;; Put positions in increasing order to go with buffer. ;; Put positions in increasing order to go with buffer.
(setq pages-pos-list (nreverse pages-pos-list)) (setq pages-pos-list (nreverse pages-pos-list))
(if (called-interactively-p 'interactive) (if (called-interactively-p 'interactive)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment