emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d58c29b: Revert last tweak in 'comint-output-filter


From: Martin Rudalics
Subject: [Emacs-diffs] master d58c29b: Revert last tweak in 'comint-output-filter'
Date: Tue, 12 Mar 2019 05:49:03 -0400 (EDT)

branch: master
commit d58c29b345b40b836eeb0d9452a5940beda01fff
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>

    Revert last tweak in 'comint-output-filter'
    
    * lisp/comint.el (comint-output-filter): Revert last tweak because
    it can hang gdb indefinitely.
---
 lisp/comint.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/comint.el b/lisp/comint.el
index e5012be..a5fca7e 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -2081,7 +2081,7 @@ Make backspaces delete the previous character."
                        (prompt-re (concat "\\`" (regexp-quote prompt))))
                   (while (string-match prompt-re string)
                     (setq string (substring string (match-end 0)))))))
-            (while (string-match (concat "\\(" comint-prompt-regexp
+            (while (string-match (concat "\\(^" comint-prompt-regexp
                                          "\\)\\1+")
                                  string)
               (setq string (replace-match "\\1" nil nil string)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]