# HG changeset patch # User Thien-Thi Nguyen # Date 1187387681 0 # Node ID 8bed2c8a10f111b8d3bce0a9929cceff422e6a0a # Parent 364ec6a9a30b02fe31595b5854f13fb76ec3826a (copyright-update-year): Fix bug: Handle nil copyright-limit. diff -r 364ec6a9a30b -r 8bed2c8a10f1 lisp/emacs-lisp/copyright.el --- 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