(copyright-update-year): Fix bug: Handle nil copyright-limit.
This commit is contained in:
parent
ef1ba5eb15
commit
bbe5cceac7
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-08-17 Kimit Yada <kimitto@gmail.com> (tiny change)
|
||||
|
||||
* emacs-lisp/copyright.el (copyright-update-year):
|
||||
Fix bug: Handle nil copyright-limit.
|
||||
|
||||
2007-08-17 Jay Belanger <jay.p.belanger@gmail.com>
|
||||
|
||||
* calc/calc-units.el (math-standard-units): Give exact
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue