mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 13:57:36 +00:00
(comint-send-input): Bind inhibit-read-only' around call to delete-region'.
This commit is contained in:
parent
fd8529d0a1
commit
754dc10d38
1 changed files with 6 additions and 2 deletions
|
|
@ -1547,8 +1547,12 @@ Similarly for Soar, Scheme, etc."
|
|||
nil comint-last-input-start comint-last-input-end
|
||||
nil comint-last-input-end
|
||||
(+ comint-last-input-end echo-len))))
|
||||
(delete-region comint-last-input-end
|
||||
(+ comint-last-input-end echo-len)))))
|
||||
;; Certain parts of the text to be deleted may have
|
||||
;; been mistaken for prompts. We have to prevent
|
||||
;; problems when `comint-prompt-read-only' is non-nil.
|
||||
(let ((inhibit-read-only t))
|
||||
(delete-region comint-last-input-end
|
||||
(+ comint-last-input-end echo-len))))))
|
||||
|
||||
;; This used to call comint-output-filter-functions,
|
||||
;; but that scrolled the buffer in undesirable ways.
|
||||
|
|
|
|||
Loading…
Reference in a new issue