diff options
| author | Thien-Thi Nguyen | 2007-08-17 22:16:59 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2007-08-17 22:16:59 +0000 |
| commit | c2659333c28521b1ca9263d5a9dae88d853e7292 (patch) | |
| tree | 769bfa319a0cd8437ad1834ebda9c2bb6ddb8e53 | |
| parent | 578bbaf55b6a34022dd4c8ce3f2eedc96f4fb08a (diff) | |
| download | emacs-c2659333c28521b1ca9263d5a9dae88d853e7292.tar.gz emacs-c2659333c28521b1ca9263d5a9dae88d853e7292.zip | |
Revert last change.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/copyright.el | 15 |
2 files changed, 3 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6c64d493124..69d753121ea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,8 +1,3 @@ | |||
| 1 | 2007-08-17 Kimit Yada <kimitto@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * emacs-lisp/copyright.el (copyright-update-year, copyright-update) | ||
| 4 | (copyright-fix-years): Fix bug: Handle nil copyright-limit. | ||
| 5 | |||
| 6 | 2007-08-17 Bob Rogers <rogers-emacs@rgrjr.dyndns.org> (tiny change) | 1 | 2007-08-17 Bob Rogers <rogers-emacs@rgrjr.dyndns.org> (tiny change) |
| 7 | 2 | ||
| 8 | * progmode/cperl-mode.el (cperl-look-at-leading-count) | 3 | * progmode/cperl-mode.el (cperl-look-at-leading-count) |
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index d3f0056c413..ed1d01023fb 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el | |||
| @@ -84,10 +84,7 @@ When this is `function', only ask when called non-interactively." | |||
| 84 | 84 | ||
| 85 | (defun copyright-update-year (replace noquery) | 85 | (defun copyright-update-year (replace noquery) |
| 86 | (when (re-search-forward copyright-regexp | 86 | (when (re-search-forward copyright-regexp |
| 87 | (if copyright-limit | 87 | (if copyright-limit (+ (point) copyright-limit)) t) |
| 88 | (+ (point) copyright-limit) | ||
| 89 | t) | ||
| 90 | t) | ||
| 91 | ;; If the years are continued onto multiple lined | 88 | ;; If the years are continued onto multiple lined |
| 92 | ;; that are marked as comments, skip to the end of the years anyway. | 89 | ;; that are marked as comments, skip to the end of the years anyway. |
| 93 | (while (save-excursion | 90 | (while (save-excursion |
| @@ -167,10 +164,7 @@ interactively." | |||
| 167 | "\\(the Free Software Foundation;\ | 164 | "\\(the Free Software Foundation;\ |
| 168 | either \\|; a\\^u eldono \\([0-9]+\\)a, ? a\\^u (la\\^u via \\)\ | 165 | either \\|; a\\^u eldono \\([0-9]+\\)a, ? a\\^u (la\\^u via \\)\ |
| 169 | version \\([0-9]+\\), or (at" | 166 | version \\([0-9]+\\), or (at" |
| 170 | (if copyright-limit | 167 | (if copyright-limit (+ (point) copyright-limit)) t) |
| 171 | (+ (point) copyright-limit) | ||
| 172 | t) | ||
| 173 | t) | ||
| 174 | (not (string= (match-string 3) copyright-current-gpl-version)) | 168 | (not (string= (match-string 3) copyright-current-gpl-version)) |
| 175 | (or noquery | 169 | (or noquery |
| 176 | (y-or-n-p (concat "Replace GPL version by " | 170 | (y-or-n-p (concat "Replace GPL version by " |
| @@ -193,10 +187,7 @@ Uses heuristic: year >= 50 means 19xx, < 50 means 20xx." | |||
| 193 | (widen) | 187 | (widen) |
| 194 | (goto-char (point-min)) | 188 | (goto-char (point-min)) |
| 195 | (if (re-search-forward copyright-regexp | 189 | (if (re-search-forward copyright-regexp |
| 196 | (if copyright-limit | 190 | (if copyright-limit (+ (point) copyright-limit)) t) |
| 197 | (+ (point) copyright-limit) | ||
| 198 | t) | ||
| 199 | t) | ||
| 200 | (let ((s (match-beginning 2)) | 191 | (let ((s (match-beginning 2)) |
| 201 | (e (copy-marker (1+ (match-end 2)))) | 192 | (e (copy-marker (1+ (match-end 2)))) |
| 202 | (p (make-marker)) | 193 | (p (make-marker)) |