Skip to content

Commit 432492a

Browse files
committed
feat: bash-completion-debug reports bash-completion scripts version
With this change, bash-completion.el notes the value of BASH_COMPLETION_VERSINFO, set by the official bash completion scripts from https://github.com/scop/bash-completion This should help debug any future incompatibilities.
1 parent b2c976c commit 432492a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bash-completion.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,12 @@ returned."
445445
(buffer-substring-no-properties
446446
(point-min) (point-max))))
447447

448+
(bash-completion-send "echo -n ${BASH_COMPLETION_VERSINFO[*]}" process)
449+
(process-put process 'bash-completion-scripts-version
450+
(with-current-buffer (bash-completion--get-buffer process)
451+
(buffer-substring-no-properties
452+
(point-min) (point-max))))
453+
448454
(bash-completion-send "bind -v 2>/dev/null" process)
449455
(process-put process 'completion-ignore-case
450456
(with-current-buffer (bash-completion--get-buffer process)
@@ -1645,6 +1651,7 @@ Return the status code of the command, as a number."
16451651
(bash-completion--debug-print 'emacs-version emacs-version)
16461652
(bash-completion--debug-print-procinfo 'bash-version) ; separate process
16471653
(bash-completion--debug-print-info 'bash-version) ; one process
1654+
(bash-completion--debug-print-procinfo 'bash-completion-scripts-version)
16481655
(bash-completion--debug-print-procinfo 'completion-ignore-case)
16491656
(bash-completion--debug-print-info 'context)))
16501657

0 commit comments

Comments
 (0)