[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 1598101f06 271/313: Remove the fallback to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 1598101f06 271/313: Remove the fallback to a separate process. |
Date: |
Sat, 3 Dec 2022 10:59:37 -0500 (EST) |
branch: elpa/bash-completion
commit 1598101f06042bbc4deed89360ddffc4e2606371
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Remove the fallback to a separate process.
Falling back to using a separate process when there's a failure in the
single-process solution hasn't worked out so well in practice. The
problem is that when there's an error, it's usually after a noticeable
timeout, so the resulting behavior is confusing even in the cases
where the fallback actually works. Better to fail clearly and
hopefully get errors reported - and fixed.
---
bash-completion.el | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index f6aee9e22c..c2c935cd6c 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -521,17 +521,6 @@ When doing completion outside of a comint buffer, call
(if message-timer
(cancel-timer message-timer)))))
-(defun bash-completion--complete (comp process)
- (condition-case err
- (bash-completion-comm comp process)
- (error (if (not bash-completion-use-separate-processes)
- ;; try again with a separate process
- (let* ((bash-completion-use-separate-processes t)
- (process (bash-completion--get-process)))
- (bash-completion-comm comp process))
- ;; re-throw the error
- (signal (car err) (cdr err))))))
-
;;;###autoload
(defun bash-completion-dynamic-complete-nocomint
(comp-start &optional comp-pos dynamic-table)
@@ -594,7 +583,7 @@ Returns (list stub-start stub-end completions) with
(if dynamic-table
(bash-completion--completion-table-with-cache
comp process)
- (bash-completion--complete comp process)))))))
+ (bash-completion-comm comp process)))))))
(defun bash-completion--find-last (elt array)
"Return the position of the last instance of ELT in array or nil."
@@ -1586,7 +1575,7 @@ Return the parsed value, as a string or nil."
The result is a function that works like one built by
`completion-table-with-cache' with the difference that the
-completions, built by `bash-completion--complete' are complete
+completions, built by `bash-completion-comm' are complete
and that completion style doesn't necessarily use substring
completion."
(let ((last-str) (last-result)
@@ -1605,7 +1594,7 @@ completion."
(bash-completion-nospace nospace)
(default-directory dir))
(with-current-buffer calling-buffer
- (bash-completion--complete comp process))))))
+ (bash-completion-comm comp process))))))
(setq last-str str
last-result result)
(let ((filtered-result (if predicate (mapcar predicate result)
result))
- [nongnu] elpa/bash-completion 0a757bd5f4 238/313: Test calling completion from non-comint and non-bash shell buffers., (continued)
- [nongnu] elpa/bash-completion 0a757bd5f4 238/313: Test calling completion from non-comint and non-bash shell buffers., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c99083233f 241/313: Fix shell-type detection logic for remote processes., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 4a1d89f01e 246/313: Support -o vi and emacs even in single-process mode., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion aec357fbf1 249/313: Test default completion with both value of use-separate-process., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 38c82e5d59 252/313: Conserve quotes even when expanding case-insensitively., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6a66eeda45 253/313: Add test-case to cover tilde and tilde expansion., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b9e519e2ad 263/313: Fix typo, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2684ea9e46 264/313: Fix issue with case-insensitive completion., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6d74dd30ba 266/313: Avoid interference from PROMPT_COMMAND in single process mode., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 23a3402844 270/313: Trying to disable the warning on MacOS that breaks the tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 1598101f06 271/313: Remove the fallback to a separate process.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 18ed1504ce 274/313: Add test cases for TRAMP shell., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 23dbe5b537 276/313: Change minimum supported Emacs version from 24.1 to 24.3., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c3797e0d09 277/313: Avoid running the same completion multiple times., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0210d346f1 279/313: Make bash-completion-use-separate-processes default to nil., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7a1f127851 292/313: Test and fix the dynamic table function that's returned., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3dbbd1beff 293/313: Fix tests to run under Emacs 24.3., ELPA Syncer, 2022/12/03
- [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