emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]