diff options
Diffstat (limited to 'lisp')
| -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 @@ +2013-06-21 Leo Liu <sdl.web@gmail.com> + + * comint.el (comint-redirect-results-list-from-process): Fix + infinite loop. + 2013-06-21 Lars Magne Ingebrigtsen <larsi@gnus.org> * 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." ;; Skip past the command, if it was echoed (and (looking-at command) (forward-line)) - (while (re-search-forward regexp nil t) + (while (and (not (eobp)) + (re-search-forward regexp nil t)) (push (buffer-substring-no-properties (match-beginning regexp-group) (match-end regexp-group)) results)) - results))) + (nreverse results)))) ;; Converting process modes to use comint mode ;; =========================================================================== |
