summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <opfer@gentoo.org>2007-04-18 10:45:44 +0000
committerChristian Faulhammer <opfer@gentoo.org>2007-04-18 10:45:44 +0000
commit276d3d6ad6c4790d5472a6fe2e499533160e8504 (patch)
tree25298710f6e08903a7b2aa1980e140a25b7affbf
parentStable on alpha wrt security bug #172752 (diff)
downloadgentoo-2-276d3d6ad6c4790d5472a6fe2e499533160e8504.tar.gz
gentoo-2-276d3d6ad6c4790d5472a6fe2e499533160e8504.tar.bz2
gentoo-2-276d3d6ad6c4790d5472a6fe2e499533160e8504.zip
A missing colon prevented a auxiliary variable to be predefined if no
argument was given
-rw-r--r--eclass/elisp-common.eclass22
1 files changed, 11 insertions, 11 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index e634ef33166d..92ab400e65fd 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.16 2007/04/16 15:41:02 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.17 2007/04/18 10:45:44 opfer Exp $
#
# Copyright 2007 Christian Faulhammer <opfer@gentoo.org>
# Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org>
@@ -13,7 +13,7 @@
# USAGE:
#
# Usually you want to use this eclass for (optional) GNU Emacs support of
-# your package. This is NOT for XEmacs!
+# your package. This is NOT for XEmacs!
# Many of the steps here are sometimes done by the build system of your
# package (especially compilation), so this is mainly for standalone elisp
# files you gathered from somewhere else.
@@ -37,9 +37,9 @@
# elisp-comp *.el || die "elisp-comp failed!"
#
# Function elisp-make-autoload-file() can be used to generate a file with
-# autoload definitions for the lisp functions. It takes the output file name
+# autoload definitions for the lisp functions. It takes the output file name
# (default: "${PN}-autoloads.el") and a list of directories (default: working
-# directory) as its arguments. Use of this function requires that the elisp
+# directory) as its arguments. Use of this function requires that the elisp
# source files contain magic ";;;###autoload" comments. See the Emacs Lisp
# Reference Manual (node "Autoload") for a detailed explanation.
#
@@ -57,7 +57,7 @@
#
# To let the Emacs support be activated by Emacs on startup, you need
# to provide a site file (shipped in ${FILESDIR}) which contains the startup
-# code (have a look in the documentation of your software). Normally this
+# code (have a look in the documentation of your software). Normally this
# would look like this:
#
# ;;; csv-mode site-lisp configuration
@@ -69,17 +69,17 @@
# If your Emacs support files are installed in a subdirectory of
# /usr/share/emacs/site-lisp/ (which is recommended if more than one file is
# installed), you need to extend Emacs' load-path as shown in the first
-# non-comment. The elisp-site-file-install() function of this eclass will
+# non-comment. The elisp-site-file-install() function of this eclass will
# replace "@SITELISP@" by the actual path.
# The next line tells Emacs to load the mode opening a file ending with
# ".csv" and load functions depending on the context and needed features.
# Be careful though. Commands as "load-library" or "require" bloat the
# editor as they are loaded on every startup. When having a lot of Emacs
-# support files, users may be annoyed by the start-up time. Also avoid
-# keybindings as they might interfere with the user's settings. Give a hint
+# support files, users may be annoyed by the start-up time. Also avoid
+# keybindings as they might interfere with the user's settings. Give a hint
# in pkg_postinst(), which should be enough.
# The naming scheme for this site file is "[0-9][0-9]*-gentoo.el", where the
-# two digits at the beginning define the loading order. So if you depend on
+# two digits at the beginning define the loading order. So if you depend on
# another Emacs package, your site file's number must be higher!
# Best practice is to define a SITEFILE variable in the global scope of your
# ebuild (right after DEPEND e.g.):
@@ -90,7 +90,7 @@
#
# elisp-site-file-install "${FILESDIR}/${SITEFILE}"
#
-# in src_install(). If your subdirectory is not named ${PN}, give the
+# in src_install(). If your subdirectory is not named ${PN}, give the
# differing name as second argument.
#
# pkg_postinst() / pkg_postrm() usage:
@@ -116,7 +116,7 @@ elisp-compile() {
}
elisp-make-autoload-file () {
- local f="${1-${PN}-autoloads.el}"
+ local f="${1:-${PN}-autoloads.el}"
shift
echo >"${f}"
emacs --batch -q --no-site-file \