diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-15 10:30:24 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-01-15 10:30:24 +0100 |
commit | ad3971f885858dd6513e307a9eaa710bbad0e03a (patch) | |
tree | 1bcc9050cf1916f9eb31ac8f2bf9e404e457c580 | |
parent | f501d0aed00998feb28c6f716e50f22a326b558c (diff) | |
download | emacs-ad3971f885858dd6513e307a9eaa710bbad0e03a.tar.gz |
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).
-rw-r--r-- | lisp/progmodes/gud.el | 3 |
1 files changed, 2 insertions, 1 deletions
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)))) |