Skip to content

Commit

Permalink
Merge pull request #455 from vanicat/t/read-only-error
Browse files Browse the repository at this point in the history
inhibit read only when inserting in *Ledger Error*
  • Loading branch information
jwiegley committed Oct 26, 2017
2 parents 8bdc0bb + 097abf2 commit 2b98192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/ledger-exec.el
Expand Up @@ -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)))

Expand Down

0 comments on commit 2b98192

Please sign in to comment.