changeset 82445:8bed2c8a10f1

(copyright-update-year): Fix bug: Handle nil copyright-limit.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Fri, 17 Aug 2007 21:54:41 +0000
parents 364ec6a9a30b
children 643ae46953f2
files lisp/emacs-lisp/copyright.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/copyright.el	Fri Aug 17 20:27:01 2007 +0000
+++ b/lisp/emacs-lisp/copyright.el	Fri Aug 17 21:54:41 2007 +0000
@@ -96,7 +96,9 @@
 	  (re-search-forward (concat "\\(" copyright-regexp
 				     "\\)\\([ \t]*\n\\)?.*\\(?:"
 				     copyright-names-regexp "\\)")
-			     (if copyright-limit (+ (point) copyright-limit))
+			     (if copyright-limit
+                                 (+ (point) copyright-limit)
+                               t)
 			     t)
 	;; In case the regexp is rejected.  This is useful because
 	;; copyright-update is typically called from before-save-hook where