Package: dh-make
Version: 0.40
Severity: wishlist
Tags: patch
I suggest the changes below, to show how to set up autoloaded functions.
- Jim Van Zandt
--- ./lib/debian/emacsen-startup.ex-rev1 2006-03-07 20:27:26.000000000
-0500
+++ ./lib/debian/emacsen-startup.ex 2006-03-07 20:39:25.000000000 -0500
@@ -1,6 +1,7 @@
;; -*-emacs-lisp-*-
;;
-;; Emacs startup file for the Debian #PACKAGE# package
+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50#PACKAGE#.el
+;; for the Debian #PACKAGE# package
;;
;; Originally contributed by Nils Naumann <[EMAIL PROTECTED]>
;; Modified by Dirk Eddelbuettel <[EMAIL PROTECTED]@debian.org>
@@ -14,6 +15,11 @@
(let ((package-dir (concat "/usr/share/"
(symbol-name flavor)
"/site-lisp/#PACKAGE#")))
+ ;; If package-dir does not exist, the #PACKAGE# package must have
+ ;; removed but not purged, and we should skip the setup.
(when (file-directory-p package-dir)
- (setq load-path (cons package-dir load-path))))
+ (setq load-path (cons package-dir load-path))
+ (autoload '#PACKAGE#-mode "#PACKAGE#-mode"
+ "Major mode for editing #PACKAGE# files." t)
+ (add-to-list 'auto-mode-alist '("\\.#PACKAGE#$" . #PACKAGE#-mode))))
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'testing'), (500,
'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages dh-make depends on:
ii debhelper 5.0.22 helper programs for debian/rules
ii dpkg-dev 1.13.13 package building tools for Debian
ii make 3.80-11 The GNU version of the "make" util
ii perl 5.8.7-10 Larry Wall's Practical Extraction
dh-make recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]