aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2013-06-21 17:37:04 +0800
committerLeo Liu2013-06-21 17:37:04 +0800
commitaed838b5abc33741f0c6c919c9f4b7d79d3bdb52 (patch)
tree8688b00e32be71f50778c6736eb6a5a959c9ae7c
parentd80a808f8d49b1563df7eabda86e387af0787c77 (diff)
downloademacs-aed838b5abc33741f0c6c919c9f4b7d79d3bdb52.tar.gz
emacs-aed838b5abc33741f0c6c919c9f4b7d79d3bdb52.zip
* comint.el (comint-redirect-results-list-from-process): Fix
infinite loop.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/comint.el5
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 @@
12013-06-21 Leo Liu <sdl.web@gmail.com>
2
3 * comint.el (comint-redirect-results-list-from-process): Fix
4 infinite loop.
5
12013-06-21 Lars Magne Ingebrigtsen <larsi@gnus.org> 62013-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;; ===========================================================================