Package: debian-el
Version: 29.1-1
Severity: wishlist
Tags: patch
At present only sources.list has apt-sources-mode auto selected. A patch
is attached that modifies debian-el.el to auto select apt-sources-mode
for sources.list.d/*.list files.
In addition to debian-el.el, it slightly modifies debian-el.texi, but
without updating the modification date in the file because several
different modification dates already exist; you might want to update the
dates in debian-el.texi by hand if the patch is used.
Regards
diff -urNd orig/elisp/debian-el/debian-el.el new/elisp/debian-el/debian-el.el
--- orig/elisp/debian-el/debian-el.el 2004-07-21 19:35:23.000000000 +0200
+++ new/elisp/debian-el/debian-el.el 2008-04-12 09:36:57.000000000 +0200
@@ -6,6 +6,9 @@
;;; History:
;;
+;; 2008-04-12 - Géraud Meyer
+;; - Use apt-sources-mode for files in /etc/apt/sources.list.d/ too.
+;; - Use \' instead of $ for the end of filenames.
;; 2003-09-01 - Peter Galbraith
;; - Created.
@@ -19,8 +22,9 @@
;;(require 'debian-el-custom)
;; apt-sources
-(add-to-list 'auto-mode-alist '("sources.list$" . apt-sources-mode))
-(defgroup apt-sources nil "Mode for editing apt source.list file"
+(add-to-list 'auto-mode-alist '("sources\\.list\\'" . apt-sources-mode))
+(add-to-list 'auto-mode-alist '("sources\\.list\\.d/.*\\.list\\'" .
apt-sources-mode))
+(defgroup apt-sources nil "Mode for editing apt sources.list files"
:group 'tools
:prefix "apt-sources-"
:link '(custom-manual "(debian-el)apt-sources")
@@ -49,7 +53,7 @@
;; deb-view.el
(setq auto-mode-alist
- (append '(("\\.u?deb$" . deb-view-mode)) auto-mode-alist))
+ (append '(("\\.u?deb\\'" . deb-view-mode)) auto-mode-alist))
(defgroup deb-view nil
"View Debian package files with tar-mode"
:group 'tools
diff -urNd orig/elisp/debian-el.orig/debian-el.texi
new/elisp/debian-el/debian-el.texi
--- orig/elisp/debian-el/debian-el.texi 2005-10-25 03:22:05.000000000 +0200
+++ new/elisp/debian-el/debian-el.texi 2008-04-12 09:36:47.000000000 +0200
@@ -45,7 +45,7 @@
@end example
@menu
-* apt-sources:: Mode for editing apt source.list file
+* apt-sources:: Mode for editing apt sources.list files
* apt-utils:: Emacs interface to APT
* debian-bug:: Report a bug to Debian's bug tracking system
* deb-view:: View Debian package archive files with tar-mode
@@ -69,10 +69,11 @@
@email{psg@@debian.org}.
@node apt-sources, apt-utils, Top, Top
[EMAIL PROTECTED] apt-sources - Mode for editing apt source.list file.
[EMAIL PROTECTED] apt-sources - Mode for editing apt sources.list files.
-This mode is for editing @file{/etc/apt/sources.list}, the APT
-(Advanced Package Tool) configuration file found on Debian systems.
+This mode is for editing @file{/etc/apt/sources.list} and
[EMAIL PROTECTED]/etc/apt/sources.list.d/*.list}, the APT (Advanced Package
Tool)
+configuration files found on Debian systems.
APT is a package retrieval tool for Debian; for example you could
install Emacs with the command: