(gdb-send): Repeat last command on RET properly (Emacs bug #3794). diff -r b45e93199252 gdb-mi.el --- a/gdb-mi.el +++ b/gdb-mi.el @@ -1267,7 +1267,7 @@ (let ((inhibit-read-only t)) (remove-text-properties (point-min) (point-max) '(face)))) ;; mimic key to repeat previous command in GDB - (if (not (string-match "^\\s+$" string)) + (if (not (string= "" string)) (setq gdb-last-command string) (if gdb-last-command (setq string gdb-last-command))) (if gdb-enable-debug