aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2009-02-17 10:13:59 +0000
committerMiles Bader2009-02-17 10:13:59 +0000
commit24a517fc67cb719a307a1fdd4109eb1d2808fc7c (patch)
tree06bab9cbcc3d086e051350459d7d79c9e1e298d6
parentf0d129c6d60953ef49b946f2404b79a190d48425 (diff)
downloademacs-24a517fc67cb719a307a1fdd4109eb1d2808fc7c.tar.gz
emacs-24a517fc67cb719a307a1fdd4109eb1d2808fc7c.zip
Tweak copyright-regexp
Tweaked to match copyright statements where the years follow the name. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1549
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/copyright.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 77aa43c77af..31cc564e05e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-02-17 Miles Bader <miles@gnu.org>
2
3 * emacs-lisp/copyright.el (copyright-regexp): Tweaked to match
4 copyright statements where the years follow the name.
5
12009-02-17 Glenn Morris <rgm@gnu.org> 62009-02-17 Glenn Morris <rgm@gnu.org>
2 7
3 * emacs-lisp/copyright.el (copyright-update-year): Don't let y-or-n-p 8 * emacs-lisp/copyright.el (copyright-update-year): Don't let y-or-n-p
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el
index 04020d652e7..f454d2ef52d 100644
--- a/lisp/emacs-lisp/copyright.el
+++ b/lisp/emacs-lisp/copyright.el
@@ -51,7 +51,8 @@ This is useful for ChangeLogs."
51(defcustom copyright-regexp 51(defcustom copyright-regexp
52 "\\(©\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\ 52 "\\(©\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\
53\\|[Cc]opyright\\s *:?\\s *©\\)\ 53\\|[Cc]opyright\\s *:?\\s *©\\)\
54\\s *\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)" 54\\s *\\(?:[^0-9\n]*\\s *\\)?\
55\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
55 "What your copyright notice looks like. 56 "What your copyright notice looks like.
56The second \\( \\) construct must match the years." 57The second \\( \\) construct must match the years."
57 :group 'copyright 58 :group 'copyright