diff options
| author | Alex Branham | 2019-02-23 07:35:01 -0600 |
|---|---|---|
| committer | Alex Branham | 2019-02-24 19:10:36 -0600 |
| commit | 6a3b1aaa066dac28355ca5d09550947250108950 (patch) | |
| tree | 363d94271d5561475bee76d633aaed2b1d45835a | |
| parent | 72ec233f2a1b8a6a9574e61588d0467caf41755c (diff) | |
| download | emacs-6a3b1aaa066dac28355ca5d09550947250108950.tar.gz emacs-6a3b1aaa066dac28355ca5d09550947250108950.zip | |
* lisp/comint.el (comint-skip-input): Set inhibit-read-only to t
Bug#33975
| -rw-r--r-- | lisp/comint.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 0a6aff2e73f..a51413dc655 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -2536,13 +2536,16 @@ Useful if you accidentally suspend the top-level process." | |||
| 2536 | 2536 | ||
| 2537 | (defun comint-skip-input () | 2537 | (defun comint-skip-input () |
| 2538 | "Skip all pending input, from last stuff output by interpreter to point. | 2538 | "Skip all pending input, from last stuff output by interpreter to point. |
| 2539 | This means mark it as if it had been sent as input, without sending it." | 2539 | This means mark it as if it had been sent as input, without |
| 2540 | sending it. The command keys used to trigger the command that | ||
| 2541 | called this function are inserted into the buffer." | ||
| 2540 | (let ((comint-input-sender 'ignore) | 2542 | (let ((comint-input-sender 'ignore) |
| 2541 | (comint-input-filter-functions nil)) | 2543 | (comint-input-filter-functions nil)) |
| 2542 | (comint-send-input t t)) | 2544 | (comint-send-input t t)) |
| 2543 | (end-of-line) | 2545 | (end-of-line) |
| 2544 | (let ((pos (point)) | 2546 | (let ((pos (point)) |
| 2545 | (marker (process-mark (get-buffer-process (current-buffer))))) | 2547 | (marker (process-mark (get-buffer-process (current-buffer)))) |
| 2548 | (inhibit-read-only t)) | ||
| 2546 | (insert " " (key-description (this-command-keys))) | 2549 | (insert " " (key-description (this-command-keys))) |
| 2547 | (if (= marker pos) | 2550 | (if (= marker pos) |
| 2548 | (set-marker marker (point))))) | 2551 | (set-marker marker (point))))) |