From: Roland McGrath Date: Sun, 16 Jan 1994 04:35:38 +0000 (+0000) Subject: (update-copyright): Wrap final copyright-matching regexp in parens, so \1 X-Git-Tag: emacs-19.34~10248 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a1d528953c09ac8f78cc5efd9bc64265412221d3;p=emacs.git (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 --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