[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion fefe5ae88e 191/313: Introduce bash-complet
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion fefe5ae88e 191/313: Introduce bash-completion-remote-prog. |
Date: |
Sat, 3 Dec 2022 10:59:29 -0500 (EST) |
branch: elpa/bash-completion
commit fefe5ae88e15e5dcdcbce3e5ebf6b99bc2b151ad
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Introduce bash-completion-remote-prog.
bash-completion-remote-prog allows setting a different path for the
bash executable on remote hosts. The default is just "bash", which
lets trap look for a bash executable in its path.
Also expand the error message displayed when the connection to the
bash process fails, to make debugging easier.
---
bash-completion.el | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index df8aca6d05..cb921a9fbb 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -153,6 +153,15 @@ for command-line completion."
:type '(file :must-match t)
:group 'bash-completion)
+(defcustom bash-completion-remote-prog "bash"
+ "Name or path of the remote BASH executable to use.
+
+This is the path of an BASH executable available on the remote machine.
+Best is to just specify \"bash\" and rely on the PATH being set correctly
+for the remote connection."
+ :type '(string)
+ :group 'bash-completion)
+
(defcustom bash-completion-args '("--noediting")
"Args passed to the BASH shell."
:type '(repeat (string :tag "Argument"))
@@ -924,7 +933,7 @@ is set to t."
(buffer-name (generate-new-buffer-name "
bash-completion"))
(args `("*bash-completion*"
,buffer-name
- ,bash-completion-prog
+ ,(if remote bash-completion-remote-prog
bash-completion-prog)
,@bash-completion-args)))
(when remote
;; See
http://lists.gnu.org/archive/html/tramp-devel/2016-05/msg00004.html
@@ -1179,7 +1188,10 @@ Return the status code of the command, as a number."
(process-send-string process (concat commandline "\n"))
(while (not (progn (goto-char 1) (search-forward "\v" nil t)))
(unless (accept-process-output process timeout)
- (error "Timeout while waiting for an answer from bash-completion
process")))
+ (error (concat
+ "Timeout while waiting for an answer from "
+ "bash-completion process.\nProcess output: <<<EOF\n%sEOF")
+ (buffer-string))))
(let* ((control-v-position (point))
(control-t-position (progn (search-backward "\t" nil t) (point)))
(status-code (string-to-number
- [nongnu] elpa/bash-completion 8e9c20dbfe 313/313: Replace or quote certain single quotes in docstrings (#55), (continued)
- [nongnu] elpa/bash-completion 8e9c20dbfe 313/313: Replace or quote certain single quotes in docstrings (#55), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion aa9bea48ba 022/313: fix position, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6aedd69000 164/313: Delete duplicates when extracting candidates. fixes #26, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 58447c67bf 206/313: Merge the send functions, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion d6c28d3132 302/313: Add a troubleshooting section to README.md, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion d550256e3f 306/313: Disable flakey test for now., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a8f7de1e91 173/313: Merge remote-tracking branch 'montag451/remote-shell-support-rebase', ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9521f79b33 176/313: Display the emacs command run by the tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fc3f762d16 177/313: Track and support options -o default, filenames and nospace., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c6df9be78d 182/313: Store the alist as process property., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fefe5ae88e 191/313: Introduce bash-completion-remote-prog.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion d99ad71050 199/313: Add a new option to disable the use of separate processes to perform completion, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ce59fb017a 202/313: Fallback to the use of a separate process if an error occurs, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 24f78df106 203/313: Improve output handling, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion cc9a3dcab4 204/313: Stop cluttering the Bash history, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0a6fa499ad 207/313: Fix one parameter name of bash-completion--wait-for-prompt, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3bd30eea3f 208/313: Use the correct function to send string to completion process, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fd2f8e277e 211/313: Improve prompt detection, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ac3bd404e8 220/313: Fix typos (#40), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f31bb46ff4 222/313: Making sure that line editing is turned off (#42), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3210a44081 224/313: Makefile allows specifying the path to bash., ELPA Syncer, 2022/12/03