emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for copyright.el to allow multi-line copyrights


From: Lars Magne Ingebrigtsen
Subject: Patch for copyright.el to allow multi-line copyrights
Date: Fri, 04 Jan 2002 05:44:00 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Copyleft, i386-debian-linux)

When updating lines as the following, copyright.el will add
"2002" to the end of the first line.  The patch below fixes this. 

;; Copyright (C) 1987, 1988, 1989, 1990, 1993, 1994, 1995, 1996 
;;        1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.

2002-01-04  Lars Magne Ingebrigtsen  <address@hidden>

        * emacs-lisp/copyright.el (copyright-regexp): Allow multi-line
        copyrights to be updated.

--- copyright.el.~1~    Mon Jul 16 14:22:59 2001
+++ copyright.el        Tue Jan  1 03:16:41 2002
@@ -45,7 +45,7 @@
 (defcustom copyright-regexp
   "\\([\251©]\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *(C)\
 \\|[Cc]opyright\\s *:?\\s *[\251©]\\)\
-\\s *\\([1-9][-0-9, ']*[0-9]+\\)"
+\\s *\\([1-9][-0-9, ';\n\t]*[0-9]+\\)"
   "*What your copyright notice looks like.
 The second \\( \\) construct must match the years."
   :group 'copyright

-- 
(domestic pets only, the antidote for overdose, milk.)
   address@hidden * Lars Magne Ingebrigtsen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]