# HG changeset patch # User Karl Berry # Date 1073257206 0 # Node ID 837280979573984e3b1386b67b112b1cfe083fae # Parent b58e2f67321be2b9d28e71eb59b67c2ea5519822 allow % and # as well as ; in copyright notice diff -r b58e2f67321b -r 837280979573 lisp/ChangeLog --- 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 + + * 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 * wid-edit.el (default): Define dummy :value-delete. diff -r b58e2f67321b -r 837280979573 lisp/emacs-lisp/copyright.el --- 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 @@ -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