Package: debian-el Version: 29.0-1 Severity: minor File: /usr/share/emacs/site-lisp/debian-el/apt-sources.el Tags: patch
I tend to leave non-main sections disabled by putting an octothorpe after "main" so I can easily toggle them on temporarily, e.g. deb http://ftp.debian.org/debian/ etch main # non-free contrib apt-sources mode doesn't colour such comments correctly. The attached diff appears to fix things, but I haven't tested it extensively for regressions. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages debian-el depends on: ii binutils 2.18.1~cvs20080103-1 The GNU assembler, linker and bina ii emacs [emacsen] 1:20080120-1 The GNU Emacs editor (metapackage) ii emacs-snapshot [ema 1:20080228-1 The GNU Emacs editor (development ii reportbug 3.39 reports bugs in the Debian distrib Versions of packages debian-el recommends: ii dlocate 0.94 fast alternative to dpkg -L and dp ii groff-base 1.18.1.1-16 GNU troff text-formatting system ( ii wget 1.10.2-3 retrieves files from the web -- no debconf information
diff -ud /usr/share/emacs-snapshot/site-lisp/debian-el/apt-sources.el /tmp/buffer-content-165609a1 --- /usr/share/emacs-snapshot/site-lisp/debian-el/apt-sources.el 2003-12-12 07:27:43.000000000 +1100 +++ /tmp/buffer-content-165609a1 2008-03-08 21:41:22.880647174 +1100 @@ -171,7 +171,7 @@ (defvar apt-sources-font-lock-keywords (list ;; Comments - '("^#.*$" . font-lock-comment-face) + '("#.*$" . font-lock-comment-face) ;; sources.list lines: ;; deb http://http.us.debian.org/debian unstable main contrib (cons @@ -179,7 +179,7 @@ apt-sources-font-lock-deb-regexp apt-sources-font-lock-uri-regexp apt-sources-font-lock-distribution-regexp - "\\(.*\\)$") + "\\([^#]+\\)") '( (1 font-lock-constant-face) (2 font-lock-variable-name-face) Diff finished. Sat Mar 8 21:41:23 2008