diff options
author | Roland McGrath <[email protected]> | 1994-01-16 04:35:38 +0000 |
---|---|---|
committer | Roland McGrath <[email protected]> | 1994-01-16 04:35:38 +0000 |
commit | a1d528953c09ac8f78cc5efd9bc64265412221d3 (patch) | |
tree | a6cd4783b2366f276dd4cd4a3abc27116f2dfc50 /lisp/emacs-lisp/copyright.el | |
parent | 86e7b62748342f8a1ea941bcf1c021c834ce67fa (diff) |
(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 +.)
Diffstat (limited to 'lisp/emacs-lisp/copyright.el')
-rw-r--r-- | lisp/emacs-lisp/copyright.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index a39df35d00..1ebebc3247 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 <[email protected]> ;; 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 |