aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1994-01-16 04:35:38 +0000
committerRoland McGrath1994-01-16 04:35:38 +0000
commita1d528953c09ac8f78cc5efd9bc64265412221d3 (patch)
treea6cd4783b2366f276dd4cd4a3abc27116f2dfc50
parent86e7b62748342f8a1ea941bcf1c021c834ce67fa (diff)
downloademacs-a1d528953c09ac8f78cc5efd9bc64265412221d3.tar.gz
emacs-a1d528953c09ac8f78cc5efd9bc64265412221d3.zip
(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 +.)
-rw-r--r--lisp/emacs-lisp/copyright.el4
1 files 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 @@
1;;; upd-copyr.el --- update the copyright notice in a GNU Emacs Lisp file 1;;; upd-copyr.el --- update the copyright notice in a GNU Emacs Lisp file
2 2
3;;; Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. 3;;; Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
4 4
5;; Author: Roland McGrath <roland@gnu.ai.mit.edu> 5;; Author: Roland McGrath <roland@gnu.ai.mit.edu>
6;; Keywords: maint 6;; Keywords: maint
@@ -74,7 +74,7 @@ than adding to it."
74 (search-forward "is free software" nil t) 74 (search-forward "is free software" nil t)
75 (goto-char (point-min)))) 75 (goto-char (point-min))))
76 (re-search-forward 76 (re-search-forward
77 "[Cc]opyright[^0-9]*\\(\\([-, \t]*\\([0-9]+\\)\\)\\)+" 77 "[Cc]opyright[^0-9]*\\(\\(\\([-, \t]*\\([0-9]+\\)\\)\\)+\\)"
78 nil t) 78 nil t)
79 (or (not ask-upd) 79 (or (not ask-upd)
80 (save-window-excursion 80 (save-window-excursion