From f737dc1bbc09b87729250496d2b4b3c57049c9b1 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 8 Oct 2009 10:50:35 +0000 Subject: Sync from Emacs overlay (revision 1453). elisp.eclass: Generate Info files from Texinfo sources listed in ELISP_TEXINFO. elisp-common.eclass: Mark site-gentoo.el as buffer-read-only, in order to prevent unintentional edits. Add null strings to inhibit local variables detection in the eclass file itself. --- eclass/elisp-common.eclass | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'eclass/elisp-common.eclass') diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass index e308b6432270..a7c574a29ce6 100644 --- a/eclass/elisp-common.eclass +++ b/eclass/elisp-common.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.61 2009/05/25 16:25:32 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.62 2009/10/08 10:50:35 ulm Exp $ # # Copyright 2002-2004 Matthew Kennedy # Copyright 2003 Jeremy Maitin-Shepard @@ -196,11 +196,11 @@ elisp-emacs-version() { # Generate a file with autoload definitions for the lisp functions. elisp-make-autoload-file() { - local f="${1:-${PN}-autoloads.el}" + local f="${1:-${PN}-autoloads.el}" null="" page=$'\f' shift ebegin "Generating autoload file for GNU Emacs" - sed 's/^FF/\f/' >"${f}" <<-EOF + cat >"${f}" <<-EOF ;;; ${f##*/} --- autoloads for ${P} ;;; Commentary: @@ -208,12 +208,13 @@ elisp-make-autoload-file() { ;; DO NOT EDIT THIS FILE ;;; Code: - FF - ;; Local Variables: + ${page} + ;; Local ${null}Variables: ;; version-control: never ;; no-byte-compile: t ;; no-update-autoloads: t ;; End: + ;;; ${f##*/} ends here EOF @@ -282,7 +283,7 @@ elisp-site-file-install() { # location is still supported when generating site-gentoo.el. elisp-site-regen() { - local i sf line obsolete + local i sf line obsolete null="" page=$'\f' local -a sflist if [ ! -d "${ROOT}${SITELISP}" ]; then @@ -336,9 +337,12 @@ elisp-site-regen() { (provide 'site-gentoo) - ;; Local Variables: + ${page} + ;; Local ${null}Variables: ;; no-byte-compile: t + ;; buffer-read-only: t ;; End: + ;;; site-gentoo.el ends here EOF -- cgit v1.2.3-65-gdbad