# HG changeset patch # User Roland McGrath # Date 758694938 0 # Node ID f369023b3cc3bf2d573252c7bef7c3e1df9ea8b9 # Parent a8f081e90aeec6d893a6ed6a4987f56f28ae73ba (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 +.) diff -r a8f081e90aee -r f369023b3cc3 lisp/emacs-lisp/copyright.el --- 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 ;; 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