diff options
| author | Leo Liu | 2013-06-21 17:37:04 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-06-21 17:37:04 +0800 |
| commit | aed838b5abc33741f0c6c919c9f4b7d79d3bdb52 (patch) | |
| tree | 8688b00e32be71f50778c6736eb6a5a959c9ae7c | |
| parent | d80a808f8d49b1563df7eabda86e387af0787c77 (diff) | |
| download | emacs-aed838b5abc33741f0c6c919c9f4b7d79d3bdb52.tar.gz emacs-aed838b5abc33741f0c6c919c9f4b7d79d3bdb52.zip | |
* comint.el (comint-redirect-results-list-from-process): Fix
infinite loop.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/comint.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f258f37f1d6..c79fcbd903f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-21 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * comint.el (comint-redirect-results-list-from-process): Fix | ||
| 4 | infinite loop. | ||
| 5 | |||
| 1 | 2013-06-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2013-06-21 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * net/eww.el (eww-update-header-line-format): Quote % characters. | 8 | * net/eww.el (eww-update-header-line-format): Quote % characters. |
diff --git a/lisp/comint.el b/lisp/comint.el index c1a1c56f78a..217bd4e8b6d 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -3733,12 +3733,13 @@ REGEXP-GROUP is the regular expression group in REGEXP to use." | |||
| 3733 | ;; Skip past the command, if it was echoed | 3733 | ;; Skip past the command, if it was echoed |
| 3734 | (and (looking-at command) | 3734 | (and (looking-at command) |
| 3735 | (forward-line)) | 3735 | (forward-line)) |
| 3736 | (while (re-search-forward regexp nil t) | 3736 | (while (and (not (eobp)) |
| 3737 | (re-search-forward regexp nil t)) | ||
| 3737 | (push (buffer-substring-no-properties | 3738 | (push (buffer-substring-no-properties |
| 3738 | (match-beginning regexp-group) | 3739 | (match-beginning regexp-group) |
| 3739 | (match-end regexp-group)) | 3740 | (match-end regexp-group)) |
| 3740 | results)) | 3741 | results)) |
| 3741 | results))) | 3742 | (nreverse results)))) |
| 3742 | 3743 | ||
| 3743 | ;; Converting process modes to use comint mode | 3744 | ;; Converting process modes to use comint mode |
| 3744 | ;; =========================================================================== | 3745 | ;; =========================================================================== |