Mercurial > emacs
diff lisp/emacs-lisp/copyright.el @ 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 | 50d1581f2548 |
children | 7206375cd8a6 |
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