From ad3971f885858dd6513e307a9eaa710bbad0e03a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 15 Jan 2022 10:30:24 +0100 Subject: [PATCH] Use "server complete" instead of "complete" in gud-gdb-completions * lisp/progmodes/gud.el (gud-gdb-completions): gud-gdb sends a "complete" command to gdb to implement command line completion. It would be better to send "server complete". This is what Emacs does for other behind-the-scenes commands it sends (bug#52922). --- lisp/progmodes/gud.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 3f78c9eb15b..b42279415bc 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -869,7 +869,8 @@ the buffer in which this command was invoked." COMMAND is the prefix for which we seek completion. CONTEXT is the text before COMMAND on the line." (let* ((complete-list - (gud-gdb-run-command-fetch-lines (concat "complete " context command) + (gud-gdb-run-command-fetch-lines (concat "server complete " + context command) (current-buffer) ;; From string-match above. (length context)))) -- 2.39.2