From 17b337762fe7df77aa8a6dfcea0109a267bea83d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 4 Jan 2004 23:00:06 +0000 Subject: [PATCH] allow % and # as well as ; in copyright notice --- lisp/ChangeLog | 6 ++++++ lisp/emacs-lisp/copyright.el | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 08d3d17ce0b..14963f0ef8c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index fc0a5b74726..4532f7e5b77 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el @@ -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 @@ A value of nil means to search whole buffer." (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 -- 2.39.2