# HG changeset patch # User Miles Bader # Date 1234865639 0 # Node ID e22cfe7e00657876fac9f84226ba3e70638cc65a # Parent c1697dc8f12179abd44078d225d4781bc3cda542 Tweak copyright-regexp Tweaked to match copyright statements where the years follow the name. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1549 diff -r c1697dc8f121 -r e22cfe7e0065 lisp/ChangeLog --- 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 + + * emacs-lisp/copyright.el (copyright-regexp): Tweaked to match + copyright statements where the years follow the name. + 2009-02-17 Glenn Morris * emacs-lisp/copyright.el (copyright-update-year): Don't let y-or-n-p diff -r c1697dc8f121 -r e22cfe7e0065 lisp/emacs-lisp/copyright.el --- 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