Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: elisp-common.eclass
Date: Mon, 29 Nov 2010 17:07:35
Message-Id: 20101129170722.6D91820051@flycatcher.gentoo.org
1 ulm 10/11/29 17:07:22
2
3 Modified: elisp-common.eclass
4 Log:
5 Sync from Emacs overlay (revision 1547).
6 Order of functions rearranged. Whitespace change in site-gentoo.el.
7
8 Revision Changes Path
9 1.70 eclass/elisp-common.eclass
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp-common.eclass?rev=1.70&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp-common.eclass?rev=1.70&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp-common.eclass?r1=1.69&r2=1.70
14
15 Index: elisp-common.eclass
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v
18 retrieving revision 1.69
19 retrieving revision 1.70
20 diff -u -r1.69 -r1.70
21 --- elisp-common.eclass 23 Nov 2010 20:56:08 -0000 1.69
22 +++ elisp-common.eclass 29 Nov 2010 17:07:22 -0000 1.70
23 @@ -1,6 +1,6 @@
24 # Copyright 1999-2010 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.69 2010/11/23 20:56:08 ulm Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.70 2010/11/29 17:07:22 ulm Exp $
28 #
29 # Copyright 2002-2004 Matthew Kennedy <mkennedy@g.o>
30 # Copyright 2003 Jeremy Maitin-Shepard <jbms@×××××.com>
31 @@ -166,25 +166,6 @@
32 # Emacs flags used for byte-compilation in elisp-compile().
33 BYTECOMPFLAGS="-L ."
34
35 -# @FUNCTION: elisp-compile
36 -# @USAGE: <list of elisp files>
37 -# @DESCRIPTION:
38 -# Byte-compile Emacs Lisp files.
39 -#
40 -# This function uses GNU Emacs to byte-compile all ".el" specified by
41 -# its arguments. The resulting byte-code (".elc") files are placed in
42 -# the same directory as their corresponding source file.
43 -#
44 -# The current directory is added to the load-path. This will ensure
45 -# that interdependent Emacs Lisp files are visible between themselves,
46 -# in case they require or load one another.
47 -
48 -elisp-compile() {
49 - ebegin "Compiling GNU Emacs Elisp files"
50 - ${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} -f batch-byte-compile "$@"
51 - eend $? "elisp-compile: batch-byte-compile failed"
52 -}
53 -
54 # @FUNCTION: elisp-emacs-version
55 # @DESCRIPTION:
56 # Output version of currently active Emacs.
57 @@ -215,6 +196,25 @@
58 return 0
59 }
60
61 +# @FUNCTION: elisp-compile
62 +# @USAGE: <list of elisp files>
63 +# @DESCRIPTION:
64 +# Byte-compile Emacs Lisp files.
65 +#
66 +# This function uses GNU Emacs to byte-compile all ".el" specified by
67 +# its arguments. The resulting byte-code (".elc") files are placed in
68 +# the same directory as their corresponding source file.
69 +#
70 +# The current directory is added to the load-path. This will ensure
71 +# that interdependent Emacs Lisp files are visible between themselves,
72 +# in case they require or load one another.
73 +
74 +elisp-compile() {
75 + ebegin "Compiling GNU Emacs Elisp files"
76 + ${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} -f batch-byte-compile "$@"
77 + eend $? "elisp-compile: batch-byte-compile failed"
78 +}
79 +
80 # @FUNCTION: elisp-make-autoload-file
81 # @USAGE: [output file] [list of directories]
82 # @DESCRIPTION:
83 @@ -353,9 +353,9 @@
84 sed '$q' "${sflist[@]}" </dev/null >>"${T}"/site-gentoo.el
85 cat <<-EOF >>"${T}"/site-gentoo.el
86
87 + ${page}
88 (provide 'site-gentoo)
89
90 - ${page}
91 ;; Local ${null}Variables:
92 ;; no-byte-compile: t
93 ;; buffer-read-only: t