[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 21149fdc27 152/313: Introduce the variable
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 21149fdc27 152/313: Introduce the variable bash-completion-start-files, that allow |
Date: |
Sat, 3 Dec 2022 10:59:25 -0500 (EST) |
branch: elpa/bash-completion
commit 21149fdc27657612c0e988f808ff356358d9793a
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Introduce the variable bash-completion-start-files, that allow
configuring the shell files that are loaded on the bash completion
subprocess, by default ~/.emacs_bash.sh and ~/.emacs.d/init_bash.sh,
to preserve backward compatibility.
The main goal of this change is to control which initialization files
are loaded during tests.
---
bash-completion.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index da211ed8fb..724697581a 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -194,6 +194,11 @@ to remove the extra space bash adds after a completion."
:type '(boolean)
:group 'bash-completion)
+(defvar bash-completion-start-files
+ '("~/.emacs_bash.sh" "~/.emacs.d/init_bash.sh")
+ "Shell files that, if they exist, will be sourced at the
+beginning of a bash completion subprocess.")
+
;;; ---------- Internal variables and constants
(defvar bash-completion-process nil
@@ -984,14 +989,10 @@ is set to t."
,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"))
- (startfile2 (concat "~/.emacs.d/init_" shell-name ".sh")))
- (cond
- ((file-exists-p startfile1)
- (process-send-string process (concat ". " startfile1 "\n")))
- ((file-exists-p startfile2)
- (process-send-string process (concat ". " startfile2 "\n")))))
+ (let ((shell-name (file-name-nondirectory bash-completion-prog)))
+ (dolist (start-file bash-completion-start-files)
+ ((file-exists-p startfile1)
+ (process-send-string process (concat ". " startfile1 "\n")))))
(bash-completion-send "PROMPT_COMMAND='';PS1='\t$?\v'" process
bash-completion-initial-timeout)
(bash-completion-send (concat "function __bash_complete_wrapper {"
" eval $__BASH_COMPLETE_WRAPPER;"
- [nongnu] elpa/bash-completion d47edb9d41 294/313: Bump version to 3.1, a bugfix release., (continued)
- [nongnu] elpa/bash-completion d47edb9d41 294/313: Bump version to 3.1, a bugfix release., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion faefaf6950 298/313: Add command M-x bash-completion-debug, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fa5557709e 300/313: GitHub Actions now runs tests on Emacs 27.1., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fd853663ee 304/313: Detect non-responsive processes more quickly., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 65e54c6f9c 307/313: Temporarily revert fixes for issue #44., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion d9c97b741d 309/313: Attempt to fix automated tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 29b5fc860a 312/313: Shorten overly long docstring (#53), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3ffc296e0b 149/313: Close opened quote for all completion candidate that don't end with a, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6bf1536325 150/313: Fix occasional escaping issue with candidates containing quotes., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7ce100b7eb 006/313: cursor position, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 21149fdc27 152/313: Introduce the variable bash-completion-start-files, that allow,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 31bc1c1c21 161/313: Compile bash-completion.el before running tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 054ecdfce3 290/313: ignore file ert-profile created by ert-runner, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c444230670 154/313: Add run_tests.sh, to run tests from the command-line, with specific, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0709a9803d 303/313: Support newlines in the output of complete -p., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c5eaeed156 311/313: Always ensure that a copy of the candidate list is returned (#48), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f6e1c44057 013/313: put everything together, ELPA Syncer, 2022/12/03