Skip to content

Commit 31bc1c1

Browse files
committed
Compile bash-completion.el before running tests.
Also fix the definition of bash-completion-message-delay: add a group and a type. This fixes a byte-compilation error under emacs 22. This will help avoids problems such as the one with issue #21 and the ones fixed by pull request #25
1 parent 7965b91 commit 31bc1c1

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

bash-completion.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ on the minibuffer to make it clear what's happening. Set to nil
172172
to never display any such message. 0 to always display it.
173173
174174
Only relevant when using bash completion in a shell, through
175-
`bash-completion-dynamic-complete'.")
175+
`bash-completion-dynamic-complete'."
176+
:type '(float)
177+
:group 'bash-completion)
176178

177179
(defcustom bash-completion-initial-timeout 30
178180
"Timeout value to apply when talking to bash for the first time.

run_tests.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
#!/bin/sh
22
#
3-
# Runs test using the emacs binary specified by ${EMACSCMD}, which
4-
# defaults to emacs, and the bash binary specified by ${BASHCMD},
5-
# which defaults to bash.
3+
# Compiles and runs test using the emacs binary specified by
4+
# ${EMACSCMD}, which defaults to emacs, and the bash binary specified
5+
# by ${BASHCMD}, which defaults to bash.
66
#
77
rootdir="$(dirname "$0")"
88
testdir="${rootdir}/test"
9+
10+
"${EMACSCMD:-emacs}" \
11+
-Q \
12+
-batch \
13+
-eval "(setq byte-compile-error-on-warn t)" \
14+
-L "${rootdir}" \
15+
-f batch-byte-compile \
16+
"${rootdir}/bash-completion.el" \
17+
|| exit 1
918
exec "${EMACSCMD:-emacs}" \
1019
-Q \
1120
-batch \

0 commit comments

Comments
 (0)