[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 98a2a21be7 234/313: Provide a way of refre
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 98a2a21be7 234/313: Provide a way of refreshing the completion table. |
Date: |
Sat, 3 Dec 2022 10:59:33 -0500 (EST) |
branch: elpa/bash-completion
commit 98a2a21be772283fd850416671102d8518b2ef7a
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Provide a way of refreshing the completion table.
With bash-completion-use-separate-processes set to t, it is possible
to change the set of completion on bash, and these change need to be
reflected in the internal completion table kept on the Emacs side.
---
bash-completion.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/bash-completion.el b/bash-completion.el
index f50dd7fdc4..4cac5a4932 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1280,6 +1280,21 @@ completion candidates."
(t (error "Unsupported completion type: %s" completion-type)))
" 2>/dev/null")))
+;;;###autoload
+(defun bash-completion-refresh ()
+ "Refresh the completion table.
+
+This can be called after changing the completion table on BASH,
+with the builtin complete.
+
+This is only useful when `bash-completion-use-separate-processes'
+is t."
+ (interactive)
+ (let* ((process (bash-completion-get-process))
+ (buffer (bash-completion--get-buffer process)))
+ (bash-completion-send "complete -p" process)
+ (process-put process 'complete-p (bash-completion-build-alist buffer))))
+
;;;###autoload
(defun bash-completion-reset ()
"Force the next completion command to start with a fresh BASH process.
- [nongnu] elpa/bash-completion 2c4cb6edd2 186/313: Replace bash-completion-integration-test with a higher-level test for, (continued)
- [nongnu] elpa/bash-completion 2c4cb6edd2 186/313: Replace bash-completion-integration-test with a higher-level test for, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0aed19067b 188/313: When using Bash 4, split words as Bash 4 does., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 4581a7823f 189/313: Bash 4: set COMP_TYPE and COMP_KEY to TAB, to let completion functions, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 802eb4e5a8 194/313: Set EMACS_BASH_COMPLETE even on remote (tramp) completion., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fbdc78b877 198/313: Support compopt when using Bash 4., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f1bd3d528f 201/313: Improve some docstrings, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fa49dbb382 209/313: Improve status code retrieval, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7822d84812 223/313: Added Cask with ert-runner to compile and run test., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 31a01859b2 227/313: Do not run tests under Emacs 24.1., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 21471cc542 228/313: Report result of running the test workflow on README.md., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 98a2a21be7 234/313: Provide a way of refreshing the completion table.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 4fcddf83c9 242/313: Make /etc/bash_completion scripts work with escaped spaces., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2dbc7e61f6 248/313: Extend bash-completion-refresh to refresh everything, test it., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 04393bca0f 250/313: Apply filename post-processing even when prefix doesn't match., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2a937b3763 255/313: Don't let Emacs post-filter completions built by bash., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion e95867c993 256/313: completion-table-with-cache captures and restore buffer and variables., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 747920fdbf 265/313: Avoid having to set BASH_COMPLETION., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f15176ee59 267/313: Fix to properly evaluate PROMPT_COMMAND after restoring it., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b4ae893243 268/313: Test prompt and history manipulation, fix $? in prompt., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 20feaf909d 258/313: Fix markdown markup., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 8713edbb92 269/313: Mention that completion works with bash 5, ELPA Syncer, 2022/12/03