emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 47b3928 102/495: disable read-only on error buffer


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 47b3928 102/495: disable read-only on error buffer before trying to write to it
Date: Sat, 7 Aug 2021 09:04:52 -0400 (EDT)

branch: elpa/go-mode
commit 47b3928a1cc811f9e3499ff579b559a560e68a51
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    disable read-only on error buffer before trying to write to it
---
 go-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 3f9bdb9..8a16d8a 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -375,8 +375,8 @@ Replace the current buffer on success; display errors on 
failure."
               (coding-system-for-read 'utf-8)
               (coding-system-for-write 'utf-8))
           (with-current-buffer errbuf
-            (let ((inhibit-read-only t))
-              (erase-buffer)))
+            (setq buffer-read-only nil)
+            (erase-buffer))
           (with-current-buffer srcbuf
             (save-restriction
               (let (deactivate-mark)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]