changeset 53499:837280979573

allow % and # as well as ; in copyright notice
author Karl Berry <karl@gnu.org>
date Sun, 04 Jan 2004 23:00:06 +0000
parents b58e2f67321b
children 530a52a3971b 0b195559ccf5
files lisp/ChangeLog lisp/emacs-lisp/copyright.el
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Jan 04 16:42:06 2004 +0000
+++ b/lisp/ChangeLog	Sun Jan 04 23:00:06 2004 +0000
@@ -1,3 +1,9 @@
+2004-01-04  Karl Berry  <karl@gnu.org>
+
+	* emacs-lisp/copyright.el (copyright-regexp): allow the common
+	comment characters % and # in the copyright year notice,
+	as well as ;.
+
 2004-01-04  Per Abrahamsen  <abraham@dina.kvl.dk>
 
 	* wid-edit.el (default): Define dummy :value-delete.
--- a/lisp/emacs-lisp/copyright.el	Sun Jan 04 16:42:06 2004 +0000
+++ b/lisp/emacs-lisp/copyright.el	Sun Jan 04 23:00:06 2004 +0000
@@ -1,6 +1,6 @@
 ;;; copyright.el --- update the copyright notice in current buffer
 
-;; Copyright (C) 1991, 92, 93, 94, 95, 1998, 2001, 2003
+;; Copyright (C) 1991, 92, 93, 94, 95, 1998, 2001, 2003, 2004
 ;;           Free Software Foundation, Inc.
 
 ;; Author: Daniel Pfeiffer <occitan@esperanto.org>
@@ -47,7 +47,7 @@
 (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 *\\([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