summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-09-19 08:12:48 +0000
committerUlrich Müller <ulm@gentoo.org>2008-09-19 08:12:48 +0000
commit985f916577d8ec3b2232a8835b592720f039eef6 (patch)
treeaf44079f2217e85a70881ba82bcfe13326b090b1 /eclass/elisp-common.eclass
parentadd a "die" to main file install (diff)
downloadhistorical-985f916577d8ec3b2232a8835b592720f039eef6.tar.gz
historical-985f916577d8ec3b2232a8835b592720f039eef6.tar.bz2
historical-985f916577d8ec3b2232a8835b592720f039eef6.zip
Partial sync from Emacs overlay.
Output a deprecation warning in elisp-comp().
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass14
1 files changed, 10 insertions, 4 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 006a2fd616a6..1ef44d4fd69f 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.45 2008/09/01 10:45:26 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.46 2008/09/19 08:12:48 ulm Exp $
#
# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
@@ -179,6 +179,7 @@ elisp-compile() {
# #USAGE: <list of elisp files>
# #DESCRIPTION:
# Byte-compile interdependent Emacs Lisp files.
+# THIS FUNCTION IS DEPRECATED.
#
# This function byte-compiles all ".el" files which are part of its
# arguments, using GNU Emacs, and puts the resulting ".elc" files into the
@@ -194,6 +195,11 @@ elisp-comp() {
# François Pinard <pinard@iro.umontreal.ca>, 1995.
# Originally taken from GNU autotools.
+ ewarn "Function elisp-comp is deprecated and may be removed in future."
+ ewarn "Please use function elisp-compile instead, or report a bug about"
+ ewarn "${CATEGORY}/${PF} at <http://bugs.gentoo.org/>."
+ echo
+
[ $# -gt 0 ] || return 1
ebegin "Compiling GNU Emacs Elisp files"
@@ -391,7 +397,7 @@ elisp-site-regen() {
[ -f "${tmpdir}"/site-start.el ] \
&& [ ! -e "${ROOT}${SITELISP}"/site-start.el ] \
&& mv "${tmpdir}"/site-start.el "${ROOT}${SITELISP}"/site-start.el
- echo; einfo
+ echo
for sf in "${sflist[@]##*/}"; do
einfo " Adding ${sf} ..."
done
@@ -418,13 +424,13 @@ elisp-site-regen() {
fi
if [ "${obsolete}" ]; then
+ echo
while read line; do ewarn "${line}"; done <<-EOF
Site-initialisation files of Emacs packages are now installed in
/usr/share/emacs/site-lisp/site-gentoo.d/. We strongly recommend
- that you use /usr/sbin/emacs-updater to rebuild the installed
+ that you use app-admin/emacs-updater to rebuild the installed
Emacs packages.
EOF
- echo
# Kludge for backwards compatibility: During pkg_postrm, old versions
# of this eclass (saved in the VDB) won't find packages' site-init