From 097abf2be5bb1260b27ce98d66d813f279acf48f Mon Sep 17 00:00:00 2001 From: RĂ©mi Vanicat Date: Sat, 28 May 2016 15:35:09 +0200 Subject: inhibit read only when inserting in *Ledger Error* When ledger-exec-handle-error is called a second time, it try to insert the error in a buffer that is already read-only. inhibit-read-only permit the insertion. --- lisp/ledger-exec.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ledger-exec.el b/lisp/ledger-exec.el index 4ba9134d..75a05262 100644 --- a/lisp/ledger-exec.el +++ b/lisp/ledger-exec.el @@ -48,7 +48,8 @@ (defun ledger-exec-handle-error (ledger-output) "Deal with ledger errors contained in LEDGER-OUTPUT." (with-current-buffer (get-buffer-create "*Ledger Error*") - (insert-buffer-substring ledger-output) + (let ((inhibit-read-only t)) + (insert-buffer-substring ledger-output)) (view-mode) (setq buffer-read-only t))) -- cgit v1.2.3