]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert last change.
authorThien-Thi Nguyen <ttn@gnuvola.org>
Fri, 17 Aug 2007 22:16:59 +0000 (22:16 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Fri, 17 Aug 2007 22:16:59 +0000 (22:16 +0000)
lisp/ChangeLog
lisp/emacs-lisp/copyright.el

index 6c64d493124f7f89b7c3b0bb738f614e1def6de5..69d753121eab638b753ca534d5ac61a186b123ee 100644 (file)
@@ -1,8 +1,3 @@
-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)
index d3f0056c4132e57bfb88a12ede29ff06896c36ef..ed1d01023fb9706132ed9c8b3a0b56280b181106 100644 (file)
@@ -84,10 +84,7 @@ When this is `function', only ask when called non-interactively."
 
 (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
@@ -167,10 +164,7 @@ interactively."
                 "\\(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 "
@@ -193,10 +187,7 @@ Uses heuristic: year >= 50 means 19xx, < 50 means 20xx."
   (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))