-2007-08-17 Kimit Yada <kimitto@gmail.com> (tiny change)
-
- * emacs-lisp/copyright.el (copyright-update-year, copyright-update)
- (copyright-fix-years): Fix bug: Handle nil copyright-limit.
-
2007-08-17 Bob Rogers <rogers-emacs@rgrjr.dyndns.org> (tiny change)
* progmode/cperl-mode.el (cperl-look-at-leading-count)
(defun copyright-update-year (replace noquery)
(when (re-search-forward copyright-regexp
- (if copyright-limit
- (+ (point) copyright-limit)
- t)
- t)
+ (if copyright-limit (+ (point) copyright-limit)) t)
;; If the years are continued onto multiple lined
;; that are marked as comments, skip to the end of the years anyway.
(while (save-excursion
"\\(the Free Software Foundation;\
either \\|; a\\^u eldono \\([0-9]+\\)a, ? a\\^u (la\\^u via \\)\
version \\([0-9]+\\), or (at"
- (if copyright-limit
- (+ (point) copyright-limit)
- t)
- t)
+ (if copyright-limit (+ (point) copyright-limit)) t)
(not (string= (match-string 3) copyright-current-gpl-version))
(or noquery
(y-or-n-p (concat "Replace GPL version by "
(widen)
(goto-char (point-min))
(if (re-search-forward copyright-regexp
- (if copyright-limit
- (+ (point) copyright-limit)
- t)
- t)
+ (if copyright-limit (+ (point) copyright-limit)) t)
(let ((s (match-beginning 2))
(e (copy-marker (1+ (match-end 2))))
(p (make-marker))