[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion f9903d4bd4 079/313: ran checkdoc again, re
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion f9903d4bd4 079/313: ran checkdoc again, re-ran integration tests |
Date: |
Sat, 3 Dec 2022 10:59:18 -0500 (EST) |
branch: elpa/bash-completion
commit f9903d4bd4bd82e8c98562fc6a25d4a86e40c6a6
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
ran checkdoc again, re-ran integration tests
---
bash-completion.el | 45 +++++++++++++++++++++++++++++----------------
bash-completion_test.el | 2 +-
2 files changed, 30 insertions(+), 17 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index c5b7590111..18f84a6fc1 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -5,7 +5,7 @@
;;; Commentary:
;;
;; This file defines dynamic completion hooks for shell-mode and
-;; shell-command that are based on bash completion.
+;; shell-command prompts that are based on bash completion.
;;
;; Bash completion for emacs:
;; - is aware of bash builtins, aliases and functions
@@ -16,12 +16,17 @@
;;
;; When the first completion is requested in shell model or a shell
;; command, bash-completion.el starts a separate bash
-;; process. Bash-completion.el then uses this process to do the actual
-;; completion and includes it into emacs completion suggestions.
+;; process. Bash-completion.el then uses this process to do the actual
+;; completion and includes it into Emacs completion suggestions.
+;;
+;; A simpler alternative to bash-completion.el is to run a bash shell
+;; in a buffer in term mode(M-x `ansi-term'). Unfortunately, many
+;; Emacs editing features are not available when running in term mode.
+;; Also, term mode is not available in shell-command prompts.
;;
;; INSTALLATION
;;
-;; 1. copy bash-completion.el into a directory that's on emacs load-path
+;; 1. copy bash-completion.el into a directory that's on Emacs load-path
;; 2. add this into your .emacs file:
;; (autoload 'bash-completion-dynamic-complete \"bash-completion\"
;; \"BASH completion hook\")
@@ -29,11 +34,11 @@
;; 'bash-completion-dynamic-complete)
;; (add-hook 'shell-command-complete-functions
;; 'bash-completion-dynamic-complete))
-;; 3. reload your .emacs (M-x eval-buffer) or restart
+;; 3. reload your .emacs (M-x `eval-buffer') or restart
;;
;; Once this is done, use <TAB> as usual do dynamic completion from
;; shell mode or a shell command minibuffer, such as the one started
-;; for `compile'. Note that the first completion is slow, as emacs
+;; for M-x `compile'. Note that the first completion is slow, as emacs
;; launches a new bash process.
;;
;; You'll get better results if you turn on programmable bash completion.
@@ -42,9 +47,9 @@
;; and then adding this to your .bashrc:
;; . /etc/bash_completion
;;
-;; Once this is done, and whenever you make changes to you .bashrc,
-;; call `bash-completion-restart' to make sure bash completion takes
-;; your new settings into account.
+;; Right after enabling programmable bash completion, and whenever you
+;; make changes to you .bashrc, call `bash-completion-restart' to make
+;; sure bash completion takes your new settings into account.
;;
;; Loading /etc/bash_completion often takes time, and is not necessary
;; in shell mode, since completion is done by a separate process, not
@@ -97,6 +102,8 @@
;;; History:
;;
+;; Initial version - June 2009
+;;
;; Current version:
;; $Id$
;;
@@ -186,12 +193,12 @@ This function is convenient, but it might not be the best
way of enabling
bash completion in your .emacs file because it forces you to load the module
before it is needed. For an autoload version, add:
-(autoload 'bash-completion-dynamic-complete \"bash-completion\"
- \"BASH completion hook\")
-(add-hook 'shell-dynamic-complete-functions
- 'bash-completion-dynamic-complete)
-(add-hook 'shell-command-complete-functions
- 'bash-completion-dynamic-complete))
+ (autoload 'bash-completion-dynamic-complete \"bash-completion\"
+ \"BASH completion hook\")
+ (add-hook 'shell-dynamic-complete-functions
+ 'bash-completion-dynamic-complete)
+ (add-hook 'shell-command-complete-functions
+ 'bash-completion-dynamic-complete))
"
(add-hook 'shell-dynamic-complete-functions
'bash-completion-dynamic-complete)
@@ -239,6 +246,9 @@ completion. Return nil if no match was found."
Split STUB using the wordbreak list and apply compgen default
completion on the last part. Return non-nil if a match was found.
+If STUB is quoted, the quote character, ' or \", should be passed
+to the parameter OPEN-QUOTE.
+
This function is not meant to be called outside of
`bash-completion-dynamic-complete'."
(let* ((wordbreak-split (bash-completion-last-wordbreak-split stub))
@@ -577,6 +587,9 @@ of strings.
It should be invoked with the comint buffer as the current buffer
for directory name detection to work.
+If STUB is quoted, the quote character, ' or \", should be passed
+in OPEN-QUOTE.
+
Post-processing includes escaping special characters, adding a /
to directory names, merging STUB with the result. See `bash-completion-fix'
for more details."
@@ -596,7 +609,7 @@ nil, the value of `bash-completion-prefix' is used. This
allows
calling this function from `mapcar'.
OPEN-QUOTE should be the quote that's still open in prefix. A
-character (' or \") or nil. If it is nil, the value of
+character (' or \") or nil. If it is nil, the value of
`bash-completion-open-quote' is used. This allows
calling this function from `mapcar'.
diff --git a/bash-completion_test.el b/bash-completion_test.el
index 4f68578e63..a554e3517c 100644
--- a/bash-completion_test.el
+++ b/bash-completion_test.el
@@ -572,7 +572,7 @@ garbage
(bash-completion-is-running)
(buffer-live-p (bash-completion-buffer))
(bash-completion-is-running)
- (bash-completion-comm "hel" 4 '("hel") 0)
+ (bash-completion-comm "hel" 4 '("hel") 0 nil)
(progn
(bash-completion-send "echo $EMACS_BASH_COMPLETE")
(with-current-buffer (bash-completion-buffer)
- [nongnu] elpa/bash-completion 9f02a62609 049/313: re-enabled parse-line cursor at the beginning/in the middle tests, (continued)
- [nongnu] elpa/bash-completion 9f02a62609 049/313: re-enabled parse-line cursor at the beginning/in the middle tests, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3ec615a4ef 077/313: added id, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f1d8d73b42 072/313: changed comment, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2d6ad3980a 062/313: fixes for emacs 22, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9583153e0b 068/313: Fixed issue with wordbreak character being the first character, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7dec35f302 087/313: Set MAIL to the empty string in case shopt -u mailwarn is not, ELPA Syncer, 2022/12/03
- [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 <=
- [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, 2022/12/03
- [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