diff options
| author | Romain Francoise | 2005-09-28 17:47:00 +0000 |
|---|---|---|
| committer | Romain Francoise | 2005-09-28 17:47:00 +0000 |
| commit | 07f1355e6dcbf6a7839540f856ccdc85f882cd25 (patch) | |
| tree | 4e6faaac9711ec50c9653a8dfc3cfdca92ea9b12 /lisp/comint.el | |
| parent | 0f4aca467ea8f567c03a7d52057b81982661d65b (diff) | |
| download | emacs-07f1355e6dcbf6a7839540f856ccdc85f882cd25.tar.gz emacs-07f1355e6dcbf6a7839540f856ccdc85f882cd25.zip | |
(comint-show-output): Really set point at the beginning of the output
when not using `comint-use-prompt-regexp'.
Diffstat (limited to 'lisp/comint.el')
| -rw-r--r-- | lisp/comint.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 0977663808a..c92d0a10ad3 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -2056,7 +2056,11 @@ Sets mark to the value of point when this command is run." | |||
| 2056 | (set-window-start (selected-window) (point)) | 2056 | (set-window-start (selected-window) (point)) |
| 2057 | (comint-skip-prompt)) | 2057 | (comint-skip-prompt)) |
| 2058 | (t | 2058 | (t |
| 2059 | (goto-char (field-beginning pos)) | 2059 | (let* ((beg (field-beginning pos)) |
| 2060 | (pt (if (= (point-min) beg) | ||
| 2061 | (point-min) | ||
| 2062 | (1+ beg)))) | ||
| 2063 | (goto-char pt)) | ||
| 2060 | (set-window-start (selected-window) (point)))))) | 2064 | (set-window-start (selected-window) (point)))))) |
| 2061 | 2065 | ||
| 2062 | 2066 | ||