changeset 33488:352cb95d9f27

(diff-imenu-generic-expression): Modify unidiff pattern.
author Dave Love <fx@gnu.org>
date Tue, 14 Nov 2000 18:09:21 +0000
parents 71de6ba64af7
children 6e67bfbf2fac
files lisp/diff-mode.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/diff-mode.el	Tue Nov 14 17:19:59 2000 +0000
+++ b/lisp/diff-mode.el	Tue Nov 14 18:09:21 2000 +0000
@@ -4,7 +4,7 @@
 
 ;; Author: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: patch diff
-;; Revision: $Id: diff-mode.el,v 1.33 2000/10/19 15:42:21 monnier Exp $
+;; Revision: $Id: diff-mode.el,v 1.34 2000/11/12 16:59:52 monnier Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -274,8 +274,9 @@
 
 (defvar diff-imenu-generic-expression
   ;; Prefer second name as first is most likely to be a backup or
-  ;; version-control name.
-  '((nil "\\+\\+\\+\\ \\([^\t\n]+\\)\t" 1) ; unidiffs
+  ;; version-control name.  The [\t\n] at the end of the unidiff pattern
+  ;; catches Debian source diff files (which lack the trailing date).
+  '((nil "\\+\\+\\+\\ \\([^\t\n]+\\)[\t\n]" 1) ; unidiffs
     (nil "^--- \\([^\t\n]+\\)\t.*\n\\*" 1))) ; context diffs
 
 ;;;;