.emacs-my
changeset 1752 c3345b0bcad0
parent 1751 e09dfac4baf9
child 1753 b1de9260e82a
--- a/.emacs-my	Thu Dec 09 14:38:16 2021 +0200
+++ b/.emacs-my	Tue Feb 01 00:35:07 2022 +0200
@@ -1265,6 +1265,7 @@
 (defun my--erase-buffer ()
   (interactive)
   (advice-add #'ask-user-about-supersession-threat :override #'identity)
+  (setq buffer-read-only nil)
   (erase-buffer)
   (when (buffer-file-name)
     (basic-save-buffer-1)