/[gentoo-x86]/eclass/elisp-common.eclass
Gentoo

Diff of /eclass/elisp-common.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.15 Revision 1.20
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.15 2007/04/16 15:35:56 opfer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.20 2007/04/29 12:59:39 ulm Exp $
4# 4#
5# Copyright 2007 Christian Faulhammer <opfer@gentoo.org> 5# Copyright 2007 Christian Faulhammer <opfer@gentoo.org>
6# Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org> 6# Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org>
7# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> 7# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
8# Copyright 2007 Ulrich Mueller <ulm@gentoo.org> 8# Copyright 2007 Ulrich Mueller <ulm@gentoo.org>
114elisp-compile() { 114elisp-compile() {
115 /usr/bin/emacs --batch -f batch-byte-compile --no-site-file --no-init-file $* 115 /usr/bin/emacs --batch -f batch-byte-compile --no-site-file --no-init-file $*
116} 116}
117 117
118elisp-make-autoload-file () { 118elisp-make-autoload-file () {
119 local f="${1-${PN}-autoloads.el}" 119 local f="${1:-${PN}-autoloads.el}"
120 shift 120 shift
121 echo >"${f}" 121 echo >"${f}"
122 emacs --batch -q --no-site-file \ 122 emacs --batch -q --no-site-file \
123 --eval "(setq make-backup-files nil)" \ 123 --eval "(setq make-backup-files nil)" \
124 --eval "(setq generated-autoload-file (expand-file-name \"${f}\"))" \ 124 --eval "(setq generated-autoload-file (expand-file-name \"${f}\"))" \
149 cat <<EOF >${ROOT}${SITELISP}/site-gentoo.el 149 cat <<EOF >${ROOT}${SITELISP}/site-gentoo.el
150;;; DO NOT EDIT THIS FILE -- IT IS GENERATED AUTOMATICALLY BY PORTAGE 150;;; DO NOT EDIT THIS FILE -- IT IS GENERATED AUTOMATICALLY BY PORTAGE
151;;; ----------------------------------------------------------------- 151;;; -----------------------------------------------------------------
152 152
153EOF 153EOF
154 ls ${ROOT}${SITELISP}/[0-9][0-9]*-gentoo.el | sort -n | \ 154 for sf in ${ROOT}${SITELISP}/[0-9][0-9]*-gentoo.el
155 while read sf
156 do 155 do
156 [ -r "${sf}" ] || continue
157 einfo " Adding $(basename $sf) ..." 157 einfo " Adding $(basename ${sf}) ..."
158 # Great for debugging, too noisy and slow for users though
159# echo "(message \"Loading $sf ...\")" >>${ROOT}${SITELISP}/site-start.el
160 cat $sf >>${ROOT}${SITELISP}/site-gentoo.el 158 cat "${sf}" >>${ROOT}${SITELISP}/site-gentoo.el
161 done 159 done
162 while read line; do einfo "${line}"; done <<EOF 160 while read line; do einfo "${line}"; done <<EOF
163 161
164All site initialization for Gentoo-installed packages is now added to 162All site initialization for Gentoo-installed packages is now added to
165/usr/share/emacs/site-lisp/site-gentoo.el; site-start.el is no longer 163/usr/share/emacs/site-lisp/site-gentoo.el; site-start.el is no longer
167site-start.el if there is such a file. 165site-start.el if there is such a file.
168 166
169In order for this site initialization to be loaded for all users 167In order for this site initialization to be loaded for all users
170automatically, as was done previously, you can add a line like this: 168automatically, as was done previously, you can add a line like this:
171 169
172 (load "/usr/share/emacs/site-lisp/site-gentoo") 170 (load "/usr/share/emacs/site-lisp/site-gentoo" nil t)
173 171
174to /usr/share/emacs/site-lisp/site-start.el. Alternatively, that line 172to /usr/share/emacs/site-lisp/site-start.el. Alternatively, that line
175can be added by individual users to their initialization files, or for 173can be added by individual users to their initialization files, or for
176greater flexibility, users can select which of the package-specific 174greater flexibility, users can select which of the package-specific
177initialization files in /usr/share/emacs/site-lisp to load. 175initialization files in /usr/share/emacs/site-lisp to load.

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20