]> git.eshelyaron.com Git - emacs.git/commitdiff
(update-copyright): Wrap final copyright-matching regexp in parens, so \1
authorRoland McGrath <roland@gnu.org>
Sun, 16 Jan 1994 04:35:38 +0000 (04:35 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 16 Jan 1994 04:35:38 +0000 (04:35 +0000)
gets all the year tokens, not just the last.  (The old regexp won with
the pre-POSIX defn of subexpressions with +.)

lisp/emacs-lisp/copyright.el

index a39df35d00935260cfa0d9190a62052611537fbd..1ebebc3247fbe13c8297469675f30f097726b676 100644 (file)
@@ -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 @@ than adding to it."
                         (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