Skip to content

Commit a545141

Browse files
committed
override read-only when handling MPI messages
in `*shell*` buffers, the MPI message we are trying to extract may likely have the special `read-only` text property, which prevents us from deleting it after we handle it. Overcome this by wrapping the deletion command in a let form that binds `inhibit-read-only` to `t`, as suggested by the elisp manual's "Special Properties" page
1 parent d944300 commit a545141

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/ess-tracebug.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,8 @@ ends with an incomplete message."
12571257
(apply handler payload))
12581258
(error "No handler defined for MPI message '%s" head))
12591259
(goto-char mbeg0)
1260-
(delete-region mbeg0 mend0)))
1260+
(let ((inhibit-read-only t))
1261+
(delete-region mbeg0 mend0))))
12611262
(setq out :incomplete))))
12621263
out)))
12631264

0 commit comments

Comments
 (0)