Commit a1d52895 authored by Roland McGrath's avatar Roland McGrath
Browse files

(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 +.)
parent 86e7b627
;;; 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment