[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion f085c41d8d 131/313: Add defcustom for bash
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion f085c41d8d 131/313: Add defcustom for bash-completion-args |
Date: |
Sat, 3 Dec 2022 10:59:23 -0500 (EST) |
branch: elpa/bash-completion
commit f085c41d8d9a3e9bfc091209b33128b84d0ee163
Author: Svend Sorensen <svend@ciffer.net>
Commit: Svend Sorensen <svend@ciffer.net>
Add defcustom for bash-completion-args
This allows passing custom flags, such as `--login`, to BASH.
---
bash-completion.el | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index 93bd540150..43931dc19d 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -166,6 +166,11 @@ for command-line completion."
:type '(file :must-match t)
:group 'bash-completion)
+(defcustom bash-completion-args '("--noediting")
+ "Args passed to the BASH shell."
+ :type '(repeat (string :tag "Argument"))
+ :group 'bash-completion)
+
(defcustom bash-completion-process-timeout 2.5
"Number of seconds to wait for an answer from bash.
If bash takes longer than that to answer, the answer will be
@@ -874,11 +879,12 @@ is set to t."
(setenv "EMACS_BASH_COMPLETE" "t")
(setenv "TERM" "dumb")
(setq process
- (start-process
- "*bash-completion*"
- (generate-new-buffer-name " bash-completion")
- bash-completion-prog
- "--noediting"))
+ (apply 'start-process
+ (append
+ `("*bash-completion*"
+ ,(generate-new-buffer-name " bash-completion")
+ ,bash-completion-prog)
+ bash-completion-args)))
(set-process-query-on-exit-flag process nil)
(let* ((shell-name (file-name-nondirectory bash-completion-prog))
(startfile1 (concat "~/.emacs_" shell-name ".sh"))
- [nongnu] elpa/bash-completion 8a246f40da 088/313: bash-completion-generate-line: add missing compgen option to, (continued)
- [nongnu] elpa/bash-completion 8a246f40da 088/313: bash-completion-generate-line: add missing compgen option to, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6fb6bf5588 081/313: Mention ghardy bash version, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 33ed66e567 099/313: bash-completion-nospace option, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion cf42ed1057 101/313: add compatibility information for emacs 24.1.1 with OSX 10.7 / 10.8, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f9903d4bd4 079/313: ran checkdoc again, re-ran integration tests, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion bab4cf6e8d 109/313: Merge remote-tracking branch 'origin/master' into complete_D, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion dce43a54c5 119/313: Update comment in bash-completion-test, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5209200f3b 120/313: Using cl-letf instead of flet., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9588a9c0dd 125/313: Updated README, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c5f2b2756f 129/313: Define sz-testutils as a global variable., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f085c41d8d 131/313: Add defcustom for bash-completion-args,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 8ca917f428 133/313: Stop escaping = in completion. fixes #18, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 319886faa9 138/313: Add / after directory names - even if they contain spaces or special, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f2ea2b65df 141/313: Detect directories when expanding commands and add a slash instead of a, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 44bc73449e 144/313: Fixes strange behavior when completing --., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b4757884b0 145/313: Expand the tests to better cover wordbreak and command argument, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6ab1fe406b 148/313: Always quote the stub before passing it to compgen., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a789093cd3 155/313: Run tests on older versions of Emacs., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5e05365dc8 153/313: Cleanup tests, split them into unit and integration tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 09c93ffbdb 165/313: Explicitly disable support for Emacs version older than 24.1., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 62c6567af6 158/313: Complete argument rename, ELPA Syncer, 2022/12/03