From: Tom Tromey Date: Sat, 15 Jan 2022 09:30:24 +0000 (+0100) Subject: Use "server complete" instead of "complete" in gud-gdb-completions X-Git-Tag: emacs-29.0.90~3036 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ad3971f885858dd6513e307a9eaa710bbad0e03a;p=emacs.git 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). --- 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))))