From c22416b3dfe753d318e808d250f5b39ca5831139 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Fri, 19 Sep 2008 08:12:48 +0000 Subject: Partial sync from Emacs overlay. Output a deprecation warning in elisp-comp(). --- eclass/elisp-common.eclass | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'eclass/elisp-common.eclass') 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 # Copyright 2003 Jeremy Maitin-Shepard @@ -179,6 +179,7 @@ elisp-compile() { # #USAGE: # #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 , 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 ." + 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 -- cgit v1.2.3-65-gdbad