diff options
| author | Miles Bader | 2009-02-17 10:13:59 +0000 |
|---|---|---|
| committer | Miles Bader | 2009-02-17 10:13:59 +0000 |
| commit | 24a517fc67cb719a307a1fdd4109eb1d2808fc7c (patch) | |
| tree | 06bab9cbcc3d086e051350459d7d79c9e1e298d6 | |
| parent | f0d129c6d60953ef49b946f2404b79a190d48425 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/copyright.el | 3 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-02-17 Glenn Morris <rgm@gnu.org> | 6 | 2009-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. |
| 56 | The second \\( \\) construct must match the years." | 57 | The second \\( \\) construct must match the years." |
| 57 | :group 'copyright | 58 | :group 'copyright |