; Fix recent changes of LLDB support

* lisp/progmodes/gud.el (gud-lldb-max-completions)
(gud-lldb-fetch-completions): Fix doc string and :version tag.
This commit is contained in:
Eli Zaretskii 2023-10-20 15:50:33 +03:00
parent a8b14b77ff
commit 199e42be2a

View file

@ -3907,7 +3907,8 @@ so they have been disabled."))
(defcustom gud-lldb-max-completions 20
"Maximum number of completions to request from LLDB."
:type 'integer)
:type 'integer
:version "30.1")
(defvar gud-lldb-def-python-completion-function
"
@ -3927,7 +3928,9 @@ def gud_complete(s, max):
(defun gud-lldb-fetch-completions (context command)
"Return the data to complete the LLDB command before point.
This is what the Python function we installed at initialzation
time returns, as a Lisp list."
time returns, as a Lisp list.
Maximum number of completions requested from LLDB is controlled
by `gud-lldb-max-completions', which see."
(let* ((process (get-buffer-process gud-comint-buffer))
(to-complete (concat context command))
(output-buffer (get-buffer-create "*lldb-completions*")))