From: Nick Roberts Date: Mon, 13 Aug 2007 09:28:31 +0000 (+0000) Subject: (gdb-send): Handle CTRL-D more carefully. X-Git-Tag: emacs-pretest-22.1.90~1010 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cdf71ff2ef86e20d8892da4a938a93e1a0c5377b;p=emacs.git (gdb-send): Handle CTRL-D more carefully. --- diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index c4d14462245..716b79138f9 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -1132,10 +1132,10 @@ This filter may simply queue input for a later time." (let ((item (concat string "\n"))) (if gdb-enable-debug (push (cons 'send item) gdb-debug-log)) (process-send-string proc item))) - (if (and (string-match "\\\\$" string) - (not comint-input-sender-no-newline)) ;;Try to catch C-d. + (if (string-match "\\\\\\'" string) (setq gdb-continuation (concat gdb-continuation string "\n")) - (let ((item (concat gdb-continuation string "\n"))) + (let ((item (concat gdb-continuation string + (if (not comint-input-sender-no-newline) "\n")))) (gdb-enqueue-input item) (setq gdb-continuation nil)))))