unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Invoking gdb hangs after tweak in comint.el
@ 2019-03-12  9:51 martin rudalics
  2019-03-12 12:07 ` Mattias Engdegård
  0 siblings, 1 reply; 4+ messages in thread
From: martin rudalics @ 2019-03-12  9:51 UTC (permalink / raw)
  To: emacs-devel

This change

diff --git a/lisp/comint.el b/lisp/comint.el
index a5fca7e..e5012be 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)))

hangs Emacs indefinitely when I invoke gdb via say

M-x gdb -i=mi home/martin/emacs-git/trunk/obj-gtk/src/emacs

and I subsequently have to kill the Emacs process with the task
manager.

I have reverted that tweak for now.  Please consider a different
solution.

Thanks in advance, martin



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-23  9:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-12  9:51 Invoking gdb hangs after tweak in comint.el martin rudalics
2019-03-12 12:07 ` Mattias Engdegård
2019-03-19  0:47   ` Paul Eggert
2019-04-23  9:21     ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).