diff options
| author | Stefan Monnier | 2017-09-16 20:10:31 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2017-09-16 20:10:31 -0400 |
| commit | 1d599df5e0fbbc52e8592c0aff1d23e978c29b67 (patch) | |
| tree | f2ce7f84e18ec9f48b3e8f4121a58257734f186e /lisp | |
| parent | a726e09a9a89f85c78b65a96601110bca1a9983b (diff) | |
| download | emacs-1d599df5e0fbbc52e8592c0aff1d23e978c29b67.tar.gz emacs-1d599df5e0fbbc52e8592c0aff1d23e978c29b67.zip | |
Fix last change to textmodes/page-ext.el
* lisp/textmodes/page-ext.el (pages-directory): Make buffer writable
while we build it (bug#28431).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/textmodes/page-ext.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/page-ext.el b/lisp/textmodes/page-ext.el index d744bd2cf01..94b68decfb7 100644 --- a/lisp/textmodes/page-ext.el +++ b/lisp/textmodes/page-ext.el | |||
| @@ -583,6 +583,7 @@ directory for only the accessible portion of the buffer." | |||
| 583 | (with-output-to-temp-buffer pages-directory-buffer | 583 | (with-output-to-temp-buffer pages-directory-buffer |
| 584 | (with-current-buffer standard-output | 584 | (with-current-buffer standard-output |
| 585 | (pages-directory-mode) | 585 | (pages-directory-mode) |
| 586 | (setq buffer-read-only nil) | ||
| 586 | (insert | 587 | (insert |
| 587 | "==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" ?\n) | 588 | "==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" ?\n) |
| 588 | (setq pages-buffer pages-target-buffer) | 589 | (setq pages-buffer pages-target-buffer) |
| @@ -631,6 +632,7 @@ directory for only the accessible portion of the buffer." | |||
| 631 | ))))) | 632 | ))))) |
| 632 | 633 | ||
| 633 | (set-buffer standard-output) | 634 | (set-buffer standard-output) |
| 635 | (setq buffer-read-only t) | ||
| 634 | ;; Put positions in increasing order to go with buffer. | 636 | ;; Put positions in increasing order to go with buffer. |
| 635 | (setq pages-pos-list (nreverse pages-pos-list)) | 637 | (setq pages-pos-list (nreverse pages-pos-list)) |
| 636 | (if (called-interactively-p 'interactive) | 638 | (if (called-interactively-p 'interactive) |