changeset 5603:f369023b3cc3

(update-copyright): Wrap final copyright-matching regexp in parens, so \1 gets all the year tokens, not just the last. (The old regexp won with the pre-POSIX defn of subexpressions with +.)
author Roland McGrath <roland@gnu.org>
date Sun, 16 Jan 1994 04:35:38 +0000
parents a8f081e90aee
children 32ac07bd58ef
files lisp/emacs-lisp/copyright.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/copyright.el	Sat Jan 15 21:10:50 1994 +0000
+++ b/lisp/emacs-lisp/copyright.el	Sun Jan 16 04:35:38 1994 +0000
@@ -1,6 +1,6 @@
 ;;; upd-copyr.el --- update the copyright notice in a GNU Emacs Lisp file
 
-;;; Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
+;;; Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
 
 ;; Author: Roland McGrath <roland@gnu.ai.mit.edu>
 ;; Keywords: maint
@@ -74,7 +74,7 @@
 			 (search-forward "is free software" nil t)
 		       (goto-char (point-min))))
 		 (re-search-forward
-		  "[Cc]opyright[^0-9]*\\(\\([-, \t]*\\([0-9]+\\)\\)\\)+"
+		  "[Cc]opyright[^0-9]*\\(\\(\\([-, \t]*\\([0-9]+\\)\\)\\)+\\)"
 		  nil t)
 		 (or (not ask-upd)
 		     (save-window-excursion