1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

allow % and # as well as ; in copyright notice

This commit is contained in:
Karl Berry 2004-01-04 23:00:06 +00:00
parent e822882420
commit 17b337762f
2 changed files with 8 additions and 2 deletions

View file

@ -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.

View file

@ -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 @@ A value of nil means to search whole buffer."
(defcustom copyright-regexp
"\\([<5B>©Ž©]\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\
\\|[Cc]opyright\\s *:?\\s *[<EFBFBD>©Ž©]\\)\
\\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