[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 09c93ffbdb 165/313: Explicitly disable sup
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 09c93ffbdb 165/313: Explicitly disable support for Emacs version older than 24.1. |
Date: |
Sat, 3 Dec 2022 10:59:27 -0500 (EST) |
branch: elpa/bash-completion
commit 09c93ffbdbebb2f2d59ef25c964d9bb9b2fda016
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Explicitly disable support for Emacs version older than 24.1.
Backward-compatibility code to be removed in the next commits.
---
README.md | 4 ++--
bash-completion.el | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 3e9c0f1290..d8d506abb9 100644
--- a/README.md
+++ b/README.md
@@ -95,5 +95,5 @@ important disadvantages:
## COMPATIBILITY
-bash-completion.el is known to work on Emacs 22 through 24.4 under
-Linux and OSX. It does not work on XEmacs.
+bash-completion.el is known to work on Emacs, starting with version
+24.1, under Linux and OSX. It does not work on XEmacs.
diff --git a/bash-completion.el b/bash-completion.el
index 608341b17a..53b42ecfa5 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -243,6 +243,15 @@ to be included into a completion output.")
standard completion facilities. Completion functions will change
their behaviour according to this constant.")
+(eval-when-compile
+ (unless (or (and (= emacs-major-version 24) (>= emacs-minor-version 1))
+ (>= emacs-major-version 25))
+ (error
+ (concat
+ "Emacs version 24.1 or later is required to run emacs-bash-completion.\n"
+ "Download emacs-bash-completion version 2.1 to run on older Emacs "
+ "versions, from 22 to 24."))))
+
;;; ---------- Inline functions
(defsubst bash-completion-tokenize-get-range (token)
- [nongnu] elpa/bash-completion c5f2b2756f 129/313: Define sz-testutils as a global variable., (continued)
- [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
- [nongnu] elpa/bash-completion b4757884b0 145/313: Expand the tests to better cover wordbreak and command argument, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6ab1fe406b 148/313: Always quote the stub before passing it to compgen., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a789093cd3 155/313: Run tests on older versions of Emacs., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5e05365dc8 153/313: Cleanup tests, split them into unit and integration tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 09c93ffbdb 165/313: Explicitly disable support for Emacs version older than 24.1.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 62c6567af6 158/313: Complete argument rename, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5eb85cf1fc 166/313: Remove obsolete functions bash-completion-dynamic-complete-0 and, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9b94818f88 167/313: Remove support for pre-Emacs24.1 backward compatibility., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 912e1e8153 170/313: Add an option to disable default Readline completion when no matches are found (#29), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 959e27dae3 171/313: Add remote shell support, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 68f7d937b7 175/313: Make wordbreak completion work with bash-completion-enable-caching., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2cf76221c2 178/313: Rely on compgen for default completion, instead of doing it with, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f01d8726de 179/313: Remove support filenames options., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5171866b65 180/313: Simplify options a bit, since the only useful option is nospace., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a223260f2d 181/313: Get rid of bash-completion-alist completely., ELPA Syncer, 2022/12/03