[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 9450103d6b: Use default completion spec wh
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 9450103d6b: Use default completion spec when no comp spec is found for current cmd (#59) |
Date: |
Tue, 31 Jan 2023 12:58:25 -0500 (EST) |
branch: elpa/bash-completion
commit 9450103d6b2db530b2896d6aadcfaa3b05388dc4
Author: montag451 <montag451@laposte.net>
Commit: GitHub <noreply@github.com>
Use default completion spec when no comp spec is found for current cmd (#59)
The commit 718d768 introduced a regression when the current command
has no completion spec defined. Instead of using the default
completion spec, it uses the first one returned by "complete -p". This
commit restores the old behaviour.
---
bash-completion.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bash-completion.el b/bash-completion.el
index da692a201c..a2f5f6df01 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1257,7 +1257,7 @@ The returned alist is a slightly parsed version of the
output of
(unless (eq 'command (bash-completion--type comp))
(let* ((complete-p (concat "complete -p "
(bash-completion-quote
(bash-completion--command comp))
- " 2>/dev/null || complete -p "))
+ " 2>/dev/null || complete -p -D"))
(status (bash-completion-send
(concat complete-p "&& type -t __emacs_complete_wrapper
>/dev/null 2>&1"))))
(setf (bash-completion--compgen-args comp)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/bash-completion 9450103d6b: Use default completion spec when no comp spec is found for current cmd (#59),
ELPA Syncer <=