emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ad3971f885: Use "server complete" instead of "complete" in gud-gd


From: Lars Ingebrigtsen
Subject: master ad3971f885: Use "server complete" instead of "complete" in gud-gdb-completions
Date: Sat, 15 Jan 2022 04:31:03 -0500 (EST)

branch: master
commit ad3971f885858dd6513e307a9eaa710bbad0e03a
Author: Tom Tromey <tom@tromey.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 3f78c9eb15..b42279415b 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]