mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 02:31:03 -08:00
work-buffer--release: Bind inhibit-read-only
* lisp/emacs-lisp/subr-x.el (work-buffer--release): Bind inhibit-read-only while erasing the buffer.
This commit is contained in:
parent
6e8fc4f6ea
commit
069ecc9c4c
1 changed files with 2 additions and 1 deletions
|
|
@ -357,7 +357,8 @@ automatically killed, which means that in a such case
|
|||
;; Flush BUFFER before making it available again, i.e. clear
|
||||
;; its contents, remove all overlays and buffer-local
|
||||
;; variables. Is it enough to safely reuse the buffer?
|
||||
(erase-buffer)
|
||||
(let ((inhibit-read-only t))
|
||||
(erase-buffer))
|
||||
(delete-all-overlays)
|
||||
(let (change-major-mode-hook)
|
||||
(kill-all-local-variables t))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue