summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2007-08-17 21:56:02 +0000
committerThien-Thi Nguyen <ttn@gnuvola.org>2007-08-17 21:56:02 +0000
commitbbe5cceac71e18df96cb25e21f936b4cfe68df01 (patch)
tree2b505b3299584aa2f331720c4c6744b2c5237146 /lisp/emacs-lisp
parentef1ba5eb15c28c664d526b1a3e0e0104cc29fd3a (diff)
downloademacs-bbe5cceac71e18df96cb25e21f936b4cfe68df01.tar.gz
emacs-bbe5cceac71e18df96cb25e21f936b4cfe68df01.tar.bz2
emacs-bbe5cceac71e18df96cb25e21f936b4cfe68df01.zip
(copyright-update-year): Fix bug: Handle nil copyright-limit.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/copyright.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el
index 5fdebea68f3..84f96b12ad5 100644
--- a/lisp/emacs-lisp/copyright.el
+++ b/lisp/emacs-lisp/copyright.el
@@ -96,7 +96,9 @@ When this is `function', only ask when called non-interactively."
(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