]> git.eshelyaron.com Git - emacs.git/commitdiff
Use "server complete" instead of "complete" in gud-gdb-completions
authorTom Tromey <tom@tromey.com>
Sat, 15 Jan 2022 09:30:24 +0000 (10:30 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jan 2022 09:30:24 +0000 (10:30 +0100)
* 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

index 3f78c9eb15b4628b304e15a68a2e5b835c91a241..b42279415bc6a3e096fb544e5558135896800bbe 100644 (file)
@@ -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))))