changeset 102068:e22cfe7e0065

Tweak copyright-regexp Tweaked to match copyright statements where the years follow the name. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1549
author Miles Bader <miles@gnu.org>
date Tue, 17 Feb 2009 10:13:59 +0000
parents c1697dc8f121
children b6ec92c16c1d
files lisp/ChangeLog lisp/emacs-lisp/copyright.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Feb 17 07:14:11 2009 +0000
+++ b/lisp/ChangeLog	Tue Feb 17 10:13:59 2009 +0000
@@ -1,3 +1,8 @@
+2009-02-17  Miles Bader  <miles@gnu.org>
+
+	* emacs-lisp/copyright.el (copyright-regexp): Tweaked to match
+	copyright statements where the years follow the name.
+
 2009-02-17  Glenn Morris  <rgm@gnu.org>
 
 	* emacs-lisp/copyright.el (copyright-update-year): Don't let y-or-n-p
--- a/lisp/emacs-lisp/copyright.el	Tue Feb 17 07:14:11 2009 +0000
+++ b/lisp/emacs-lisp/copyright.el	Tue Feb 17 10:13:59 2009 +0000
@@ -51,7 +51,8 @@
 (defcustom copyright-regexp
  "\\(©\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\
 \\|[Cc]opyright\\s *:?\\s *©\\)\
-\\s *\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
+\\s *\\(?:[^0-9\n]*\\s *\\)?\
+\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
   "What your copyright notice looks like.
 The second \\( \\) construct must match the years."
   :group 'copyright