summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-04-13 09:03:16 +0200
committerUlrich Müller <ulm@gentoo.org>2021-04-13 09:14:54 +0200
commit7c57c1893e9f1a16ad09459f3941b86374539340 (patch)
tree20cb6eb2c29d17aaa3993d7aa5e273f239644665 /eclass
parentapp-emacs/emacs-daemon: Bump to EAPI 7 (diff)
downloademacs-7c57c1893e9f1a16ad09459f3941b86374539340.tar.gz
emacs-7c57c1893e9f1a16ad09459f3941b86374539340.tar.bz2
emacs-7c57c1893e9f1a16ad09459f3941b86374539340.zip
elisp-common.eclass: Drop deprectated elisp-need-emacs()
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/elisp-common.eclass21
1 files changed, 0 insertions, 21 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 9de2581..90621cb 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -277,27 +277,6 @@ elisp-check-emacs-version() {
fi
}
-# Test if the eselected Emacs version is at least the major version
-# of GNU Emacs specified as argument.
-# Return 0 if true, 1 if false, 2 if trouble.
-# Deprecated, use elisp-check-emacs-version instead.
-
-elisp-need-emacs() {
- local need_emacs=$1 have_emacs
- have_emacs=$(elisp-emacs-version) || return 2
- einfo "Emacs version: ${have_emacs}"
- if [[ ${have_emacs} =~ XEmacs|Lucid ]]; then
- eerror "This package needs GNU Emacs."
- return 1
- fi
- if ! [[ ${have_emacs%%.*} -ge ${need_emacs%%.*} ]]; then
- eerror "This package needs at least Emacs ${need_emacs%%.*}."
- eerror "Use \"eselect emacs\" to select the active version."
- return 1
- fi
- return 0
-}
-
# @FUNCTION: elisp-compile
# @USAGE: <list of elisp files>
# @DESCRIPTION: