[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 2390d5cdf3 061/313: more commends and docu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 2390d5cdf3 061/313: more commends and documentation; still need a commentary section |
Date: |
Sat, 3 Dec 2022 10:59:16 -0500 (EST) |
branch: elpa/bash-completion
commit 2390d5cdf373f19460c90edf414df21daa70b546
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
more commends and documentation; still need a commentary section
---
bash-completion.el | 38 ++++++++++++++++++++++++++++----------
1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index 84ceb18e7f..140f288c85 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -2,13 +2,25 @@
;;; Commentary:
-;;
-;;if [[ ( -z "$INSIDE_EMACS" || "$EMACS_BASH_COMPLETE" = "t" ) && -f
/etc/bash_c;;ompletion ]]; then
-;; echo -n "BASH completion..."
-;; . /etc/bash_completion
-;; echo "ON"
-;;fi
-
+;;
+;; TODO(szermatt)
+;;
+;; .bashrc:
+;; if [[ ( -z "$INSIDE_EMACS" || "$EMACS_BASH_COMPLETE" = "t" ) &&\
+;; -f /etc/bash_completion ]]; then
+;; . /etc/bash_completion
+;; fi
+;;
+;; .emacs:
+;; (autoload 'bash-completion-dynamic-complete \"bash-completion\"
+;; \"BASH completion hook\")
+;; (add-hook 'shell-dynamic-complete-functions
+;; 'bash-completion-dynamic-complete)
+;; (add-hook 'shell-command-complete-functions
+;; 'bash-completion-dynamic-complete))
+;;
+;; Interactive command:
+;; 'bash-completion-reset`
;;; History:
;;
@@ -18,7 +30,7 @@
;;; Code:
-;;; ---------- Customization
+;;; ---------- Customization
(defgroup bash-completion nil
"BASH configurable command-line completion "
:group 'shell
@@ -60,7 +72,7 @@ which typically takes a long time."
:type '(float)
:group 'bash-completion)
-;;; ---------- Internal variables and constants
+;;; ---------- Internal variables and constants
(defvar bash-completion-process nil
"Bash process object.")
@@ -99,7 +111,13 @@ This function is convenient, but it might not be the best
way of enabling
bash completion in your .emacs file because it forces you to load the module
before it is needed. For an autoload version, add:
-TODO"
+(autoload 'bash-completion-dynamic-complete \"bash-completion\"
+ \"BASH completion hook\")
+(add-hook 'shell-dynamic-complete-functions
+ 'bash-completion-dynamic-complete)
+(add-hook 'shell-command-complete-functions
+ 'bash-completion-dynamic-complete))
+"
(add-hook 'shell-dynamic-complete-functions
'bash-completion-dynamic-complete)
(add-hook 'shell-command-complete-functions
- [nongnu] elpa/bash-completion c494a89070 168/313: Run tests under Emacs 24.1: alias letf to cl-letf., (continued)
- [nongnu] elpa/bash-completion c494a89070 168/313: Run tests under Emacs 24.1: alias letf to cl-letf., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f523a290a6 169/313: Make the integration tests run on Emacs 24.1., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion bbff4fa527 172/313: Merge branch 'master' of github.com:szermatt/emacs-bash-completion, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b307dc24c3 005/313: keep cword, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a79137cc86 004/313: escaped quotes, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 581864111e 039/313: integration test harness, process buffer cleanup, hidden buffer, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3e1481741c 031/313: remove messages, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0d360a45cd 017/313: fixed test case, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c28492a749 036/313: wordbreak before and after, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 8b02aafc67 046/313: separators, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2390d5cdf3 061/313: more commends and documentation; still need a commentary section,
ELPA Syncer <=
- [nongnu] elpa/bash-completion c0f7c20a6b 094/313: added license and missing test dependency, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a2d322fb79 054/313: Added customization group, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 983f5c28e9 106/313: Merge pull request #2 from frankpzh/patch-1, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9f02a62609 049/313: re-enabled parse-line cursor at the beginning/in the middle tests, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3ec615a4ef 077/313: added id, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f1d8d73b42 072/313: changed comment, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2d6ad3980a 062/313: fixes for emacs 22, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9583153e0b 068/313: Fixed issue with wordbreak character being the first character, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7dec35f302 087/313: Set MAIL to the empty string in case shopt -u mailwarn is not, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 8a246f40da 088/313: bash-completion-generate-line: add missing compgen option to, ELPA Syncer, 2022/12/03