From a1d528953c09ac8f78cc5efd9bc64265412221d3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 16 Jan 1994 04:35:38 +0000 Subject: [PATCH] (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 +.) --- lisp/emacs-lisp/copyright.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index a39df35d009..1ebebc3247f 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el @@ -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 @@ 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 -- 2.39.5