branch: externals/detached
commit 6f825c56e7cdc6afae0498cc06ff0e37cbffea9b
Author: Niklas Eklund <[email protected]>
Commit: Niklas Eklund <[email protected]>
Fix read-only error
The detached-log-mode modifies the buffer and therefore needs to be
iniside the inhibit-read-only scope.
---
detached.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/detached.el b/detached.el
index e9e8ebbdd9..e330548516 100644
--- a/detached.el
+++ b/detached.el
@@ -469,8 +469,8 @@ Optionally DELETE the session if prefix-argument is
provided."
(let ((inhibit-read-only t))
(erase-buffer)
(insert (detached--session-output session))
- (setq-local default-directory
(detached--session-working-directory session)))
- (detached-log-mode)
+ (setq-local default-directory
(detached--session-working-directory session))
+ (detached-log-mode))
(setq detached--buffer-session session)
(goto-char (point-max)))
(pop-to-buffer buffer-name))