diff options
| author | Glenn Morris | 2018-03-23 16:13:09 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-03-23 16:14:47 -0400 |
| commit | 4a05f85f5a0cde3d21fb40d2617c944b09a977cd (patch) | |
| tree | 2f1a8b090ee7858f0efd2ca03fc33285381faca2 | |
| parent | aa83340fd43bf70f8bc2159310e18c3d0a2182a2 (diff) | |
| download | emacs-4a05f85f5a0cde3d21fb40d2617c944b09a977cd.tar.gz emacs-4a05f85f5a0cde3d21fb40d2617c944b09a977cd.zip | |
gnus: replace cl with cl-lib
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-demon.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-icalendar.el, lisp/gnus/gnus-logic.el:
* lisp/gnus/gnus-msg.el, lisp/gnus/gnus-picon.el:
* lisp/gnus/gnus-registry.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-spec.el:
* lisp/gnus/gnus-srvr.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/mail-source.el, lisp/gnus/mm-decode.el:
* lisp/gnus/mm-encode.el, lisp/gnus/mm-url.el, lisp/gnus/mm-view.el:
* lisp/gnus/mml-smime.el, lisp/gnus/mml.el, lisp/gnus/mml2015.el:
* lisp/gnus/nnbabyl.el, lisp/gnus/nndoc.el, lisp/gnus/nneething.el:
* lisp/gnus/nnheader.el, lisp/gnus/nnimap.el, lisp/gnus/nnmail.el:
* lisp/gnus/nnmaildir.el, lisp/gnus/nnoo.el, lisp/gnus/nnrss.el:
* lisp/gnus/nnspool.el, lisp/gnus/nntp.el, lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el, lisp/gnus/spam.el: Replace cl with cl-lib.
* lisp/gnus/canlock.el, lisp/gnus/gnus-bcklg.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-cloud.el:
* lisp/gnus/gnus-draft.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-html.el:
* lisp/gnus/gnus-int.el, lisp/gnus/gnus-kill.el, lisp/gnus/gnus-ml.el:
* lisp/gnus/gnus-mlspl.el, lisp/gnus/gnus-range.el:
* lisp/gnus/gnus-undo.el, lisp/gnus/gnus-vm.el:
* lisp/gnus/mm-partial.el, lisp/gnus/mm-uu.el, lisp/gnus/mml1991.el:
* lisp/gnus/nnagent.el, lisp/gnus/nndiary.el, lisp/gnus/nndir.el:
* lisp/gnus/nndraft.el, lisp/gnus/nnfolder.el, lisp/gnus/nngateway.el:
* lisp/gnus/nnmairix.el, lisp/gnus/nnmbox.el, lisp/gnus/nnmh.el:
* lisp/gnus/nnml.el, lisp/gnus/score-mode.el, lisp/gnus/smiley.el:
No need for cl.
73 files changed, 222 insertions, 280 deletions
diff --git a/lisp/gnus/canlock.el b/lisp/gnus/canlock.el index 7c657ead78d..0bd47cdde9a 100644 --- a/lisp/gnus/canlock.el +++ b/lisp/gnus/canlock.el | |||
| @@ -41,9 +41,6 @@ | |||
| 41 | 41 | ||
| 42 | ;;; Code: | 42 | ;;; Code: |
| 43 | 43 | ||
| 44 | (eval-when-compile | ||
| 45 | (require 'cl)) | ||
| 46 | |||
| 47 | (require 'sha1) | 44 | (require 'sha1) |
| 48 | 45 | ||
| 49 | (defvar mail-header-separator) | 46 | (defvar mail-header-separator) |
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el index 628c9430c92..532fd7e7b8e 100644 --- a/lisp/gnus/gnus-agent.el +++ b/lisp/gnus/gnus-agent.el | |||
| @@ -31,8 +31,7 @@ | |||
| 31 | (require 'gnus-srvr) | 31 | (require 'gnus-srvr) |
| 32 | (require 'gnus-util) | 32 | (require 'gnus-util) |
| 33 | (require 'timer) | 33 | (require 'timer) |
| 34 | (eval-when-compile | 34 | (eval-when-compile (require 'cl-lib)) |
| 35 | (require 'cl)) | ||
| 36 | 35 | ||
| 37 | (autoload 'gnus-server-update-server "gnus-srvr") | 36 | (autoload 'gnus-server-update-server "gnus-srvr") |
| 38 | (autoload 'gnus-agent-customize-category "gnus-cus") | 37 | (autoload 'gnus-agent-customize-category "gnus-cus") |
| @@ -332,9 +331,9 @@ manipulated as follows: | |||
| 332 | `(progn (defmacro ,name (category) | 331 | `(progn (defmacro ,name (category) |
| 333 | (list 'cdr (list 'assq '',prop-name category))) | 332 | (list 'cdr (list 'assq '',prop-name category))) |
| 334 | 333 | ||
| 335 | (defsetf ,name (category) (value) | 334 | (gv-define-setter ,name (value category) |
| 336 | (list 'gnus-agent-cat-set-property | 335 | (list 'gnus-agent-cat-set-property |
| 337 | category '',prop-name value)))) | 336 | category '',prop-name value)))) |
| 338 | ) | 337 | ) |
| 339 | 338 | ||
| 340 | (defmacro gnus-agent-cat-name (category) | 339 | (defmacro gnus-agent-cat-name (category) |
| @@ -361,11 +360,7 @@ manipulated as follows: | |||
| 361 | (gnus-agent-cat-defaccessor | 360 | (gnus-agent-cat-defaccessor |
| 362 | gnus-agent-cat-enable-undownloaded-faces agent-enable-undownloaded-faces) | 361 | gnus-agent-cat-enable-undownloaded-faces agent-enable-undownloaded-faces) |
| 363 | 362 | ||
| 364 | 363 | (gv-define-simple-setter gnus-agent-cat-groups gnus-agent-set-cat-groups) | |
| 365 | ;; This form may expand to code that uses CL functions at run-time, | ||
| 366 | ;; but that's OK since those functions will only ever be called from | ||
| 367 | ;; something like `setf', so only when CL is loaded anyway. | ||
| 368 | (defsetf gnus-agent-cat-groups gnus-agent-set-cat-groups) | ||
| 369 | 364 | ||
| 370 | (defun gnus-agent-set-cat-groups (category groups) | 365 | (defun gnus-agent-set-cat-groups (category groups) |
| 371 | (unless (eq groups 'ignore) | 366 | (unless (eq groups 'ignore) |
| @@ -2180,7 +2175,7 @@ article counts for each of the method's subscribed groups." | |||
| 2180 | 'gnus-agent-file-loading-local | 2175 | 'gnus-agent-file-loading-local |
| 2181 | 'gnus-agent-read-and-cache-local)) | 2176 | 'gnus-agent-read-and-cache-local)) |
| 2182 | (when gnus-agent-article-local-times | 2177 | (when gnus-agent-article-local-times |
| 2183 | (incf gnus-agent-article-local-times))) | 2178 | (cl-incf gnus-agent-article-local-times))) |
| 2184 | gnus-agent-article-local)) | 2179 | gnus-agent-article-local)) |
| 2185 | 2180 | ||
| 2186 | (defun gnus-agent-read-and-cache-local (file) | 2181 | (defun gnus-agent-read-and-cache-local (file) |
| @@ -3353,9 +3348,9 @@ missing NOV entry. Run gnus-agent-regenerate-group to restore it."))) | |||
| 3353 | (let* ((file-name (nnheader-concat dir (number-to-string | 3348 | (let* ((file-name (nnheader-concat dir (number-to-string |
| 3354 | article-number))) | 3349 | article-number))) |
| 3355 | (size (float (nth 7 (file-attributes file-name))))) | 3350 | (size (float (nth 7 (file-attributes file-name))))) |
| 3356 | (incf bytes-freed size) | 3351 | (cl-incf bytes-freed size) |
| 3357 | (incf size-files-deleted size) | 3352 | (cl-incf size-files-deleted size) |
| 3358 | (incf files-deleted) | 3353 | (cl-incf files-deleted) |
| 3359 | (delete-file file-name)) | 3354 | (delete-file file-name)) |
| 3360 | (push "expired cached article" actions)) | 3355 | (push "expired cached article" actions)) |
| 3361 | (setf (nth 1 entry) nil) | 3356 | (setf (nth 1 entry) nil) |
| @@ -3368,13 +3363,13 @@ missing NOV entry. Run gnus-agent-regenerate-group to restore it."))) | |||
| 3368 | marker | 3363 | marker |
| 3369 | (- marker position-offset))) | 3364 | (- marker position-offset))) |
| 3370 | 3365 | ||
| 3371 | (incf nov-entries-deleted) | 3366 | (cl-incf nov-entries-deleted) |
| 3372 | 3367 | ||
| 3373 | (let* ((from (point-at-bol)) | 3368 | (let* ((from (point-at-bol)) |
| 3374 | (to (progn (forward-line 1) (point))) | 3369 | (to (progn (forward-line 1) (point))) |
| 3375 | (freed (- to from))) | 3370 | (freed (- to from))) |
| 3376 | (incf bytes-freed freed) | 3371 | (cl-incf bytes-freed freed) |
| 3377 | (incf position-offset freed) | 3372 | (cl-incf position-offset freed) |
| 3378 | (delete-region from to))) | 3373 | (delete-region from to))) |
| 3379 | 3374 | ||
| 3380 | ;; If considering all articles is set, I can only | 3375 | ;; If considering all articles is set, I can only |
| @@ -3431,9 +3426,9 @@ expiration tests failed." decoded article-number) | |||
| 3431 | 3426 | ||
| 3432 | (when (boundp 'gnus-agent-expire-stats) | 3427 | (when (boundp 'gnus-agent-expire-stats) |
| 3433 | (let ((stats gnus-agent-expire-stats)) | 3428 | (let ((stats gnus-agent-expire-stats)) |
| 3434 | (incf (nth 2 stats) bytes-freed) | 3429 | (cl-incf (nth 2 stats) bytes-freed) |
| 3435 | (incf (nth 1 stats) files-deleted) | 3430 | (cl-incf (nth 1 stats) files-deleted) |
| 3436 | (incf (nth 0 stats) nov-entries-deleted))) | 3431 | (cl-incf (nth 0 stats) nov-entries-deleted))) |
| 3437 | 3432 | ||
| 3438 | (gnus-agent-update-files-total-fetched-for group (- size-files-deleted))))))) | 3433 | (gnus-agent-update-files-total-fetched-for group (- size-files-deleted))))))) |
| 3439 | 3434 | ||
| @@ -4110,7 +4105,7 @@ agent has fetched." | |||
| 4110 | (let ((sum 0.0) | 4105 | (let ((sum 0.0) |
| 4111 | file) | 4106 | file) |
| 4112 | (while (setq file (pop delta)) | 4107 | (while (setq file (pop delta)) |
| 4113 | (incf sum (float (or (nth 7 (file-attributes | 4108 | (cl-incf sum (float (or (nth 7 (file-attributes |
| 4114 | (nnheader-concat | 4109 | (nnheader-concat |
| 4115 | path | 4110 | path |
| 4116 | (if (numberp file) | 4111 | (if (numberp file) |
| @@ -4122,11 +4117,11 @@ agent has fetched." | |||
| 4122 | path nil "^-?[0-9]+$" t)) | 4117 | path nil "^-?[0-9]+$" t)) |
| 4123 | file) | 4118 | file) |
| 4124 | (while (setq file (pop info)) | 4119 | (while (setq file (pop info)) |
| 4125 | (incf sum (float (or (nth 8 file) 0)))) | 4120 | (cl-incf sum (float (or (nth 8 file) 0)))) |
| 4126 | (setq delta sum)))) | 4121 | (setq delta sum)))) |
| 4127 | 4122 | ||
| 4128 | (setq gnus-agent-need-update-total-fetched-for t) | 4123 | (setq gnus-agent-need-update-total-fetched-for t) |
| 4129 | (incf (nth 2 entry) delta)))))) | 4124 | (cl-incf (nth 2 entry) delta)))))) |
| 4130 | 4125 | ||
| 4131 | (defun gnus-agent-update-view-total-fetched-for | 4126 | (defun gnus-agent-update-view-total-fetched-for |
| 4132 | (group agent-over &optional method path) | 4127 | (group agent-over &optional method path) |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index f23b910ed2c..595ae58c813 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -24,8 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | (require 'cl)) | ||
| 29 | (defvar tool-bar-map) | 28 | (defvar tool-bar-map) |
| 30 | (defvar w3m-minor-mode-map) | 29 | (defvar w3m-minor-mode-map) |
| 31 | 30 | ||
| @@ -1798,7 +1797,7 @@ Initialized from `text-mode-syntax-table'.") | |||
| 1798 | (if (looking-at (car list)) | 1797 | (if (looking-at (car list)) |
| 1799 | (setq list nil) | 1798 | (setq list nil) |
| 1800 | (setq list (cdr list)) | 1799 | (setq list (cdr list)) |
| 1801 | (incf i))) | 1800 | (cl-incf i))) |
| 1802 | i)) | 1801 | i)) |
| 1803 | 1802 | ||
| 1804 | (defun article-hide-headers (&optional _arg _delete) | 1803 | (defun article-hide-headers (&optional _arg _delete) |
| @@ -2221,7 +2220,7 @@ This only works if the article in question is HTML." | |||
| 2221 | (w3m-toggle-inline-images) | 2220 | (w3m-toggle-inline-images) |
| 2222 | (dolist (region (gnus-find-text-property-region (point-min) (point-max) | 2221 | (dolist (region (gnus-find-text-property-region (point-min) (point-max) |
| 2223 | 'image-displayer)) | 2222 | 'image-displayer)) |
| 2224 | (destructuring-bind (start end function) region | 2223 | (cl-destructuring-bind (start end function) region |
| 2225 | (funcall function (get-text-property start 'image-url) | 2224 | (funcall function (get-text-property start 'image-url) |
| 2226 | start end))))))) | 2225 | start end))))))) |
| 2227 | 2226 | ||
| @@ -8211,7 +8210,7 @@ url is put as the `gnus-button-url' overlay property on the button." | |||
| 8211 | 8210 | ||
| 8212 | (defun gnus-button-handle-news (url) | 8211 | (defun gnus-button-handle-news (url) |
| 8213 | "Fetch a news URL." | 8212 | "Fetch a news URL." |
| 8214 | (destructuring-bind (_scheme server port group message-id _articles) | 8213 | (cl-destructuring-bind (_scheme server port group message-id _articles) |
| 8215 | (gnus-parse-news-url url) | 8214 | (gnus-parse-news-url url) |
| 8216 | (cond | 8215 | (cond |
| 8217 | (message-id | 8216 | (message-id |
diff --git a/lisp/gnus/gnus-async.el b/lisp/gnus/gnus-async.el index 7003aef24f7..ad25f805ca1 100644 --- a/lisp/gnus/gnus-async.el +++ b/lisp/gnus/gnus-async.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-sum) | 30 | (require 'gnus-sum) |
| @@ -183,7 +183,7 @@ that was fetched." | |||
| 183 | d) | 183 | d) |
| 184 | (while (and (setq d (pop data)) | 184 | (while (and (setq d (pop data)) |
| 185 | (if (numberp n) | 185 | (if (numberp n) |
| 186 | (natnump (decf n)) | 186 | (natnump (cl-decf n)) |
| 187 | n)) | 187 | n)) |
| 188 | (unless (or (gnus-async-prefetched-article-entry | 188 | (unless (or (gnus-async-prefetched-article-entry |
| 189 | group (setq article (gnus-data-number d))) | 189 | group (setq article (gnus-data-number d))) |
| @@ -290,7 +290,7 @@ that was fetched." | |||
| 290 | ;; should check time-since-last-output, which | 290 | ;; should check time-since-last-output, which |
| 291 | ;; needs to be done in nntp.el. | 291 | ;; needs to be done in nntp.el. |
| 292 | (while (eq article gnus-async-current-prefetch-article) | 292 | (while (eq article gnus-async-current-prefetch-article) |
| 293 | (incf tries) | 293 | (cl-incf tries) |
| 294 | (when (nntp-accept-process-output proc) | 294 | (when (nntp-accept-process-output proc) |
| 295 | (setq tries 0)) | 295 | (setq tries 0)) |
| 296 | (when (and (not nntp-have-messaged) | 296 | (when (and (not nntp-have-messaged) |
diff --git a/lisp/gnus/gnus-bcklg.el b/lisp/gnus/gnus-bcklg.el index 8afc31327d7..95cb1ca5ecc 100644 --- a/lisp/gnus/gnus-bcklg.el +++ b/lisp/gnus/gnus-bcklg.el | |||
| @@ -24,8 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | |||
| 29 | (require 'gnus) | 27 | (require 'gnus) |
| 30 | 28 | ||
| 31 | ;;; | 29 | ;;; |
diff --git a/lisp/gnus/gnus-cache.el b/lisp/gnus/gnus-cache.el index 1cdfea625fc..6afc52c0fce 100644 --- a/lisp/gnus/gnus-cache.el +++ b/lisp/gnus/gnus-cache.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-sum) | 30 | (require 'gnus-sum) |
| @@ -863,11 +863,11 @@ supported." | |||
| 863 | (while (setq file (pop files)) | 863 | (while (setq file (pop files)) |
| 864 | (setq attrs (file-attributes file)) | 864 | (setq attrs (file-attributes file)) |
| 865 | (unless (nth 0 attrs) | 865 | (unless (nth 0 attrs) |
| 866 | (incf size (float (nth 7 attrs))))))) | 866 | (cl-incf size (float (nth 7 attrs))))))) |
| 867 | 867 | ||
| 868 | (setq gnus-cache-need-update-total-fetched-for t) | 868 | (setq gnus-cache-need-update-total-fetched-for t) |
| 869 | 869 | ||
| 870 | (incf (nth 1 entry) (if subtract (- size) size)))))) | 870 | (cl-incf (nth 1 entry) (if subtract (- size) size)))))) |
| 871 | 871 | ||
| 872 | (defun gnus-cache-update-overview-total-fetched-for (group file) | 872 | (defun gnus-cache-update-overview-total-fetched-for (group file) |
| 873 | (when gnus-cache-total-fetched-hashtb | 873 | (when gnus-cache-total-fetched-hashtb |
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el index 07a84940269..64d3a396f3d 100644 --- a/lisp/gnus/gnus-cite.el +++ b/lisp/gnus/gnus-cite.el | |||
| @@ -23,8 +23,6 @@ | |||
| 23 | 23 | ||
| 24 | ;;; Code: | 24 | ;;; Code: |
| 25 | 25 | ||
| 26 | (eval-when-compile (require 'cl)) | ||
| 27 | |||
| 28 | (require 'gnus) | 26 | (require 'gnus) |
| 29 | (require 'gnus-range) | 27 | (require 'gnus-range) |
| 30 | (require 'gnus-art) | 28 | (require 'gnus-art) |
diff --git a/lisp/gnus/gnus-cloud.el b/lisp/gnus/gnus-cloud.el index 86cd399ff1c..16bd80dbfa1 100644 --- a/lisp/gnus/gnus-cloud.el +++ b/lisp/gnus/gnus-cloud.el | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (eval-when-compile (require 'cl)) | ||
| 32 | (require 'parse-time) | 31 | (require 'parse-time) |
| 33 | (require 'nnimap) | 32 | (require 'nnimap) |
| 34 | 33 | ||
diff --git a/lisp/gnus/gnus-demon.el b/lisp/gnus/gnus-demon.el index 72b0f5cecff..2405c705651 100644 --- a/lisp/gnus/gnus-demon.el +++ b/lisp/gnus/gnus-demon.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-int) | 30 | (require 'gnus-int) |
| @@ -101,7 +101,7 @@ If not, and a TIME is given, restart a new idle timer, so FUNC | |||
| 101 | can be called at the next opportunity. Such a special idle run is | 101 | can be called at the next opportunity. Such a special idle run is |
| 102 | marked with SPECIAL." | 102 | marked with SPECIAL." |
| 103 | (unless gnus-inhibit-demon | 103 | (unless gnus-inhibit-demon |
| 104 | (block run-callback | 104 | (cl-block run-callback |
| 105 | (when (eq idle t) | 105 | (when (eq idle t) |
| 106 | (setq idle 0.001)) | 106 | (setq idle 0.001)) |
| 107 | (cond (special | 107 | (cond (special |
| @@ -117,7 +117,7 @@ marked with SPECIAL." | |||
| 117 | (run-with-idle-timer idle nil | 117 | (run-with-idle-timer idle nil |
| 118 | 'gnus-demon-run-callback | 118 | 'gnus-demon-run-callback |
| 119 | func idle time t)))) | 119 | func idle time t)))) |
| 120 | (return-from run-callback))) | 120 | (cl-return-from run-callback))) |
| 121 | (with-local-quit | 121 | (with-local-quit |
| 122 | (ignore-errors | 122 | (ignore-errors |
| 123 | (funcall func)))))) | 123 | (funcall func)))))) |
diff --git a/lisp/gnus/gnus-draft.el b/lisp/gnus/gnus-draft.el index 7a37a86fb6f..7d4be47e41b 100644 --- a/lisp/gnus/gnus-draft.el +++ b/lisp/gnus/gnus-draft.el | |||
| @@ -30,7 +30,6 @@ | |||
| 30 | (require 'gnus-msg) | 30 | (require 'gnus-msg) |
| 31 | (require 'nndraft) | 31 | (require 'nndraft) |
| 32 | (require 'gnus-agent) | 32 | (require 'gnus-agent) |
| 33 | (eval-when-compile (require 'cl)) | ||
| 34 | 33 | ||
| 35 | ;;; Draft minor mode | 34 | ;;; Draft minor mode |
| 36 | 35 | ||
diff --git a/lisp/gnus/gnus-dup.el b/lisp/gnus/gnus-dup.el index d1335fc8c16..a03c6c140cd 100644 --- a/lisp/gnus/gnus-dup.el +++ b/lisp/gnus/gnus-dup.el | |||
| @@ -29,8 +29,6 @@ | |||
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | 31 | ||
| 32 | (eval-when-compile (require 'cl)) | ||
| 33 | |||
| 34 | (require 'gnus) | 32 | (require 'gnus) |
| 35 | (require 'gnus-art) | 33 | (require 'gnus-art) |
| 36 | 34 | ||
diff --git a/lisp/gnus/gnus-fun.el b/lisp/gnus/gnus-fun.el index 40c6d511115..f1fd51d5509 100644 --- a/lisp/gnus/gnus-fun.el +++ b/lisp/gnus/gnus-fun.el | |||
| @@ -24,9 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile | ||
| 28 | (require 'cl)) | ||
| 29 | |||
| 30 | (require 'mm-util) | 27 | (require 'mm-util) |
| 31 | (require 'gnus-util) | 28 | (require 'gnus-util) |
| 32 | (require 'gnus) | 29 | (require 'gnus) |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 4dd5fec6df3..10d203408a1 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -1901,7 +1901,7 @@ If FIRST-TOO, the current line is also eligible as a target." | |||
| 1901 | (insert-char gnus-process-mark 1 t))) | 1901 | (insert-char gnus-process-mark 1 t))) |
| 1902 | (unless no-advance | 1902 | (unless no-advance |
| 1903 | (gnus-group-next-group 1)) | 1903 | (gnus-group-next-group 1)) |
| 1904 | (decf n)) | 1904 | (cl-decf n)) |
| 1905 | (gnus-group-position-point) | 1905 | (gnus-group-position-point) |
| 1906 | n)) | 1906 | n)) |
| 1907 | 1907 | ||
| @@ -3924,7 +3924,7 @@ yanked) a list of yanked groups is returned." | |||
| 3924 | (interactive "p") | 3924 | (interactive "p") |
| 3925 | (setq arg (or arg 1)) | 3925 | (setq arg (or arg 1)) |
| 3926 | (let (info group prev out) | 3926 | (let (info group prev out) |
| 3927 | (while (>= (decf arg) 0) | 3927 | (while (>= (cl-decf arg) 0) |
| 3928 | (when (not (setq info (pop gnus-list-of-killed-groups))) | 3928 | (when (not (setq info (pop gnus-list-of-killed-groups))) |
| 3929 | (error "No more newsgroups to yank")) | 3929 | (error "No more newsgroups to yank")) |
| 3930 | (push (setq group (nth 1 info)) out) | 3930 | (push (setq group (nth 1 info)) out) |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 5d07a823f61..f097028cb3e 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -28,8 +28,6 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (eval-when-compile (require 'cl)) | ||
| 32 | |||
| 33 | (require 'gnus-art) | 31 | (require 'gnus-art) |
| 34 | (eval-when-compile (require 'mm-decode)) | 32 | (eval-when-compile (require 'mm-decode)) |
| 35 | 33 | ||
diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 48cffdb7388..3365c826e11 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | (require 'gnus-sum) | 40 | (require 'gnus-sum) |
| 41 | (require 'gnus-art) | 41 | (require 'gnus-art) |
| 42 | 42 | ||
| 43 | (eval-when-compile (require 'cl)) | 43 | (eval-when-compile (require 'cl-lib)) |
| 44 | 44 | ||
| 45 | (defun gnus-icalendar-find-if (pred seq) | 45 | (defun gnus-icalendar-find-if (pred seq) |
| 46 | (catch 'found | 46 | (catch 'found |
| @@ -238,7 +238,7 @@ | |||
| 238 | "\\\\n" "\n" (substring-no-properties value)))))) | 238 | "\\\\n" "\n" (substring-no-properties value)))))) |
| 239 | (accumulate-args | 239 | (accumulate-args |
| 240 | (mapping) | 240 | (mapping) |
| 241 | (destructuring-bind (slot . ical-property) mapping | 241 | (cl-destructuring-bind (slot . ical-property) mapping |
| 242 | (setq args (append (list | 242 | (setq args (append (list |
| 243 | (intern (concat ":" (symbol-name slot))) | 243 | (intern (concat ":" (symbol-name slot))) |
| 244 | (map-property ical-property)) | 244 | (map-property ical-property)) |
| @@ -443,7 +443,7 @@ Return nil for non-recurring EVENT." | |||
| 443 | ;; A 0:0 - A .:. -> A 0:0-.:. (default 1) | 443 | ;; A 0:0 - A .:. -> A 0:0-.:. (default 1) |
| 444 | ;; A 0:0 - A+n .:. -> A - A+n .:. | 444 | ;; A 0:0 - A+n .:. -> A - A+n .:. |
| 445 | ((and start-at-midnight | 445 | ((and start-at-midnight |
| 446 | (plusp start-end-date-diff)) (format "<%s>--<%s %s>" start-date end-date end-time)) | 446 | (cl-plusp start-end-date-diff)) (format "<%s>--<%s %s>" start-date end-date end-time)) |
| 447 | ;; default | 447 | ;; default |
| 448 | ;; A .:. - A .:. -> A .:.-.:. | 448 | ;; A .:. - A .:. -> A .:.-.:. |
| 449 | ;; A .:. - B .:. | 449 | ;; A .:. - B .:. |
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el index a17741b577c..5d5f9ebb670 100644 --- a/lisp/gnus/gnus-int.el +++ b/lisp/gnus/gnus-int.el | |||
| @@ -24,8 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | |||
| 29 | (require 'gnus) | 27 | (require 'gnus) |
| 30 | (require 'message) | 28 | (require 'message) |
| 31 | (require 'gnus-range) | 29 | (require 'gnus-range) |
diff --git a/lisp/gnus/gnus-kill.el b/lisp/gnus/gnus-kill.el index fd5935b87f8..60732c11d54 100644 --- a/lisp/gnus/gnus-kill.el +++ b/lisp/gnus/gnus-kill.el | |||
| @@ -25,8 +25,6 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile (require 'cl)) | ||
| 29 | |||
| 30 | (require 'gnus) | 28 | (require 'gnus) |
| 31 | (require 'gnus-art) | 29 | (require 'gnus-art) |
| 32 | (require 'gnus-range) | 30 | (require 'gnus-range) |
diff --git a/lisp/gnus/gnus-logic.el b/lisp/gnus/gnus-logic.el index e0dba06d397..2076d8aebe7 100644 --- a/lisp/gnus/gnus-logic.el +++ b/lisp/gnus/gnus-logic.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-score) | 30 | (require 'gnus-score) |
diff --git a/lisp/gnus/gnus-ml.el b/lisp/gnus/gnus-ml.el index f78efdee65b..1c67f5ffba0 100644 --- a/lisp/gnus/gnus-ml.el +++ b/lisp/gnus/gnus-ml.el | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-msg) | 30 | (require 'gnus-msg) |
| 31 | (eval-when-compile (require 'cl)) | ||
| 32 | 31 | ||
| 33 | ;;; Mailing list minor mode | 32 | ;;; Mailing list minor mode |
| 34 | 33 | ||
diff --git a/lisp/gnus/gnus-mlspl.el b/lisp/gnus/gnus-mlspl.el index eeb65e67e88..fb45007c126 100644 --- a/lisp/gnus/gnus-mlspl.el +++ b/lisp/gnus/gnus-mlspl.el | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | (require 'gnus) | 27 | (require 'gnus) |
| 29 | (require 'gnus-sum) | 28 | (require 'gnus-sum) |
| 30 | (require 'gnus-group) | 29 | (require 'gnus-group) |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index effbe2cc5f4..04661ec9481 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile (require 'cl)) | 28 | (eval-when-compile (require 'cl-lib)) |
| 29 | 29 | ||
| 30 | (require 'gnus) | 30 | (require 'gnus) |
| 31 | (require 'message) | 31 | (require 'message) |
| @@ -1113,11 +1113,11 @@ If SILENT, don't prompt the user." | |||
| 1113 | ((and (eq gnus-post-method 'current) | 1113 | ((and (eq gnus-post-method 'current) |
| 1114 | (not (memq (car group-method) gnus-discouraged-post-methods)) | 1114 | (not (memq (car group-method) gnus-discouraged-post-methods)) |
| 1115 | (gnus-get-function group-method 'request-post t)) | 1115 | (gnus-get-function group-method 'request-post t)) |
| 1116 | (assert (not arg)) | 1116 | (cl-assert (not arg)) |
| 1117 | group-method) | 1117 | group-method) |
| 1118 | ;; Use gnus-post-method. | 1118 | ;; Use gnus-post-method. |
| 1119 | ((listp gnus-post-method) ;A method... | 1119 | ((listp gnus-post-method) ;A method... |
| 1120 | (assert (not (listp (car gnus-post-method)))) ;... not a list of methods. | 1120 | (cl-assert (not (listp (car gnus-post-method)))) ;... not a list of methods. |
| 1121 | gnus-post-method) | 1121 | gnus-post-method) |
| 1122 | ;; Use the normal select method (nil or native). | 1122 | ;; Use the normal select method (nil or native). |
| 1123 | (t gnus-select-method)))) | 1123 | (t gnus-select-method)))) |
diff --git a/lisp/gnus/gnus-picon.el b/lisp/gnus/gnus-picon.el index 8f3efa41675..b6bb5c9c2b7 100644 --- a/lisp/gnus/gnus-picon.el +++ b/lisp/gnus/gnus-picon.el | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | ;; | 37 | ;; |
| 38 | ;;; Code: | 38 | ;;; Code: |
| 39 | 39 | ||
| 40 | (eval-when-compile (require 'cl)) | 40 | (eval-when-compile (require 'cl-lib)) |
| 41 | 41 | ||
| 42 | (require 'gnus) | 42 | (require 'gnus) |
| 43 | (require 'gnus-art) | 43 | (require 'gnus-art) |
| @@ -211,7 +211,7 @@ replacement is added." | |||
| 211 | 211 | ||
| 212 | (gnus-article-goto-header header) | 212 | (gnus-article-goto-header header) |
| 213 | (mail-header-narrow-to-field) | 213 | (mail-header-narrow-to-field) |
| 214 | (case gnus-picon-style | 214 | (cl-case gnus-picon-style |
| 215 | (right | 215 | (right |
| 216 | (when (= (length addresses) 1) | 216 | (when (= (length addresses) 1) |
| 217 | (setq len (apply '+ (mapcar (lambda (x) | 217 | (setq len (apply '+ (mapcar (lambda (x) |
diff --git a/lisp/gnus/gnus-range.el b/lisp/gnus/gnus-range.el index 32433816e4c..dd3793593e0 100644 --- a/lisp/gnus/gnus-range.el +++ b/lisp/gnus/gnus-range.el | |||
| @@ -24,8 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | |||
| 29 | ;;; List and range functions | 27 | ;;; List and range functions |
| 30 | 28 | ||
| 31 | (defsubst gnus-range-normalize (range) | 29 | (defsubst gnus-range-normalize (range) |
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index 7ae81b02a2e..643b8f11654 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el | |||
| @@ -76,7 +76,7 @@ | |||
| 76 | 76 | ||
| 77 | ;;; Code: | 77 | ;;; Code: |
| 78 | 78 | ||
| 79 | (eval-when-compile (require 'cl)) | 79 | (eval-when-compile (require 'cl-lib)) |
| 80 | (eval-when-compile (require 'subr-x)) | 80 | (eval-when-compile (require 'subr-x)) |
| 81 | 81 | ||
| 82 | (require 'gnus) | 82 | (require 'gnus) |
| @@ -373,7 +373,7 @@ This is not required after changing `gnus-registry-cache-file'." | |||
| 373 | (grouphashtb (registry-lookup-secondary db 'group)) | 373 | (grouphashtb (registry-lookup-secondary db 'group)) |
| 374 | (old-size (registry-size db))) | 374 | (old-size (registry-size db))) |
| 375 | (registry-reindex db) | 375 | (registry-reindex db) |
| 376 | (loop for k being the hash-keys of grouphashtb | 376 | (cl-loop for k being the hash-keys of grouphashtb |
| 377 | using (hash-values v) | 377 | using (hash-values v) |
| 378 | when (gnus-registry-ignore-group-p k) | 378 | when (gnus-registry-ignore-group-p k) |
| 379 | do (registry-delete db v nil)) | 379 | do (registry-delete db v nil)) |
| @@ -444,14 +444,14 @@ This is not required after changing `gnus-registry-cache-file'." | |||
| 444 | (sender ,sender) | 444 | (sender ,sender) |
| 445 | (recipient ,@recipients) | 445 | (recipient ,@recipients) |
| 446 | (subject ,subject))) | 446 | (subject ,subject))) |
| 447 | (when (second kv) | 447 | (when (cadr kv) |
| 448 | (let ((new (or (assq (first kv) entry) | 448 | (let ((new (or (assq (car kv) entry) |
| 449 | (list (first kv))))) | 449 | (list (car kv))))) |
| 450 | (dolist (toadd (cdr kv)) | 450 | (dolist (toadd (cdr kv)) |
| 451 | (unless (member toadd new) | 451 | (unless (member toadd new) |
| 452 | (setq new (append new (list toadd))))) | 452 | (setq new (append new (list toadd))))) |
| 453 | (setq entry (cons new | 453 | (setq entry (cons new |
| 454 | (assq-delete-all (first kv) entry)))))) | 454 | (assq-delete-all (car kv) entry)))))) |
| 455 | (gnus-message 10 "Gnus registry: new entry for %s is %S" | 455 | (gnus-message 10 "Gnus registry: new entry for %s is %S" |
| 456 | id | 456 | id |
| 457 | entry) | 457 | entry) |
| @@ -505,7 +505,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." | |||
| 505 | :subject subject | 505 | :subject subject |
| 506 | :log-agent "Gnus registry fancy splitting with parent"))) | 506 | :log-agent "Gnus registry fancy splitting with parent"))) |
| 507 | 507 | ||
| 508 | (defun* gnus-registry--split-fancy-with-parent-internal | 508 | (cl-defun gnus-registry--split-fancy-with-parent-internal |
| 509 | (&rest spec | 509 | (&rest spec |
| 510 | &key references refstr sender subject recipients log-agent | 510 | &key references refstr sender subject recipients log-agent |
| 511 | &allow-other-keys) | 511 | &allow-other-keys) |
| @@ -525,7 +525,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." | |||
| 525 | log-agent refstr) | 525 | log-agent refstr) |
| 526 | (dolist (reference (nreverse references)) | 526 | (dolist (reference (nreverse references)) |
| 527 | (gnus-message 9 "%s is looking up %s" log-agent reference) | 527 | (gnus-message 9 "%s is looking up %s" log-agent reference) |
| 528 | (loop for group in (gnus-registry-get-id-key reference 'group) | 528 | (cl-loop for group in (gnus-registry-get-id-key reference 'group) |
| 529 | when (gnus-registry-follow-group-p group) | 529 | when (gnus-registry-follow-group-p group) |
| 530 | do | 530 | do |
| 531 | (progn | 531 | (progn |
| @@ -548,7 +548,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." | |||
| 548 | (gnus-registry-get-id-key reference 'group)) | 548 | (gnus-registry-get-id-key reference 'group)) |
| 549 | (registry-lookup-secondary-value db 'subject subject))))) | 549 | (registry-lookup-secondary-value db 'subject subject))))) |
| 550 | (setq found | 550 | (setq found |
| 551 | (loop for group in groups | 551 | (cl-loop for group in groups |
| 552 | when (gnus-registry-follow-group-p group) | 552 | when (gnus-registry-follow-group-p group) |
| 553 | do (gnus-message | 553 | do (gnus-message |
| 554 | ;; warn more if gnus-registry-track-extra | 554 | ;; warn more if gnus-registry-track-extra |
| @@ -575,7 +575,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." | |||
| 575 | (gnus-registry-get-id-key reference 'group)) | 575 | (gnus-registry-get-id-key reference 'group)) |
| 576 | (registry-lookup-secondary-value db 'sender sender))))) | 576 | (registry-lookup-secondary-value db 'sender sender))))) |
| 577 | (setq found | 577 | (setq found |
| 578 | (loop for group in groups | 578 | (cl-loop for group in groups |
| 579 | when (gnus-registry-follow-group-p group) | 579 | when (gnus-registry-follow-group-p group) |
| 580 | do (gnus-message | 580 | do (gnus-message |
| 581 | ;; warn more if gnus-registry-track-extra | 581 | ;; warn more if gnus-registry-track-extra |
| @@ -605,7 +605,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." | |||
| 605 | (registry-lookup-secondary-value | 605 | (registry-lookup-secondary-value |
| 606 | db 'recipient recp))))) | 606 | db 'recipient recp))))) |
| 607 | (setq found | 607 | (setq found |
| 608 | (loop for group in groups | 608 | (cl-loop for group in groups |
| 609 | when (gnus-registry-follow-group-p group) | 609 | when (gnus-registry-follow-group-p group) |
| 610 | do (gnus-message | 610 | do (gnus-message |
| 611 | ;; warn more if gnus-registry-track-extra | 611 | ;; warn more if gnus-registry-track-extra |
| @@ -641,7 +641,7 @@ possible. Uses `gnus-registry-split-strategy'." | |||
| 641 | out chosen) | 641 | out chosen) |
| 642 | ;; the strategy can be nil, in which case chosen is nil | 642 | ;; the strategy can be nil, in which case chosen is nil |
| 643 | (setq chosen | 643 | (setq chosen |
| 644 | (case gnus-registry-split-strategy | 644 | (cl-case gnus-registry-split-strategy |
| 645 | ;; default, take only one-element lists into chosen | 645 | ;; default, take only one-element lists into chosen |
| 646 | ((nil) | 646 | ((nil) |
| 647 | (and (= (length groups) 1) | 647 | (and (= (length groups) 1) |
| @@ -693,7 +693,7 @@ possible. Uses `gnus-registry-split-strategy'." | |||
| 693 | 10 | 693 | 10 |
| 694 | "%s: stripped group %s to %s" | 694 | "%s: stripped group %s to %s" |
| 695 | log-agent group short-name)) | 695 | log-agent group short-name)) |
| 696 | (pushnew short-name out :test #'equal)) | 696 | (cl-pushnew short-name out :test #'equal)) |
| 697 | ;; else... | 697 | ;; else... |
| 698 | (gnus-message | 698 | (gnus-message |
| 699 | 7 | 699 | 7 |
| @@ -1086,7 +1086,7 @@ only the last one's marks are returned." | |||
| 1086 | (expected (length old)) | 1086 | (expected (length old)) |
| 1087 | entry) | 1087 | entry) |
| 1088 | (while (car-safe old) | 1088 | (while (car-safe old) |
| 1089 | (incf count) | 1089 | (cl-incf count) |
| 1090 | ;; don't use progress reporters for backwards compatibility | 1090 | ;; don't use progress reporters for backwards compatibility |
| 1091 | (when (and (< 0 expected) | 1091 | (when (and (< 0 expected) |
| 1092 | (= 0 (mod count 100))) | 1092 | (= 0 (mod count 100))) |
| @@ -1096,7 +1096,7 @@ only the last one's marks are returned." | |||
| 1096 | old (cdr-safe old)) | 1096 | old (cdr-safe old)) |
| 1097 | (let* ((id (car-safe entry)) | 1097 | (let* ((id (car-safe entry)) |
| 1098 | (rest (cdr-safe entry)) | 1098 | (rest (cdr-safe entry)) |
| 1099 | (groups (loop for p in rest | 1099 | (groups (cl-loop for p in rest |
| 1100 | when (stringp p) | 1100 | when (stringp p) |
| 1101 | collect p)) | 1101 | collect p)) |
| 1102 | extra-cell key val) | 1102 | extra-cell key val) |
| @@ -1232,7 +1232,7 @@ from your existing entries." | |||
| 1232 | (when extra | 1232 | (when extra |
| 1233 | (let ((db gnus-registry-db)) | 1233 | (let ((db gnus-registry-db)) |
| 1234 | (registry-reindex db) | 1234 | (registry-reindex db) |
| 1235 | (loop for k being the hash-keys of (oref db data) | 1235 | (cl-loop for k being the hash-keys of (oref db data) |
| 1236 | using (hash-value v) | 1236 | using (hash-value v) |
| 1237 | do (let ((newv (delq nil (mapcar #'(lambda (entry) | 1237 | do (let ((newv (delq nil (mapcar #'(lambda (entry) |
| 1238 | (unless (member (car entry) extra) | 1238 | (unless (member (car entry) extra) |
diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el index a80bb5b7037..aff841760ae 100644 --- a/lisp/gnus/gnus-salt.el +++ b/lisp/gnus/gnus-salt.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-sum) | 30 | (require 'gnus-sum) |
| @@ -131,7 +131,7 @@ It accepts the same format specs that `gnus-summary-line-format' does." | |||
| 131 | (defvar gnus-pick-line-number 1) | 131 | (defvar gnus-pick-line-number 1) |
| 132 | (defun gnus-pick-line-number () | 132 | (defun gnus-pick-line-number () |
| 133 | "Return the current line number." | 133 | "Return the current line number." |
| 134 | (incf gnus-pick-line-number)) | 134 | (cl-incf gnus-pick-line-number)) |
| 135 | 135 | ||
| 136 | (defun gnus-pick-start-reading (&optional catch-up) | 136 | (defun gnus-pick-start-reading (&optional catch-up) |
| 137 | "Start reading the picked articles. | 137 | "Start reading the picked articles. |
| @@ -552,7 +552,7 @@ Two predefined functions are available: | |||
| 552 | (not (one-window-p))) | 552 | (not (one-window-p))) |
| 553 | (let ((windows 0) | 553 | (let ((windows 0) |
| 554 | tot-win-height) | 554 | tot-win-height) |
| 555 | (walk-windows (lambda (_window) (incf windows))) | 555 | (walk-windows (lambda (_window) (cl-incf windows))) |
| 556 | (setq tot-win-height | 556 | (setq tot-win-height |
| 557 | (- (frame-height) | 557 | (- (frame-height) |
| 558 | (* window-min-height (1- windows)) | 558 | (* window-min-height (1- windows)) |
| @@ -734,7 +734,7 @@ it in the environment specified by BINDINGS." | |||
| 734 | (insert (make-string len ? ))))) | 734 | (insert (make-string len ? ))))) |
| 735 | 735 | ||
| 736 | (defsubst gnus-tree-forward-line (n) | 736 | (defsubst gnus-tree-forward-line (n) |
| 737 | (while (>= (decf n) 0) | 737 | (while (>= (cl-decf n) 0) |
| 738 | (unless (zerop (forward-line 1)) | 738 | (unless (zerop (forward-line 1)) |
| 739 | (end-of-line) | 739 | (end-of-line) |
| 740 | (insert "\n"))) | 740 | (insert "\n"))) |
| @@ -784,7 +784,7 @@ it in the environment specified by BINDINGS." | |||
| 784 | (progn | 784 | (progn |
| 785 | (goto-char (point-min)) | 785 | (goto-char (point-min)) |
| 786 | (end-of-line) | 786 | (end-of-line) |
| 787 | (incf gnus-tmp-indent)) | 787 | (cl-incf gnus-tmp-indent)) |
| 788 | ;; Recurse downwards in all children of this article. | 788 | ;; Recurse downwards in all children of this article. |
| 789 | (while thread | 789 | (while thread |
| 790 | (gnus-generate-vertical-tree | 790 | (gnus-generate-vertical-tree |
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el index ad11ff4a5c5..4192381700d 100644 --- a/lisp/gnus/gnus-score.el +++ b/lisp/gnus/gnus-score.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile (require 'cl)) | 28 | (eval-when-compile (require 'cl-lib)) |
| 29 | 29 | ||
| 30 | (require 'gnus) | 30 | (require 'gnus) |
| 31 | (require 'gnus-sum) | 31 | (require 'gnus-sum) |
| @@ -3077,7 +3077,7 @@ If ADAPT, return the home adaptive file instead." | |||
| 3077 | (setq score (or (nth 1 kill) | 3077 | (setq score (or (nth 1 kill) |
| 3078 | gnus-score-interactive-default-score) | 3078 | gnus-score-interactive-default-score) |
| 3079 | n times) | 3079 | n times) |
| 3080 | (while (natnump (decf n)) | 3080 | (while (natnump (cl-decf n)) |
| 3081 | (setq score (funcall gnus-decay-score-function score))) | 3081 | (setq score (funcall gnus-decay-score-function score))) |
| 3082 | (setcdr kill (cons score | 3082 | (setcdr kill (cons score |
| 3083 | (cdr (cdr kill))))))))) | 3083 | (cdr (cdr kill))))))))) |
diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el index 082ebf15529..379a7f2b5c3 100644 --- a/lisp/gnus/gnus-spec.el +++ b/lisp/gnus/gnus-spec.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | (defvar gnus-newsrc-file-version) | 28 | (defvar gnus-newsrc-file-version) |
| 29 | 29 | ||
| 30 | (require 'gnus) | 30 | (require 'gnus) |
| @@ -285,15 +285,15 @@ Return a list of updated types." | |||
| 285 | ;; Find the start position. | 285 | ;; Find the start position. |
| 286 | (while (and (< seek length) | 286 | (while (and (< seek length) |
| 287 | (< wseek start)) | 287 | (< wseek start)) |
| 288 | (incf wseek (char-width (aref string seek))) | 288 | (cl-incf wseek (char-width (aref string seek))) |
| 289 | (incf seek)) | 289 | (cl-incf seek)) |
| 290 | (setq wstart seek) | 290 | (setq wstart seek) |
| 291 | ;; Find the end position. | 291 | ;; Find the end position. |
| 292 | (while (and (<= seek length) | 292 | (while (and (<= seek length) |
| 293 | (or (not end) | 293 | (or (not end) |
| 294 | (<= wseek end))) | 294 | (<= wseek end))) |
| 295 | (incf wseek (char-width (aref string seek))) | 295 | (cl-incf wseek (char-width (aref string seek))) |
| 296 | (incf seek)) | 296 | (cl-incf seek)) |
| 297 | (setq wend seek) | 297 | (setq wend seek) |
| 298 | (substring string wstart (1- wend)))) | 298 | (substring string wstart (1- wend)))) |
| 299 | 299 | ||
diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el index 6c6c3b7e30e..94fd21b9204 100644 --- a/lisp/gnus/gnus-srvr.el +++ b/lisp/gnus/gnus-srvr.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-start) | 30 | (require 'gnus-start) |
| @@ -969,7 +969,7 @@ how new groups will be entered into the group buffer." | |||
| 969 | (not (eobp)) | 969 | (not (eobp)) |
| 970 | (gnus-browse-unsubscribe-group) | 970 | (gnus-browse-unsubscribe-group) |
| 971 | (zerop (gnus-browse-next-group ward))) | 971 | (zerop (gnus-browse-next-group ward))) |
| 972 | (decf arg)) | 972 | (cl-decf arg)) |
| 973 | (gnus-group-position-point) | 973 | (gnus-group-position-point) |
| 974 | (when (/= 0 arg) | 974 | (when (/= 0 arg) |
| 975 | (gnus-message 7 "No more newsgroups")) | 975 | (gnus-message 7 "No more newsgroups")) |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 2a7a303408e..bae01aca87d 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -36,8 +36,7 @@ | |||
| 36 | (autoload 'gnus-agent-save-local "gnus-agent") | 36 | (autoload 'gnus-agent-save-local "gnus-agent") |
| 37 | (autoload 'gnus-agent-possibly-alter-active "gnus-agent") | 37 | (autoload 'gnus-agent-possibly-alter-active "gnus-agent") |
| 38 | 38 | ||
| 39 | (eval-when-compile | 39 | (eval-when-compile (require 'cl-lib)) |
| 40 | (require 'cl)) | ||
| 41 | 40 | ||
| 42 | (defvar gnus-agent-covered-methods) | 41 | (defvar gnus-agent-covered-methods) |
| 43 | (defvar gnus-agent-file-loading-local) | 42 | (defvar gnus-agent-file-loading-local) |
| @@ -1231,14 +1230,14 @@ for new groups, and subscribe the new groups as zombies." | |||
| 1231 | (let ((do-sub (gnus-matches-options-n group))) | 1230 | (let ((do-sub (gnus-matches-options-n group))) |
| 1232 | (cond | 1231 | (cond |
| 1233 | ((eq do-sub 'subscribe) | 1232 | ((eq do-sub 'subscribe) |
| 1234 | (incf groups) | 1233 | (cl-incf groups) |
| 1235 | (gnus-sethash group group gnus-killed-hashtb) | 1234 | (gnus-sethash group group gnus-killed-hashtb) |
| 1236 | (gnus-call-subscribe-functions | 1235 | (gnus-call-subscribe-functions |
| 1237 | gnus-subscribe-options-newsgroup-method group)) | 1236 | gnus-subscribe-options-newsgroup-method group)) |
| 1238 | ((eq do-sub 'ignore) | 1237 | ((eq do-sub 'ignore) |
| 1239 | nil) | 1238 | nil) |
| 1240 | (t | 1239 | (t |
| 1241 | (incf groups) | 1240 | (cl-incf groups) |
| 1242 | (gnus-sethash group group gnus-killed-hashtb) | 1241 | (gnus-sethash group group gnus-killed-hashtb) |
| 1243 | (if gnus-subscribe-hierarchical-interactive | 1242 | (if gnus-subscribe-hierarchical-interactive |
| 1244 | (push group new-newsgroups) | 1243 | (push group new-newsgroups) |
| @@ -1700,7 +1699,7 @@ backend check whether the group actually exists." | |||
| 1700 | ;; aren't equal (and that need extension; i.e., they are async). | 1699 | ;; aren't equal (and that need extension; i.e., they are async). |
| 1701 | (let ((methods nil)) | 1700 | (let ((methods nil)) |
| 1702 | (dolist (elem type-cache) | 1701 | (dolist (elem type-cache) |
| 1703 | (destructuring-bind (method method-type infos dummy) elem | 1702 | (cl-destructuring-bind (method method-type infos dummy) elem |
| 1704 | (let ((gnus-opened-servers methods)) | 1703 | (let ((gnus-opened-servers methods)) |
| 1705 | (when (and (gnus-similar-server-opened method) | 1704 | (when (and (gnus-similar-server-opened method) |
| 1706 | (gnus-check-backend-function | 1705 | (gnus-check-backend-function |
| @@ -1723,7 +1722,7 @@ backend check whether the group actually exists." | |||
| 1723 | 1722 | ||
| 1724 | ;; Clear out all the early methods. | 1723 | ;; Clear out all the early methods. |
| 1725 | (dolist (elem type-cache) | 1724 | (dolist (elem type-cache) |
| 1726 | (destructuring-bind (method method-type infos dummy) elem | 1725 | (cl-destructuring-bind (method method-type infos dummy) elem |
| 1727 | (when (and method | 1726 | (when (and method |
| 1728 | infos | 1727 | infos |
| 1729 | (gnus-check-backend-function | 1728 | (gnus-check-backend-function |
| @@ -1740,7 +1739,7 @@ backend check whether the group actually exists." | |||
| 1740 | (let ((done-methods nil) | 1739 | (let ((done-methods nil) |
| 1741 | sanity-spec) | 1740 | sanity-spec) |
| 1742 | (dolist (elem type-cache) | 1741 | (dolist (elem type-cache) |
| 1743 | (destructuring-bind (method method-type infos dummy) elem | 1742 | (cl-destructuring-bind (method method-type infos dummy) elem |
| 1744 | (setq sanity-spec (list (car method) (cadr method))) | 1743 | (setq sanity-spec (list (car method) (cadr method))) |
| 1745 | (when (and method infos | 1744 | (when (and method infos |
| 1746 | (not (gnus-method-denied-p method))) | 1745 | (not (gnus-method-denied-p method))) |
| @@ -1771,7 +1770,7 @@ backend check whether the group actually exists." | |||
| 1771 | 1770 | ||
| 1772 | ;; Do the rest of the retrieval. | 1771 | ;; Do the rest of the retrieval. |
| 1773 | (dolist (elem type-cache) | 1772 | (dolist (elem type-cache) |
| 1774 | (destructuring-bind (method method-type infos early-data) elem | 1773 | (cl-destructuring-bind (method method-type infos early-data) elem |
| 1775 | (when (and method infos | 1774 | (when (and method infos |
| 1776 | (not (gnus-method-denied-p method))) | 1775 | (not (gnus-method-denied-p method))) |
| 1777 | (let ((updatep (gnus-check-backend-function | 1776 | (let ((updatep (gnus-check-backend-function |
| @@ -1795,11 +1794,11 @@ backend check whether the group actually exists." | |||
| 1795 | ;; are in the secondary select list. | 1794 | ;; are in the secondary select list. |
| 1796 | ((eq type 'secondary) | 1795 | ((eq type 'secondary) |
| 1797 | (let ((i 2)) | 1796 | (let ((i 2)) |
| 1798 | (block nil | 1797 | (cl-block nil |
| 1799 | (dolist (smethod gnus-secondary-select-methods) | 1798 | (cl-dolist (smethod gnus-secondary-select-methods) |
| 1800 | (when (equal method smethod) | 1799 | (when (equal method smethod) |
| 1801 | (return i)) | 1800 | (cl-return i)) |
| 1802 | (incf i)) | 1801 | (cl-incf i)) |
| 1803 | i))) | 1802 | i))) |
| 1804 | ;; Just say that all foreign groups have the same rank. | 1803 | ;; Just say that all foreign groups have the same rank. |
| 1805 | (t | 1804 | (t |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index a5756b1a202..4d95a6442d3 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -3809,7 +3809,7 @@ the thread are to be displayed." | |||
| 3809 | 1) | 3809 | 1) |
| 3810 | (t 0)))) | 3810 | (t 0)))) |
| 3811 | (when (and level (zerop level) gnus-tmp-new-adopts) | 3811 | (when (and level (zerop level) gnus-tmp-new-adopts) |
| 3812 | (incf number | 3812 | (cl-incf number |
| 3813 | (apply '+ (mapcar | 3813 | (apply '+ (mapcar |
| 3814 | 'gnus-summary-number-of-articles-in-thread | 3814 | 'gnus-summary-number-of-articles-in-thread |
| 3815 | gnus-tmp-new-adopts)))) | 3815 | gnus-tmp-new-adopts)))) |
| @@ -4411,7 +4411,7 @@ Returns HEADER if it was entered in the DEPENDENCIES. Returns nil otherwise." | |||
| 4411 | (setq end (1+ (point))) | 4411 | (setq end (1+ (point))) |
| 4412 | (when (search-backward "<" nil t) | 4412 | (when (search-backward "<" nil t) |
| 4413 | (setq new-child (buffer-substring (point) end)) | 4413 | (setq new-child (buffer-substring (point) end)) |
| 4414 | (push (list (incf generation) | 4414 | (push (list (cl-incf generation) |
| 4415 | child (setq child new-child) | 4415 | child (setq child new-child) |
| 4416 | subject date) | 4416 | subject date) |
| 4417 | relations))) | 4417 | relations))) |
| @@ -4432,7 +4432,7 @@ Returns HEADER if it was entered in the DEPENDENCIES. Returns nil otherwise." | |||
| 4432 | (push gnus-reffed-article-number gnus-newsgroup-sparse) | 4432 | (push gnus-reffed-article-number gnus-newsgroup-sparse) |
| 4433 | (push (cons gnus-reffed-article-number gnus-sparse-mark) | 4433 | (push (cons gnus-reffed-article-number gnus-sparse-mark) |
| 4434 | gnus-newsgroup-reads) | 4434 | gnus-newsgroup-reads) |
| 4435 | (decf gnus-reffed-article-number))) | 4435 | (cl-decf gnus-reffed-article-number))) |
| 4436 | (gnus-message 7 "Making sparse threads...done"))) | 4436 | (gnus-message 7 "Making sparse threads...done"))) |
| 4437 | 4437 | ||
| 4438 | (defun gnus-build-old-threads () | 4438 | (defun gnus-build-old-threads () |
| @@ -4725,7 +4725,7 @@ If LINE, insert the rebuilt thread starting on line LINE." | |||
| 4725 | (setq parent (gnus-parent-id references))) | 4725 | (setq parent (gnus-parent-id references))) |
| 4726 | (car (gnus-id-to-thread parent)) | 4726 | (car (gnus-id-to-thread parent)) |
| 4727 | nil)) | 4727 | nil)) |
| 4728 | (decf generation)) | 4728 | (cl-decf generation)) |
| 4729 | (and (not (eq headers in-headers)) | 4729 | (and (not (eq headers in-headers)) |
| 4730 | headers))) | 4730 | headers))) |
| 4731 | 4731 | ||
| @@ -5469,7 +5469,7 @@ or a straight list of headers." | |||
| 5469 | (nthcdr 1 thread)) | 5469 | (nthcdr 1 thread)) |
| 5470 | stack)) | 5470 | stack)) |
| 5471 | (push (if (nth 1 thread) 1 0) tree-stack) | 5471 | (push (if (nth 1 thread) 1 0) tree-stack) |
| 5472 | (incf gnus-tmp-level) | 5472 | (cl-incf gnus-tmp-level) |
| 5473 | (setq threads (if thread-end nil (cdar thread))) | 5473 | (setq threads (if thread-end nil (cdar thread))) |
| 5474 | (if gnus-summary-display-while-building | 5474 | (if gnus-summary-display-while-building |
| 5475 | (if building-count | 5475 | (if building-count |
| @@ -6117,7 +6117,7 @@ If SELECT-ARTICLES, only select those articles from GROUP." | |||
| 6117 | (let ((i 5)) | 6117 | (let ((i 5)) |
| 6118 | (while (and (> i 2) | 6118 | (while (and (> i 2) |
| 6119 | (not (nth i info))) | 6119 | (not (nth i info))) |
| 6120 | (when (nthcdr (decf i) info) | 6120 | (when (nthcdr (cl-decf i) info) |
| 6121 | (setcdr (nthcdr i info) nil))))))) | 6121 | (setcdr (nthcdr i info) nil))))))) |
| 6122 | 6122 | ||
| 6123 | (defun gnus-set-mode-line (where) | 6123 | (defun gnus-set-mode-line (where) |
| @@ -6657,7 +6657,7 @@ current article will be taken into consideration." | |||
| 6657 | (if backward | 6657 | (if backward |
| 6658 | (gnus-summary-find-prev nil article) | 6658 | (gnus-summary-find-prev nil article) |
| 6659 | (gnus-summary-find-next nil article))) | 6659 | (gnus-summary-find-next nil article))) |
| 6660 | (decf n))) | 6660 | (cl-decf n))) |
| 6661 | (nreverse articles))) | 6661 | (nreverse articles))) |
| 6662 | ((and (and transient-mark-mode mark-active) (mark)) | 6662 | ((and (and transient-mark-mode mark-active) (mark)) |
| 6663 | (message "region active") | 6663 | (message "region active") |
| @@ -8761,7 +8761,7 @@ If ALL, mark even excluded ticked and dormants as read." | |||
| 8761 | (let ((num 0)) | 8761 | (let ((num 0)) |
| 8762 | (while threads | 8762 | (while threads |
| 8763 | (when (memq (mail-header-number (caar threads)) gnus-newsgroup-limit) | 8763 | (when (memq (mail-header-number (caar threads)) gnus-newsgroup-limit) |
| 8764 | (incf num)) | 8764 | (cl-incf num)) |
| 8765 | (pop threads)) | 8765 | (pop threads)) |
| 8766 | (< num 2))) | 8766 | (< num 2))) |
| 8767 | 8767 | ||
| @@ -8893,7 +8893,7 @@ fetch-old-headers verbiage, and so on." | |||
| 8893 | gnus-summary-expunge-below)) | 8893 | gnus-summary-expunge-below)) |
| 8894 | ;; We increase the expunge-tally here, but that has | 8894 | ;; We increase the expunge-tally here, but that has |
| 8895 | ;; nothing to do with the limits, really. | 8895 | ;; nothing to do with the limits, really. |
| 8896 | (incf gnus-newsgroup-expunged-tally) | 8896 | (cl-incf gnus-newsgroup-expunged-tally) |
| 8897 | ;; We also mark as read here, if that's wanted. | 8897 | ;; We also mark as read here, if that's wanted. |
| 8898 | (when (and gnus-summary-mark-below | 8898 | (when (and gnus-summary-mark-below |
| 8899 | (< score gnus-summary-mark-below)) | 8899 | (< score gnus-summary-mark-below)) |
| @@ -8918,7 +8918,7 @@ fetch-old-headers verbiage, and so on." | |||
| 8918 | (defun gnus-expunge-thread (thread) | 8918 | (defun gnus-expunge-thread (thread) |
| 8919 | "Mark all articles in THREAD as read." | 8919 | "Mark all articles in THREAD as read." |
| 8920 | (let* ((number (mail-header-number (car thread)))) | 8920 | (let* ((number (mail-header-number (car thread)))) |
| 8921 | (incf gnus-newsgroup-expunged-tally) | 8921 | (cl-incf gnus-newsgroup-expunged-tally) |
| 8922 | ;; We also mark as read here, if that's wanted. | 8922 | ;; We also mark as read here, if that's wanted. |
| 8923 | (setq gnus-newsgroup-unreads | 8923 | (setq gnus-newsgroup-unreads |
| 8924 | (delq number gnus-newsgroup-unreads)) | 8924 | (delq number gnus-newsgroup-unreads)) |
| @@ -8970,7 +8970,7 @@ The difference between N and the number of articles fetched is returned." | |||
| 8970 | (gnus-message 1 "No references in article %d" | 8970 | (gnus-message 1 "No references in article %d" |
| 8971 | (gnus-summary-article-number)) | 8971 | (gnus-summary-article-number)) |
| 8972 | (setq error t)) | 8972 | (setq error t)) |
| 8973 | (decf n)) | 8973 | (cl-decf n)) |
| 8974 | (gnus-summary-position-point) | 8974 | (gnus-summary-position-point) |
| 8975 | n)) | 8975 | n)) |
| 8976 | 8976 | ||
| @@ -8986,7 +8986,7 @@ Return the number of articles fetched." | |||
| 8986 | (error "No References in the current article") | 8986 | (error "No References in the current article") |
| 8987 | ;; For each Message-ID in the References header... | 8987 | ;; For each Message-ID in the References header... |
| 8988 | (while (string-match "<[^>]*>" ref) | 8988 | (while (string-match "<[^>]*>" ref) |
| 8989 | (incf n) | 8989 | (cl-incf n) |
| 8990 | ;; ... fetch that article. | 8990 | ;; ... fetch that article. |
| 8991 | (gnus-summary-refer-article | 8991 | (gnus-summary-refer-article |
| 8992 | (prog1 (match-string 0 ref) | 8992 | (prog1 (match-string 0 ref) |
| @@ -11148,7 +11148,7 @@ If NO-EXPIRE, auto-expiry will be inhibited." | |||
| 11148 | (re-search-backward "[\n\r]" (point-at-bol) 'move-to-limit) | 11148 | (re-search-backward "[\n\r]" (point-at-bol) 'move-to-limit) |
| 11149 | (when forward | 11149 | (when forward |
| 11150 | (when (looking-at "\r") | 11150 | (when (looking-at "\r") |
| 11151 | (incf forward)) | 11151 | (cl-incf forward)) |
| 11152 | (when (<= (+ forward (point)) (point-max)) | 11152 | (when (<= (+ forward (point)) (point-max)) |
| 11153 | ;; Go to the right position on the line. | 11153 | ;; Go to the right position on the line. |
| 11154 | (goto-char (+ forward (point))) | 11154 | (goto-char (+ forward (point))) |
| @@ -11728,7 +11728,7 @@ will not be hidden." | |||
| 11728 | (let ((end nil) | 11728 | (let ((end nil) |
| 11729 | (count 0)) | 11729 | (count 0)) |
| 11730 | (while (not end) | 11730 | (while (not end) |
| 11731 | (incf count) | 11731 | (cl-incf count) |
| 11732 | (when (zerop (mod count 1000)) | 11732 | (when (zerop (mod count 1000)) |
| 11733 | (message "Hiding all threads... %d" count)) | 11733 | (message "Hiding all threads... %d" count)) |
| 11734 | (when (or (not predicate) | 11734 | (when (or (not predicate) |
| @@ -11800,7 +11800,7 @@ If SILENT, don't output messages." | |||
| 11800 | (n (abs n))) | 11800 | (n (abs n))) |
| 11801 | (while (and (> n 0) | 11801 | (while (and (> n 0) |
| 11802 | (gnus-summary-go-to-next-thread backward)) | 11802 | (gnus-summary-go-to-next-thread backward)) |
| 11803 | (decf n)) | 11803 | (cl-decf n)) |
| 11804 | (unless silent | 11804 | (unless silent |
| 11805 | (gnus-summary-position-point)) | 11805 | (gnus-summary-position-point)) |
| 11806 | (when (and (not silent) (/= 0 n)) | 11806 | (when (and (not silent) (/= 0 n)) |
| @@ -12371,7 +12371,7 @@ If REVERSE, save parts that do not match TYPE." | |||
| 12371 | (cdr gnus-article-current) | 12371 | (cdr gnus-article-current) |
| 12372 | gnus-summary-save-parts-counter)))) | 12372 | gnus-summary-save-parts-counter)))) |
| 12373 | dir))) | 12373 | dir))) |
| 12374 | (incf gnus-summary-save-parts-counter) | 12374 | (cl-incf gnus-summary-save-parts-counter) |
| 12375 | (unless (file-exists-p file) | 12375 | (unless (file-exists-p file) |
| 12376 | (mm-save-part-to-file handle file)))))) | 12376 | (mm-save-part-to-file handle file)))))) |
| 12377 | 12377 | ||
| @@ -12544,7 +12544,7 @@ If REVERSE, save parts that do not match TYPE." | |||
| 12544 | ;; article numbers for this article. | 12544 | ;; article numbers for this article. |
| 12545 | (mail-header-set-number header gnus-reffed-article-number)) | 12545 | (mail-header-set-number header gnus-reffed-article-number)) |
| 12546 | (with-current-buffer gnus-summary-buffer | 12546 | (with-current-buffer gnus-summary-buffer |
| 12547 | (decf gnus-reffed-article-number) | 12547 | (cl-decf gnus-reffed-article-number) |
| 12548 | (gnus-remove-header (mail-header-number header)) | 12548 | (gnus-remove-header (mail-header-number header)) |
| 12549 | (push header gnus-newsgroup-headers) | 12549 | (push header gnus-newsgroup-headers) |
| 12550 | (setq gnus-current-headers header) | 12550 | (setq gnus-current-headers header) |
| @@ -13019,7 +13019,7 @@ If ALL is a number, fetch this number of articles." | |||
| 13019 | gnus-newsgroup-highest i) | 13019 | gnus-newsgroup-highest i) |
| 13020 | (while (> i old-high) | 13020 | (while (> i old-high) |
| 13021 | (push i new) | 13021 | (push i new) |
| 13022 | (decf i)) | 13022 | (cl-decf i)) |
| 13023 | (if (not new) | 13023 | (if (not new) |
| 13024 | (message "No gnus is bad news") | 13024 | (message "No gnus is bad news") |
| 13025 | (gnus-summary-insert-articles new) | 13025 | (gnus-summary-insert-articles new) |
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el index ddaace9a24d..111f2ae28a4 100644 --- a/lisp/gnus/gnus-topic.el +++ b/lisp/gnus/gnus-topic.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile (require 'cl)) | 28 | (eval-when-compile (require 'cl-lib)) |
| 29 | 29 | ||
| 30 | (require 'gnus) | 30 | (require 'gnus) |
| 31 | (require 'gnus-group) | 31 | (require 'gnus-group) |
| @@ -128,7 +128,7 @@ See Info node `(gnus)Formatting Variables'." | |||
| 128 | number) | 128 | number) |
| 129 | (while entries | 129 | (while entries |
| 130 | (when (numberp (setq number (car (pop entries)))) | 130 | (when (numberp (setq number (car (pop entries)))) |
| 131 | (incf total number))) | 131 | (cl-incf total number))) |
| 132 | total)) | 132 | total)) |
| 133 | 133 | ||
| 134 | (defun gnus-group-topic (group) | 134 | (defun gnus-group-topic (group) |
| @@ -304,7 +304,7 @@ If RECURSIVE is t, return groups in its subtopics too." | |||
| 304 | (while (and (not (zerop num)) | 304 | (while (and (not (zerop num)) |
| 305 | (setq topic (funcall way topic))) | 305 | (setq topic (funcall way topic))) |
| 306 | (when (gnus-topic-goto-topic topic) | 306 | (when (gnus-topic-goto-topic topic) |
| 307 | (decf num))) | 307 | (cl-decf num))) |
| 308 | (unless (zerop num) | 308 | (unless (zerop num) |
| 309 | (goto-char (point-max))) | 309 | (goto-char (point-max))) |
| 310 | num)) | 310 | num)) |
| @@ -510,7 +510,7 @@ articles in the topic and its subtopics." | |||
| 510 | info entry end active tick) | 510 | info entry end active tick) |
| 511 | ;; Insert any sub-topics. | 511 | ;; Insert any sub-topics. |
| 512 | (while topicl | 512 | (while topicl |
| 513 | (incf unread | 513 | (cl-incf unread |
| 514 | (gnus-topic-prepare-topic | 514 | (gnus-topic-prepare-topic |
| 515 | (pop topicl) (1+ level) list-level predicate | 515 | (pop topicl) (1+ level) list-level predicate |
| 516 | (not visiblep) lowest regexp))) | 516 | (not visiblep) lowest regexp))) |
| @@ -564,7 +564,7 @@ articles in the topic and its subtopics." | |||
| 564 | (car entry) (gnus-info-method info))))) | 564 | (car entry) (gnus-info-method info))))) |
| 565 | (when (and (listp entry) | 565 | (when (and (listp entry) |
| 566 | (numberp (car entry))) | 566 | (numberp (car entry))) |
| 567 | (incf unread (car entry))) | 567 | (cl-incf unread (car entry))) |
| 568 | (when (listp entry) | 568 | (when (listp entry) |
| 569 | (setq tick t)))) | 569 | (setq tick t)))) |
| 570 | (goto-char beg) | 570 | (goto-char beg) |
| @@ -730,10 +730,10 @@ articles in the topic and its subtopics." | |||
| 730 | (cdr gnus-group-list-mode))) | 730 | (cdr gnus-group-list-mode))) |
| 731 | entry) | 731 | entry) |
| 732 | (while children | 732 | (while children |
| 733 | (incf unread (gnus-topic-unread (caar (pop children))))) | 733 | (cl-incf unread (gnus-topic-unread (caar (pop children))))) |
| 734 | (while (setq entry (pop entries)) | 734 | (while (setq entry (pop entries)) |
| 735 | (when (numberp (car entry)) | 735 | (when (numberp (car entry)) |
| 736 | (incf unread (car entry)))) | 736 | (cl-incf unread (car entry)))) |
| 737 | (gnus-topic-insert-topic-line | 737 | (gnus-topic-insert-topic-line |
| 738 | topic t t (car (gnus-topic-find-topology topic)) nil unread))) | 738 | topic t t (car (gnus-topic-find-topology topic)) nil unread))) |
| 739 | 739 | ||
| @@ -774,10 +774,10 @@ articles in the topic and its subtopics." | |||
| 774 | (if reads | 774 | (if reads |
| 775 | (setq unread (- (gnus-group-topic-unread) reads)) | 775 | (setq unread (- (gnus-group-topic-unread) reads)) |
| 776 | (while children | 776 | (while children |
| 777 | (incf unread (gnus-topic-unread (caar (pop children))))) | 777 | (cl-incf unread (gnus-topic-unread (caar (pop children))))) |
| 778 | (while (setq entry (pop entries)) | 778 | (while (setq entry (pop entries)) |
| 779 | (when (numberp (car entry)) | 779 | (when (numberp (car entry)) |
| 780 | (incf unread (car entry))))) | 780 | (cl-incf unread (car entry))))) |
| 781 | (setq old-unread (gnus-group-topic-unread)) | 781 | (setq old-unread (gnus-group-topic-unread)) |
| 782 | ;; Insert the topic line. | 782 | ;; Insert the topic line. |
| 783 | (gnus-topic-insert-topic-line | 783 | (gnus-topic-insert-topic-line |
diff --git a/lisp/gnus/gnus-undo.el b/lisp/gnus/gnus-undo.el index 8144e0cadc8..d487262c931 100644 --- a/lisp/gnus/gnus-undo.el +++ b/lisp/gnus/gnus-undo.el | |||
| @@ -43,8 +43,6 @@ | |||
| 43 | 43 | ||
| 44 | ;;; Code: | 44 | ;;; Code: |
| 45 | 45 | ||
| 46 | (eval-when-compile (require 'cl)) | ||
| 47 | |||
| 48 | (require 'gnus-util) | 46 | (require 'gnus-util) |
| 49 | (require 'gnus) | 47 | (require 'gnus) |
| 50 | 48 | ||
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 8983132bfb3..932ae5b5411 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -32,8 +32,7 @@ | |||
| 32 | 32 | ||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | 34 | ||
| 35 | (eval-when-compile | 35 | (eval-when-compile (require 'cl-lib)) |
| 36 | (require 'cl)) | ||
| 37 | 36 | ||
| 38 | (require 'time-date) | 37 | (require 'time-date) |
| 39 | 38 | ||
| @@ -1408,7 +1407,7 @@ SPEC is a predicate specifier that contains stuff like `or', `and', | |||
| 1408 | (symbol-value history) collection)) | 1407 | (symbol-value history) collection)) |
| 1409 | filtered-choices) | 1408 | filtered-choices) |
| 1410 | (dolist (x choices) | 1409 | (dolist (x choices) |
| 1411 | (setq filtered-choices (adjoin x filtered-choices))) | 1410 | (setq filtered-choices (cl-adjoin x filtered-choices))) |
| 1412 | (nreverse filtered-choices)))))) | 1411 | (nreverse filtered-choices)))))) |
| 1413 | (unwind-protect | 1412 | (unwind-protect |
| 1414 | (progn | 1413 | (progn |
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el index f660b861f7b..a171a385956 100644 --- a/lisp/gnus/gnus-uu.el +++ b/lisp/gnus/gnus-uu.el | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (eval-when-compile (require 'cl)) | 29 | (eval-when-compile (require 'cl-lib)) |
| 30 | 30 | ||
| 31 | (require 'gnus) | 31 | (require 'gnus) |
| 32 | (require 'gnus-art) | 32 | (require 'gnus-art) |
| @@ -2047,7 +2047,7 @@ If no file has been included, the user will be asked for a file." | |||
| 2047 | (setq length (count-lines (point-min) (point-max))) | 2047 | (setq length (count-lines (point-min) (point-max))) |
| 2048 | (setq parts (/ length gnus-uu-post-length)) | 2048 | (setq parts (/ length gnus-uu-post-length)) |
| 2049 | (unless (< (% length gnus-uu-post-length) 4) | 2049 | (unless (< (% length gnus-uu-post-length) 4) |
| 2050 | (incf parts))) | 2050 | (cl-incf parts))) |
| 2051 | 2051 | ||
| 2052 | (when gnus-uu-post-separate-description | 2052 | (when gnus-uu-post-separate-description |
| 2053 | (forward-line -1)) | 2053 | (forward-line -1)) |
| @@ -2106,7 +2106,7 @@ If no file has been included, the user will be asked for a file." | |||
| 2106 | (insert-buffer-substring uubuf beg end) | 2106 | (insert-buffer-substring uubuf beg end) |
| 2107 | (insert beg-line "\n") | 2107 | (insert beg-line "\n") |
| 2108 | (setq beg end) | 2108 | (setq beg end) |
| 2109 | (incf i) | 2109 | (cl-incf i) |
| 2110 | (goto-char (point-min)) | 2110 | (goto-char (point-min)) |
| 2111 | (re-search-forward | 2111 | (re-search-forward |
| 2112 | (concat "^" (regexp-quote mail-header-separator) "$") nil t) | 2112 | (concat "^" (regexp-quote mail-header-separator) "$") nil t) |
diff --git a/lisp/gnus/gnus-vm.el b/lisp/gnus/gnus-vm.el index 4b4152fd5d3..24235d9c718 100644 --- a/lisp/gnus/gnus-vm.el +++ b/lisp/gnus/gnus-vm.el | |||
| @@ -34,9 +34,6 @@ | |||
| 34 | (require 'gnus) | 34 | (require 'gnus) |
| 35 | (require 'gnus-msg) | 35 | (require 'gnus-msg) |
| 36 | 36 | ||
| 37 | (eval-when-compile | ||
| 38 | (require 'cl)) | ||
| 39 | |||
| 40 | (defvar gnus-vm-inhibit-window-system nil | 37 | (defvar gnus-vm-inhibit-window-system nil |
| 41 | "Inhibit loading `win-vm' if using a window-system. | 38 | "Inhibit loading `win-vm' if using a window-system. |
| 42 | Has to be set before gnus-vm is loaded.") | 39 | Has to be set before gnus-vm is loaded.") |
diff --git a/lisp/gnus/gnus-win.el b/lisp/gnus/gnus-win.el index fd0c7181951..ff3073a6794 100644 --- a/lisp/gnus/gnus-win.el +++ b/lisp/gnus/gnus-win.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-util) | 30 | (require 'gnus-util) |
| @@ -312,7 +312,7 @@ See the Gnus manual for an explanation of the syntax used.") | |||
| 312 | ;; Select the frame in question and do more splits there. | 312 | ;; Select the frame in question and do more splits there. |
| 313 | (select-frame frame) | 313 | (select-frame frame) |
| 314 | (setq fresult (or (gnus-configure-frame (elt subs i)) fresult)) | 314 | (setq fresult (or (gnus-configure-frame (elt subs i)) fresult)) |
| 315 | (incf i)) | 315 | (cl-incf i)) |
| 316 | ;; Select the frame that has the selected buffer. | 316 | ;; Select the frame that has the selected buffer. |
| 317 | (when fresult | 317 | (when fresult |
| 318 | (select-frame (window-frame fresult))))) | 318 | (select-frame (window-frame fresult))))) |
| @@ -344,7 +344,7 @@ See the Gnus manual for an explanation of the syntax used.") | |||
| 344 | ((eq type 'vertical) | 344 | ((eq type 'vertical) |
| 345 | (setq s (max s window-min-height)))) | 345 | (setq s (max s window-min-height)))) |
| 346 | (setcar (cdar comp-subs) s) | 346 | (setcar (cdar comp-subs) s) |
| 347 | (incf total s))) | 347 | (cl-incf total s))) |
| 348 | ;; Take care of the "1.0" spec. | 348 | ;; Take care of the "1.0" spec. |
| 349 | (if rest | 349 | (if rest |
| 350 | (setcar (cdr rest) (- len total)) | 350 | (setcar (cdr rest) (- len total)) |
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index d2850f4cee3..51f76a4a2e8 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | (require 'format-spec) | 27 | (require 'format-spec) |
| 28 | (eval-when-compile | 28 | (eval-when-compile |
| 29 | (require 'cl) | 29 | (require 'cl-lib) |
| 30 | (require 'imap)) | 30 | (require 'imap)) |
| 31 | (autoload 'auth-source-search "auth-source") | 31 | (autoload 'auth-source-search "auth-source") |
| 32 | (autoload 'pop3-movemail "pop3") | 32 | (autoload 'pop3-movemail "pop3") |
| @@ -439,7 +439,7 @@ the `mail-source-keyword-map' variable." | |||
| 439 | ;; the msname is the mail-source parameter | 439 | ;; the msname is the mail-source parameter |
| 440 | (dolist (msname '(:server :user :port)) | 440 | (dolist (msname '(:server :user :port)) |
| 441 | ;; the asname is the auth-source parameter | 441 | ;; the asname is the auth-source parameter |
| 442 | (let* ((asname (case msname | 442 | (let* ((asname (cl-case msname |
| 443 | (:server :host) ; auth-source uses :host | 443 | (:server :host) ; auth-source uses :host |
| 444 | (t msname))) | 444 | (t msname))) |
| 445 | ;; this is the mail-source default | 445 | ;; this is the mail-source default |
| @@ -786,7 +786,7 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | |||
| 786 | (when (and (file-regular-p file) | 786 | (when (and (file-regular-p file) |
| 787 | (funcall predicate file) | 787 | (funcall predicate file) |
| 788 | (mail-source-movemail file mail-source-crash-box)) | 788 | (mail-source-movemail file mail-source-crash-box)) |
| 789 | (incf found (mail-source-callback callback file)) | 789 | (cl-incf found (mail-source-callback callback file)) |
| 790 | (mail-source-run-script postscript (format-spec-make ?t path)) | 790 | (mail-source-run-script postscript (format-spec-make ?t path)) |
| 791 | (mail-source-delete-crash-box))) | 791 | (mail-source-delete-crash-box))) |
| 792 | found))) | 792 | found))) |
| @@ -1041,7 +1041,7 @@ This only works when `display-time' is enabled." | |||
| 1041 | (insert "\001\001\001\001\n")) | 1041 | (insert "\001\001\001\001\n")) |
| 1042 | (delete-file file) | 1042 | (delete-file file) |
| 1043 | nil)))) | 1043 | nil)))) |
| 1044 | (incf found (mail-source-callback callback file)) | 1044 | (cl-incf found (mail-source-callback callback file)) |
| 1045 | (mail-source-delete-crash-box))))) | 1045 | (mail-source-delete-crash-box))))) |
| 1046 | found))) | 1046 | found))) |
| 1047 | 1047 | ||
| @@ -1116,7 +1116,7 @@ This only works when `display-time' is enabled." | |||
| 1116 | (replace-match ">From ")) | 1116 | (replace-match ">From ")) |
| 1117 | (goto-char (point-max)))) | 1117 | (goto-char (point-max)))) |
| 1118 | (nnheader-ms-strip-cr)) | 1118 | (nnheader-ms-strip-cr)) |
| 1119 | (incf found (mail-source-callback callback server)) | 1119 | (cl-incf found (mail-source-callback callback server)) |
| 1120 | (mail-source-delete-crash-box) | 1120 | (mail-source-delete-crash-box) |
| 1121 | (when (and remove fetchflag) | 1121 | (when (and remove fetchflag) |
| 1122 | (setq remove (nreverse remove)) | 1122 | (setq remove (nreverse remove)) |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index 372b6da44b5..6fb376fa7cd 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | (require 'mail-parse) | 26 | (require 'mail-parse) |
| 27 | (require 'mm-bodies) | 27 | (require 'mm-bodies) |
| 28 | (eval-when-compile (require 'cl)) | 28 | (eval-when-compile (require 'cl-lib)) |
| 29 | 29 | ||
| 30 | (autoload 'gnus-map-function "gnus-util") | 30 | (autoload 'gnus-map-function "gnus-util") |
| 31 | 31 | ||
diff --git a/lisp/gnus/mm-encode.el b/lisp/gnus/mm-encode.el index 2eec32b9ac0..361e85fbe1f 100644 --- a/lisp/gnus/mm-encode.el +++ b/lisp/gnus/mm-encode.el | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ;;; Code: | 24 | ;;; Code: |
| 25 | 25 | ||
| 26 | (eval-when-compile (require 'cl)) | 26 | (eval-when-compile (require 'cl-lib)) |
| 27 | (require 'mail-parse) | 27 | (require 'mail-parse) |
| 28 | (autoload 'mailcap-extension-to-mime "mailcap") | 28 | (autoload 'mailcap-extension-to-mime "mailcap") |
| 29 | (autoload 'mm-body-7-or-8 "mm-bodies") | 29 | (autoload 'mm-body-7-or-8 "mm-bodies") |
| @@ -204,7 +204,7 @@ This is either `base64' or `quoted-printable'." | |||
| 204 | (goto-char (point-min)) | 204 | (goto-char (point-min)) |
| 205 | (skip-chars-forward "\x20-\x7f\r\n\t" limit) | 205 | (skip-chars-forward "\x20-\x7f\r\n\t" limit) |
| 206 | (while (< (point) limit) | 206 | (while (< (point) limit) |
| 207 | (incf n8bit) | 207 | (cl-incf n8bit) |
| 208 | (forward-char 1) | 208 | (forward-char 1) |
| 209 | (skip-chars-forward "\x20-\x7f\r\n\t" limit)) | 209 | (skip-chars-forward "\x20-\x7f\r\n\t" limit)) |
| 210 | (if (or (< (* 6 n8bit) (- limit (point-min))) | 210 | (if (or (< (* 6 n8bit) (- limit (point-min))) |
diff --git a/lisp/gnus/mm-partial.el b/lisp/gnus/mm-partial.el index b380fae7666..51dc8b89e3a 100644 --- a/lisp/gnus/mm-partial.el +++ b/lisp/gnus/mm-partial.el | |||
| @@ -24,8 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | |||
| 29 | (require 'gnus-sum) | 27 | (require 'gnus-sum) |
| 30 | (require 'mm-util) | 28 | (require 'mm-util) |
| 31 | (require 'mm-decode) | 29 | (require 'mm-decode) |
diff --git a/lisp/gnus/mm-url.el b/lisp/gnus/mm-url.el index 1715097d4f8..1008c60a173 100644 --- a/lisp/gnus/mm-url.el +++ b/lisp/gnus/mm-url.el | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (eval-when-compile (require 'cl)) | 31 | (eval-when-compile (require 'cl-lib)) |
| 32 | 32 | ||
| 33 | (require 'mm-util) | 33 | (require 'mm-util) |
| 34 | (require 'gnus) | 34 | (require 'gnus) |
| @@ -318,7 +318,7 @@ If FOLLOW-REFRESH is non-nil, redirect refresh url in META." | |||
| 318 | (done nil) | 318 | (done nil) |
| 319 | (first t) | 319 | (first t) |
| 320 | result) | 320 | result) |
| 321 | (while (and (not (zerop (decf times))) | 321 | (while (and (not (zerop (cl-decf times))) |
| 322 | (not done)) | 322 | (not done)) |
| 323 | (with-timeout (mm-url-timeout) | 323 | (with-timeout (mm-url-timeout) |
| 324 | (unless first | 324 | (unless first |
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el index e15eba75924..cf6d6d17ed5 100644 --- a/lisp/gnus/mm-uu.el +++ b/lisp/gnus/mm-uu.el | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | (require 'mail-parse) | 27 | (require 'mail-parse) |
| 29 | (require 'nnheader) | 28 | (require 'nnheader) |
| 30 | (require 'mm-decode) | 29 | (require 'mm-decode) |
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index c11af7060b7..75786cd71b8 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | ;;; Code: | 23 | ;;; Code: |
| 24 | 24 | ||
| 25 | (eval-when-compile (require 'cl)) | 25 | (eval-when-compile (require 'cl-lib)) |
| 26 | (require 'mail-parse) | 26 | (require 'mail-parse) |
| 27 | (require 'mailcap) | 27 | (require 'mailcap) |
| 28 | (require 'mm-bodies) | 28 | (require 'mm-bodies) |
| @@ -561,7 +561,7 @@ If MODE is not set, try to find mode automatically." | |||
| 561 | (error "Could not identify PKCS#7 type"))))) | 561 | (error "Could not identify PKCS#7 type"))))) |
| 562 | 562 | ||
| 563 | (defun mm-view-pkcs7 (handle &optional from) | 563 | (defun mm-view-pkcs7 (handle &optional from) |
| 564 | (case (mm-view-pkcs7-get-type handle) | 564 | (cl-case (mm-view-pkcs7-get-type handle) |
| 565 | (enveloped (mm-view-pkcs7-decrypt handle from)) | 565 | (enveloped (mm-view-pkcs7-decrypt handle from)) |
| 566 | (signed (mm-view-pkcs7-verify handle)) | 566 | (signed (mm-view-pkcs7-verify handle)) |
| 567 | (otherwise (error "Unknown or unimplemented PKCS#7 type")))) | 567 | (otherwise (error "Unknown or unimplemented PKCS#7 type")))) |
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el index f91aa140e7b..9df33d09377 100644 --- a/lisp/gnus/mml-smime.el +++ b/lisp/gnus/mml-smime.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'smime) | 29 | (require 'smime) |
| 30 | (require 'mm-decode) | 30 | (require 'mm-decode) |
| @@ -238,7 +238,7 @@ Whether the passphrase is cached at all is controlled by | |||
| 238 | ;; todo: try dns/ldap automatically first, before prompting user | 238 | ;; todo: try dns/ldap automatically first, before prompting user |
| 239 | (let (certs done) | 239 | (let (certs done) |
| 240 | (while (not done) | 240 | (while (not done) |
| 241 | (ecase (read (gnus-completing-read | 241 | (cl-ecase (read (gnus-completing-read |
| 242 | "Fetch certificate from" | 242 | "Fetch certificate from" |
| 243 | '("dns" "ldap" "file") t nil nil | 243 | '("dns" "ldap" "file") t nil nil |
| 244 | "ldap")) | 244 | "ldap")) |
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 38be0dc4e4c..9fd72a93d5b 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | (require 'mm-encode) | 27 | (require 'mm-encode) |
| 28 | (require 'mm-decode) | 28 | (require 'mm-decode) |
| 29 | (require 'mml-sec) | 29 | (require 'mml-sec) |
| 30 | (eval-when-compile (require 'cl)) | 30 | (eval-when-compile (require 'cl-lib)) |
| 31 | (eval-when-compile (require 'url)) | 31 | (eval-when-compile (require 'url)) |
| 32 | 32 | ||
| 33 | (autoload 'message-make-message-id "message") | 33 | (autoload 'message-make-message-id "message") |
| @@ -798,12 +798,12 @@ be \"related\" or \"alternate\"." | |||
| 798 | (if (setq recipients (cdr (assq 'recipients cont))) | 798 | (if (setq recipients (cdr (assq 'recipients cont))) |
| 799 | (message-options-set 'message-recipients recipients)) | 799 | (message-options-set 'message-recipients recipients)) |
| 800 | (let ((style (mml-signencrypt-style | 800 | (let ((style (mml-signencrypt-style |
| 801 | (first (or sign-item encrypt-item))))) | 801 | (car (or sign-item encrypt-item))))) |
| 802 | ;; check if: we're both signing & encrypting, both methods | 802 | ;; check if: we're both signing & encrypting, both methods |
| 803 | ;; are the same (why would they be different?!), and that | 803 | ;; are the same (why would they be different?!), and that |
| 804 | ;; the signencrypt style allows for combined operation. | 804 | ;; the signencrypt style allows for combined operation. |
| 805 | (if (and sign-item encrypt-item (equal (first sign-item) | 805 | (if (and sign-item encrypt-item (equal (car sign-item) |
| 806 | (first encrypt-item)) | 806 | (car encrypt-item)) |
| 807 | (equal style 'combined)) | 807 | (equal style 'combined)) |
| 808 | (funcall (nth 1 encrypt-item) cont t) | 808 | (funcall (nth 1 encrypt-item) cont t) |
| 809 | ;; otherwise, revert to the old behavior. | 809 | ;; otherwise, revert to the old behavior. |
| @@ -815,7 +815,7 @@ be \"related\" or \"alternate\"." | |||
| 815 | (defun mml-compute-boundary (cont) | 815 | (defun mml-compute-boundary (cont) |
| 816 | "Return a unique boundary that does not exist in CONT." | 816 | "Return a unique boundary that does not exist in CONT." |
| 817 | (let ((mml-boundary (funcall mml-boundary-function | 817 | (let ((mml-boundary (funcall mml-boundary-function |
| 818 | (incf mml-multipart-number)))) | 818 | (cl-incf mml-multipart-number)))) |
| 819 | (unless mml-inhibit-compute-boundary | 819 | (unless mml-inhibit-compute-boundary |
| 820 | ;; This function tries again and again until it has found | 820 | ;; This function tries again and again until it has found |
| 821 | ;; a unique boundary. | 821 | ;; a unique boundary. |
| @@ -835,7 +835,7 @@ be \"related\" or \"alternate\"." | |||
| 835 | (when (re-search-forward (concat "^--" (regexp-quote mml-boundary)) | 835 | (when (re-search-forward (concat "^--" (regexp-quote mml-boundary)) |
| 836 | nil t) | 836 | nil t) |
| 837 | (setq mml-boundary (funcall mml-boundary-function | 837 | (setq mml-boundary (funcall mml-boundary-function |
| 838 | (incf mml-multipart-number))) | 838 | (cl-incf mml-multipart-number))) |
| 839 | (throw 'not-unique nil)))) | 839 | (throw 'not-unique nil)))) |
| 840 | ((eq (car cont) 'multipart) | 840 | ((eq (car cont) 'multipart) |
| 841 | (mapc 'mml-compute-boundary-1 (cddr cont)))) | 841 | (mapc 'mml-compute-boundary-1 (cddr cont)))) |
diff --git a/lisp/gnus/mml1991.el b/lisp/gnus/mml1991.el index 4198f2c0c54..93b1b5049a8 100644 --- a/lisp/gnus/mml1991.el +++ b/lisp/gnus/mml1991.el | |||
| @@ -25,9 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile | 28 | (eval-when-compile (require 'mm-util)) |
| 29 | (require 'cl) | ||
| 30 | (require 'mm-util)) | ||
| 31 | 29 | ||
| 32 | (require 'mm-encode) | 30 | (require 'mm-encode) |
| 33 | (require 'mml-sec) | 31 | (require 'mml-sec) |
diff --git a/lisp/gnus/mml2015.el b/lisp/gnus/mml2015.el index b220a960983..5980ddb38fe 100644 --- a/lisp/gnus/mml2015.el +++ b/lisp/gnus/mml2015.el | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | ;;; Code: | 28 | ;;; Code: |
| 29 | 29 | ||
| 30 | (eval-when-compile (require 'cl)) | 30 | (eval-when-compile (require 'cl-lib)) |
| 31 | (require 'mm-decode) | 31 | (require 'mm-decode) |
| 32 | (require 'mm-util) | 32 | (require 'mm-util) |
| 33 | (require 'mml) | 33 | (require 'mml) |
| @@ -237,7 +237,7 @@ If set, it overrides the setting of `mml2015-sign-with-sender'." | |||
| 237 | (setq result | 237 | (setq result |
| 238 | (concat | 238 | (concat |
| 239 | result | 239 | result |
| 240 | (case n-slice | 240 | (cl-case n-slice |
| 241 | (1 slice) | 241 | (1 slice) |
| 242 | (otherwise (concat " " slice)))))) | 242 | (otherwise (concat " " slice)))))) |
| 243 | result)) | 243 | result)) |
diff --git a/lisp/gnus/nnagent.el b/lisp/gnus/nnagent.el index 44b010c29b6..1b2b13ebe4d 100644 --- a/lisp/gnus/nnagent.el +++ b/lisp/gnus/nnagent.el | |||
| @@ -26,7 +26,6 @@ | |||
| 26 | 26 | ||
| 27 | (require 'nnheader) | 27 | (require 'nnheader) |
| 28 | (require 'nnoo) | 28 | (require 'nnoo) |
| 29 | (eval-when-compile (require 'cl)) | ||
| 30 | (require 'gnus-agent) | 29 | (require 'gnus-agent) |
| 31 | (require 'nnml) | 30 | (require 'nnml) |
| 32 | 31 | ||
diff --git a/lisp/gnus/nnbabyl.el b/lisp/gnus/nnbabyl.el index faa797aae45..9f80a755713 100644 --- a/lisp/gnus/nnbabyl.el +++ b/lisp/gnus/nnbabyl.el | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | 5 "Ignore rmail errors from this file, you don't have rmail"))) | 35 | 5 "Ignore rmail errors from this file, you don't have rmail"))) |
| 36 | (require 'nnmail) | 36 | (require 'nnmail) |
| 37 | (require 'nnoo) | 37 | (require 'nnoo) |
| 38 | (eval-when-compile (require 'cl)) | 38 | (eval-when-compile (require 'cl-lib)) |
| 39 | 39 | ||
| 40 | (nnoo-declare nnbabyl) | 40 | (nnoo-declare nnbabyl) |
| 41 | 41 | ||
| @@ -103,7 +103,7 @@ | |||
| 103 | (insert ".\n")) | 103 | (insert ".\n")) |
| 104 | (and (numberp nnmail-large-newsgroup) | 104 | (and (numberp nnmail-large-newsgroup) |
| 105 | (> number nnmail-large-newsgroup) | 105 | (> number nnmail-large-newsgroup) |
| 106 | (zerop (% (incf count) 20)) | 106 | (zerop (% (cl-incf count) 20)) |
| 107 | (nnheader-message 5 "nnbabyl: Receiving headers... %d%%" | 107 | (nnheader-message 5 "nnbabyl: Receiving headers... %d%%" |
| 108 | (floor (* count 100.0) number)))) | 108 | (floor (* count 100.0) number)))) |
| 109 | 109 | ||
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el index 04bb3b56530..609d90b1071 100644 --- a/lisp/gnus/nndiary.el +++ b/lisp/gnus/nndiary.el | |||
| @@ -83,7 +83,6 @@ | |||
| 83 | (require 'nnoo) | 83 | (require 'nnoo) |
| 84 | (require 'nnheader) | 84 | (require 'nnheader) |
| 85 | (require 'nnmail) | 85 | (require 'nnmail) |
| 86 | (eval-when-compile (require 'cl)) | ||
| 87 | 86 | ||
| 88 | (require 'gnus-start) | 87 | (require 'gnus-start) |
| 89 | (require 'gnus-sum) | 88 | (require 'gnus-sum) |
diff --git a/lisp/gnus/nndir.el b/lisp/gnus/nndir.el index 28c903cb913..0506bb20ee6 100644 --- a/lisp/gnus/nndir.el +++ b/lisp/gnus/nndir.el | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | (require 'nnmh) | 28 | (require 'nnmh) |
| 29 | (require 'nnml) | 29 | (require 'nnml) |
| 30 | (require 'nnoo) | 30 | (require 'nnoo) |
| 31 | (eval-when-compile (require 'cl)) | ||
| 32 | 31 | ||
| 33 | (nnoo-declare nndir | 32 | (nnoo-declare nndir |
| 34 | nnml nnmh) | 33 | nnml nnmh) |
diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el index 53864d1bc1b..fa3117ae2f3 100644 --- a/lisp/gnus/nndoc.el +++ b/lisp/gnus/nndoc.el | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | (require 'nnoo) | 33 | (require 'nnoo) |
| 34 | (require 'gnus-util) | 34 | (require 'gnus-util) |
| 35 | (require 'mm-util) | 35 | (require 'mm-util) |
| 36 | (eval-when-compile (require 'cl)) | 36 | (eval-when-compile (require 'cl-lib)) |
| 37 | 37 | ||
| 38 | (nnoo-declare nndoc) | 38 | (nnoo-declare nndoc) |
| 39 | 39 | ||
| @@ -788,7 +788,7 @@ from the document.") | |||
| 788 | (setq blk (nndoc-oe-dbx-decode-block))) | 788 | (setq blk (nndoc-oe-dbx-decode-block))) |
| 789 | (while (and blk (> (car blk) 0) (or (zerop (nth 3 blk)) | 789 | (while (and blk (> (car blk) 0) (or (zerop (nth 3 blk)) |
| 790 | (> (nth 3 blk) p))) | 790 | (> (nth 3 blk) p))) |
| 791 | (push (list (incf i) p nil nil nil 0) nndoc-dissection-alist) | 791 | (push (list (cl-incf i) p nil nil nil 0) nndoc-dissection-alist) |
| 792 | (while (and (> (car blk) 0) (> (nth 3 blk) p)) | 792 | (while (and (> (car blk) 0) (> (nth 3 blk) p)) |
| 793 | (goto-char (1+ (nth 3 blk))) | 793 | (goto-char (1+ (nth 3 blk))) |
| 794 | (setq blk (nndoc-oe-dbx-decode-block))) | 794 | (setq blk (nndoc-oe-dbx-decode-block))) |
| @@ -927,7 +927,7 @@ from the document.") | |||
| 927 | (and (re-search-backward nndoc-file-end nil t) | 927 | (and (re-search-backward nndoc-file-end nil t) |
| 928 | (beginning-of-line))))) | 928 | (beginning-of-line))))) |
| 929 | (setq body-end (point)) | 929 | (setq body-end (point)) |
| 930 | (push (list (incf i) head-begin head-end body-begin body-end | 930 | (push (list (cl-incf i) head-begin head-end body-begin body-end |
| 931 | (count-lines body-begin body-end)) | 931 | (count-lines body-begin body-end)) |
| 932 | nndoc-dissection-alist))))) | 932 | nndoc-dissection-alist))))) |
| 933 | (setq nndoc-dissection-alist (nreverse nndoc-dissection-alist)))) | 933 | (setq nndoc-dissection-alist (nreverse nndoc-dissection-alist)))) |
| @@ -1040,7 +1040,7 @@ PARENT is the message-ID of the parent summary line, or nil for none." | |||
| 1040 | (replace-match line t t summary-insert) | 1040 | (replace-match line t t summary-insert) |
| 1041 | (concat summary-insert line))))) | 1041 | (concat summary-insert line))))) |
| 1042 | ;; Generate dissection information for this entity. | 1042 | ;; Generate dissection information for this entity. |
| 1043 | (push (list (incf nndoc-mime-split-ordinal) | 1043 | (push (list (cl-incf nndoc-mime-split-ordinal) |
| 1044 | head-begin head-end body-begin body-end | 1044 | head-begin head-end body-begin body-end |
| 1045 | (count-lines body-begin body-end) | 1045 | (count-lines body-begin body-end) |
| 1046 | article-insert summary-insert) | 1046 | article-insert summary-insert) |
| @@ -1078,7 +1078,7 @@ PARENT is the message-ID of the parent summary line, or nil for none." | |||
| 1078 | part-begin part-end article-insert | 1078 | part-begin part-end article-insert |
| 1079 | (concat position | 1079 | (concat position |
| 1080 | (and position ".") | 1080 | (and position ".") |
| 1081 | (format "%d" (incf part-counter))) | 1081 | (format "%d" (cl-incf part-counter))) |
| 1082 | message-id))))))))) | 1082 | message-id))))))))) |
| 1083 | 1083 | ||
| 1084 | ;;;###autoload | 1084 | ;;;###autoload |
diff --git a/lisp/gnus/nndraft.el b/lisp/gnus/nndraft.el index e984bcb382a..cee7c92b3f1 100644 --- a/lisp/gnus/nndraft.el +++ b/lisp/gnus/nndraft.el | |||
| @@ -31,7 +31,6 @@ | |||
| 31 | (require 'nnmh) | 31 | (require 'nnmh) |
| 32 | (require 'nnoo) | 32 | (require 'nnoo) |
| 33 | (require 'mm-util) | 33 | (require 'mm-util) |
| 34 | (eval-when-compile (require 'cl)) | ||
| 35 | 34 | ||
| 36 | ;; The nnoo-import at the end, I think. | 35 | ;; The nnoo-import at the end, I think. |
| 37 | (declare-function nndraft-request-list "nndraft" (&rest args) t) | 36 | (declare-function nndraft-request-list "nndraft" (&rest args) t) |
diff --git a/lisp/gnus/nneething.el b/lisp/gnus/nneething.el index 9b6a92f10e7..abd17c55086 100644 --- a/lisp/gnus/nneething.el +++ b/lisp/gnus/nneething.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile (require 'cl)) | 28 | (eval-when-compile (require 'cl-lib)) |
| 29 | 29 | ||
| 30 | (require 'mailcap) | 30 | (require 'mailcap) |
| 31 | (require 'nnheader) | 31 | (require 'nnheader) |
| @@ -101,7 +101,7 @@ included.") | |||
| 101 | (nneething-insert-head file) | 101 | (nneething-insert-head file) |
| 102 | (insert ".\n")) | 102 | (insert ".\n")) |
| 103 | 103 | ||
| 104 | (incf count) | 104 | (cl-incf count) |
| 105 | 105 | ||
| 106 | (and large | 106 | (and large |
| 107 | (zerop (% count 20)) | 107 | (zerop (% count 20)) |
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el index 565c9856051..826fd8d8552 100644 --- a/lisp/gnus/nnfolder.el +++ b/lisp/gnus/nnfolder.el | |||
| @@ -32,7 +32,6 @@ | |||
| 32 | (require 'message) | 32 | (require 'message) |
| 33 | (require 'nnmail) | 33 | (require 'nnmail) |
| 34 | (require 'nnoo) | 34 | (require 'nnoo) |
| 35 | (eval-when-compile (require 'cl)) | ||
| 36 | (require 'gnus) | 35 | (require 'gnus) |
| 37 | (require 'gnus-util) | 36 | (require 'gnus-util) |
| 38 | (require 'gnus-range) | 37 | (require 'gnus-range) |
diff --git a/lisp/gnus/nngateway.el b/lisp/gnus/nngateway.el index b05c4e88073..8b7898c1893 100644 --- a/lisp/gnus/nngateway.el +++ b/lisp/gnus/nngateway.el | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | (require 'nnoo) | 27 | (require 'nnoo) |
| 29 | (require 'message) | 28 | (require 'message) |
| 30 | 29 | ||
diff --git a/lisp/gnus/nnheader.el b/lisp/gnus/nnheader.el index 77afb09a2a8..34b4137e935 100644 --- a/lisp/gnus/nnheader.el +++ b/lisp/gnus/nnheader.el | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (eval-when-compile (require 'cl)) | 29 | (eval-when-compile (require 'cl-lib)) |
| 30 | 30 | ||
| 31 | (defvar nnmail-extra-headers) | 31 | (defvar nnmail-extra-headers) |
| 32 | (defvar gnus-newsgroup-name) | 32 | (defvar gnus-newsgroup-name) |
| @@ -237,7 +237,7 @@ on your system, you could say something like: | |||
| 237 | (format "fake+none+%s+%d" gnus-newsgroup-name number) | 237 | (format "fake+none+%s+%d" gnus-newsgroup-name number) |
| 238 | (format "fake+none+%s+%s" | 238 | (format "fake+none+%s+%s" |
| 239 | gnus-newsgroup-name | 239 | gnus-newsgroup-name |
| 240 | (int-to-string (incf nnheader-fake-message-id))))) | 240 | (int-to-string (cl-incf nnheader-fake-message-id))))) |
| 241 | 241 | ||
| 242 | (defsubst nnheader-fake-message-id-p (id) | 242 | (defsubst nnheader-fake-message-id-p (id) |
| 243 | (save-match-data ; regular message-id's are <.*> | 243 | (save-match-data ; regular message-id's are <.*> |
| @@ -612,7 +612,7 @@ the line could be found." | |||
| 612 | (while (and (eq nnheader-head-chop-length | 612 | (while (and (eq nnheader-head-chop-length |
| 613 | (nth 1 (mm-insert-file-contents | 613 | (nth 1 (mm-insert-file-contents |
| 614 | file nil beg | 614 | file nil beg |
| 615 | (incf beg nnheader-head-chop-length)))) | 615 | (cl-incf beg nnheader-head-chop-length)))) |
| 616 | ;; CRLF or CR might be used for the line-break code. | 616 | ;; CRLF or CR might be used for the line-break code. |
| 617 | (prog1 (not (re-search-forward "\n\r?\n\\|\r\r" nil t)) | 617 | (prog1 (not (re-search-forward "\n\r?\n\\|\r\r" nil t)) |
| 618 | (goto-char (point-max))) | 618 | (goto-char (point-max))) |
| @@ -784,7 +784,7 @@ If FULL, translate everything." | |||
| 784 | (when (setq trans (cdr (assq (aref leaf i) | 784 | (when (setq trans (cdr (assq (aref leaf i) |
| 785 | nnheader-file-name-translation-alist))) | 785 | nnheader-file-name-translation-alist))) |
| 786 | (aset leaf i trans)) | 786 | (aset leaf i trans)) |
| 787 | (incf i)) | 787 | (cl-incf i)) |
| 788 | (concat path leaf)))) | 788 | (concat path leaf)))) |
| 789 | 789 | ||
| 790 | (defun nnheader-report (backend &rest args) | 790 | (defun nnheader-report (backend &rest args) |
| @@ -973,7 +973,7 @@ find-file-hook, etc. | |||
| 973 | (defun nnheader-find-file-noselect (&rest args) | 973 | (defun nnheader-find-file-noselect (&rest args) |
| 974 | "Open a file with some variables bound. | 974 | "Open a file with some variables bound. |
| 975 | See `find-file-noselect' for the arguments." | 975 | See `find-file-noselect' for the arguments." |
| 976 | (letf* ((format-alist nil) | 976 | (cl-letf* ((format-alist nil) |
| 977 | (auto-mode-alist (mm-auto-mode-alist)) | 977 | (auto-mode-alist (mm-auto-mode-alist)) |
| 978 | ((default-value 'major-mode) 'fundamental-mode) | 978 | ((default-value 'major-mode) 'fundamental-mode) |
| 979 | (enable-local-variables nil) | 979 | (enable-local-variables nil) |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index cab1513a164..ffe1a47e932 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (eval-when-compile | 29 | (eval-when-compile |
| 30 | (require 'cl) | 30 | (require 'cl-lib) |
| 31 | (require 'subr-x)) | 31 | (require 'subr-x)) |
| 32 | 32 | ||
| 33 | (require 'nnheader) | 33 | (require 'nnheader) |
| @@ -144,7 +144,7 @@ textual parts.") | |||
| 144 | (defvar nnimap-keepalive-timer nil) | 144 | (defvar nnimap-keepalive-timer nil) |
| 145 | (defvar nnimap-process-buffers nil) | 145 | (defvar nnimap-process-buffers nil) |
| 146 | 146 | ||
| 147 | (defstruct nnimap | 147 | (cl-defstruct nnimap |
| 148 | group process commands capabilities select-result newlinep server | 148 | group process commands capabilities select-result newlinep server |
| 149 | last-command-time greeting examined stream-type initial-resync) | 149 | last-command-time greeting examined stream-type initial-resync) |
| 150 | 150 | ||
| @@ -212,12 +212,12 @@ textual parts.") | |||
| 212 | (defun nnimap-transform-headers () | 212 | (defun nnimap-transform-headers () |
| 213 | (goto-char (point-min)) | 213 | (goto-char (point-min)) |
| 214 | (let (article lines size string labels) | 214 | (let (article lines size string labels) |
| 215 | (block nil | 215 | (cl-block nil |
| 216 | (while (not (eobp)) | 216 | (while (not (eobp)) |
| 217 | (while (not (looking-at "\\* [0-9]+ FETCH")) | 217 | (while (not (looking-at "\\* [0-9]+ FETCH")) |
| 218 | (delete-region (point) (progn (forward-line 1) (point))) | 218 | (delete-region (point) (progn (forward-line 1) (point))) |
| 219 | (when (eobp) | 219 | (when (eobp) |
| 220 | (return))) | 220 | (cl-return))) |
| 221 | (goto-char (match-end 0)) | 221 | (goto-char (match-end 0)) |
| 222 | ;; Unfold quoted {number} strings. | 222 | ;; Unfold quoted {number} strings. |
| 223 | (while (re-search-forward | 223 | (while (re-search-forward |
| @@ -381,7 +381,7 @@ textual parts.") | |||
| 381 | (setq nnimap-stream 'ssl)) | 381 | (setq nnimap-stream 'ssl)) |
| 382 | (let ((stream | 382 | (let ((stream |
| 383 | (if (eq nnimap-stream 'undecided) | 383 | (if (eq nnimap-stream 'undecided) |
| 384 | (loop for type in '(ssl network) | 384 | (cl-loop for type in '(ssl network) |
| 385 | for stream = (let ((nnimap-stream type)) | 385 | for stream = (let ((nnimap-stream type)) |
| 386 | (nnimap-open-connection-1 buffer)) | 386 | (nnimap-open-connection-1 buffer)) |
| 387 | while (eq stream 'no-connect) | 387 | while (eq stream 'no-connect) |
| @@ -794,7 +794,7 @@ textual parts.") | |||
| 794 | (equal id "1") | 794 | (equal id "1") |
| 795 | (string-match nnimap-fetch-partial-articles type)) | 795 | (string-match nnimap-fetch-partial-articles type)) |
| 796 | (push id parts)))) | 796 | (push id parts)))) |
| 797 | (incf num))) | 797 | (cl-incf num))) |
| 798 | (nreverse parts))) | 798 | (nreverse parts))) |
| 799 | 799 | ||
| 800 | (deffoo nnimap-request-group (group &optional server dont-check info) | 800 | (deffoo nnimap-request-group (group &optional server dont-check info) |
| @@ -1145,7 +1145,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1145 | ;; Just send all the STORE commands without waiting for | 1145 | ;; Just send all the STORE commands without waiting for |
| 1146 | ;; response. If they're successful, they're successful. | 1146 | ;; response. If they're successful, they're successful. |
| 1147 | (dolist (action actions) | 1147 | (dolist (action actions) |
| 1148 | (destructuring-bind (range action marks) action | 1148 | (cl-destructuring-bind (range action marks) action |
| 1149 | (let ((flags (nnimap-marks-to-flags marks))) | 1149 | (let ((flags (nnimap-marks-to-flags marks))) |
| 1150 | (when flags | 1150 | (when flags |
| 1151 | (setq sequence (nnimap-send-command | 1151 | (setq sequence (nnimap-send-command |
| @@ -1408,7 +1408,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1408 | (if (and active uidvalidity unexist) | 1408 | (if (and active uidvalidity unexist) |
| 1409 | ;; Fetch the last 100 flags. | 1409 | ;; Fetch the last 100 flags. |
| 1410 | (setq start (max 1 (- (cdr active) 100))) | 1410 | (setq start (max 1 (- (cdr active) 100))) |
| 1411 | (incf (nnimap-initial-resync nnimap-object)) | 1411 | (cl-incf (nnimap-initial-resync nnimap-object)) |
| 1412 | (setq start 1)) | 1412 | (setq start 1)) |
| 1413 | (push (list (nnimap-send-command "%s %S" command | 1413 | (push (list (nnimap-send-command "%s %S" command |
| 1414 | (utf7-encode group t)) | 1414 | (utf7-encode group t)) |
| @@ -1472,7 +1472,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1472 | (nnimap-update-info info marks))))) | 1472 | (nnimap-update-info info marks))))) |
| 1473 | 1473 | ||
| 1474 | (defun nnimap-update-info (info marks) | 1474 | (defun nnimap-update-info (info marks) |
| 1475 | (destructuring-bind (existing flags high low uidnext start-article | 1475 | (cl-destructuring-bind (existing flags high low uidnext start-article |
| 1476 | permanent-flags uidvalidity | 1476 | permanent-flags uidvalidity |
| 1477 | vanished highestmodseq) marks | 1477 | vanished highestmodseq) marks |
| 1478 | (cond | 1478 | (cond |
| @@ -1725,7 +1725,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1725 | (let (start end articles groups uidnext elems permanent-flags | 1725 | (let (start end articles groups uidnext elems permanent-flags |
| 1726 | uidvalidity vanished highestmodseq) | 1726 | uidvalidity vanished highestmodseq) |
| 1727 | (dolist (elem sequences) | 1727 | (dolist (elem sequences) |
| 1728 | (destructuring-bind (group-sequence flag-sequence totalp group command) | 1728 | (cl-destructuring-bind (group-sequence flag-sequence totalp group command) |
| 1729 | elem | 1729 | elem |
| 1730 | (setq start (point)) | 1730 | (setq start (point)) |
| 1731 | (when (and | 1731 | (when (and |
| @@ -1869,7 +1869,7 @@ Return the server's response to the SELECT or EXAMINE command." | |||
| 1869 | (get-buffer-process (current-buffer)) | 1869 | (get-buffer-process (current-buffer)) |
| 1870 | (nnimap-log-command | 1870 | (nnimap-log-command |
| 1871 | (format "%d %s%s\n" | 1871 | (format "%d %s%s\n" |
| 1872 | (incf nnimap-sequence) | 1872 | (cl-incf nnimap-sequence) |
| 1873 | (apply #'format args) | 1873 | (apply #'format args) |
| 1874 | (if (nnimap-newlinep nnimap-object) | 1874 | (if (nnimap-newlinep nnimap-object) |
| 1875 | "" | 1875 | "" |
| @@ -2166,7 +2166,7 @@ Return the server's response to the SELECT or EXAMINE command." | |||
| 2166 | (let ((specs nil) | 2166 | (let ((specs nil) |
| 2167 | entry) | 2167 | entry) |
| 2168 | (dolist (elem list) | 2168 | (dolist (elem list) |
| 2169 | (destructuring-bind (article spec) elem | 2169 | (cl-destructuring-bind (article spec) elem |
| 2170 | (dolist (group (delete nil (mapcar #'car spec))) | 2170 | (dolist (group (delete nil (mapcar #'car spec))) |
| 2171 | (unless (setq entry (assoc group specs)) | 2171 | (unless (setq entry (assoc group specs)) |
| 2172 | (push (setq entry (list group)) specs)) | 2172 | (push (setq entry (list group)) specs)) |
| @@ -2178,12 +2178,12 @@ Return the server's response to the SELECT or EXAMINE command." | |||
| 2178 | (defun nnimap-transform-split-mail () | 2178 | (defun nnimap-transform-split-mail () |
| 2179 | (goto-char (point-min)) | 2179 | (goto-char (point-min)) |
| 2180 | (let (article bytes) | 2180 | (let (article bytes) |
| 2181 | (block nil | 2181 | (cl-block nil |
| 2182 | (while (not (eobp)) | 2182 | (while (not (eobp)) |
| 2183 | (while (not (looking-at "\\* [0-9]+ FETCH.+UID \\([0-9]+\\)")) | 2183 | (while (not (looking-at "\\* [0-9]+ FETCH.+UID \\([0-9]+\\)")) |
| 2184 | (delete-region (point) (progn (forward-line 1) (point))) | 2184 | (delete-region (point) (progn (forward-line 1) (point))) |
| 2185 | (when (eobp) | 2185 | (when (eobp) |
| 2186 | (return))) | 2186 | (cl-return))) |
| 2187 | (setq article (match-string 1) | 2187 | (setq article (match-string 1) |
| 2188 | bytes (nnimap-get-length)) | 2188 | bytes (nnimap-get-length)) |
| 2189 | (delete-region (line-beginning-position) (line-end-position)) | 2189 | (delete-region (line-beginning-position) (line-end-position)) |
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index 1462578ec20..9f068285e78 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) ; for macro gnus-kill-buffer, at least | 29 | (require 'gnus) ; for macro gnus-kill-buffer, at least |
| 30 | (require 'nnheader) | 30 | (require 'nnheader) |
| @@ -781,7 +781,7 @@ If SOURCE is a directory spec, try to return the group name component." | |||
| 781 | (narrow-to-region start (point)) | 781 | (narrow-to-region start (point)) |
| 782 | (goto-char (point-min)) | 782 | (goto-char (point-min)) |
| 783 | (nnmail-check-duplication message-id func artnum-func) | 783 | (nnmail-check-duplication message-id func artnum-func) |
| 784 | (incf count) | 784 | (cl-incf count) |
| 785 | (setq end (point-max)))) | 785 | (setq end (point-max)))) |
| 786 | (goto-char end)) | 786 | (goto-char end)) |
| 787 | count)) | 787 | count)) |
| @@ -927,7 +927,7 @@ If SOURCE is a directory spec, try to return the group name component." | |||
| 927 | (save-restriction | 927 | (save-restriction |
| 928 | (narrow-to-region start (point)) | 928 | (narrow-to-region start (point)) |
| 929 | (goto-char (point-min)) | 929 | (goto-char (point-min)) |
| 930 | (incf count) | 930 | (cl-incf count) |
| 931 | (nnmail-check-duplication message-id func artnum-func) | 931 | (nnmail-check-duplication message-id func artnum-func) |
| 932 | (setq end (point-max)))) | 932 | (setq end (point-max)))) |
| 933 | (goto-char end))) | 933 | (goto-char end))) |
| @@ -980,7 +980,7 @@ If SOURCE is a directory spec, try to return the group name component." | |||
| 980 | (save-restriction | 980 | (save-restriction |
| 981 | (narrow-to-region start (point)) | 981 | (narrow-to-region start (point)) |
| 982 | (goto-char (point-min)) | 982 | (goto-char (point-min)) |
| 983 | (incf count) | 983 | (cl-incf count) |
| 984 | (nnmail-check-duplication message-id func artnum-func junk-func) | 984 | (nnmail-check-duplication message-id func artnum-func junk-func) |
| 985 | (setq end (point-max)))) | 985 | (setq end (point-max)))) |
| 986 | (goto-char end) | 986 | (goto-char end) |
| @@ -1836,8 +1836,8 @@ be called once per group or once for all groups." | |||
| 1836 | ((error quit) | 1836 | ((error quit) |
| 1837 | (message "Mail source %s failed: %s" source cond) | 1837 | (message "Mail source %s failed: %s" source cond) |
| 1838 | 0))) | 1838 | 0))) |
| 1839 | (incf total new) | 1839 | (cl-incf total new) |
| 1840 | (incf i))) | 1840 | (cl-incf i))) |
| 1841 | ;; If we did indeed read any incoming spools, we save all info. | 1841 | ;; If we did indeed read any incoming spools, we save all info. |
| 1842 | (if (zerop total) | 1842 | (if (zerop total) |
| 1843 | (when mail-source-plugged | 1843 | (when mail-source-plugged |
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el index dc97b32f0bb..d5cfa27c21a 100644 --- a/lisp/gnus/nnmaildir.el +++ b/lisp/gnus/nnmaildir.el | |||
| @@ -68,8 +68,7 @@ | |||
| 68 | (require 'message) | 68 | (require 'message) |
| 69 | (require 'nnmail) | 69 | (require 'nnmail) |
| 70 | 70 | ||
| 71 | (eval-when-compile | 71 | (eval-when-compile (require 'cl-lib)) |
| 72 | (require 'cl)) | ||
| 73 | 72 | ||
| 74 | (defconst nnmaildir-version "Gnus") | 73 | (defconst nnmaildir-version "Gnus") |
| 75 | 74 | ||
| @@ -165,14 +164,14 @@ This variable is set by `nnmaildir-request-article'.") | |||
| 165 | (defmacro nnmaildir--nov-set-mtime (nov value) `(aset ,nov 3 ,value)) | 164 | (defmacro nnmaildir--nov-set-mtime (nov value) `(aset ,nov 3 ,value)) |
| 166 | (defmacro nnmaildir--nov-set-extra (nov value) `(aset ,nov 4 ,value)) | 165 | (defmacro nnmaildir--nov-set-extra (nov value) `(aset ,nov 4 ,value)) |
| 167 | 166 | ||
| 168 | (defstruct nnmaildir--art | 167 | (cl-defstruct nnmaildir--art |
| 169 | (prefix nil :type string) ;; "time.pid.host" | 168 | (prefix nil :type string) ;; "time.pid.host" |
| 170 | (suffix nil :type string) ;; ":2,flags" | 169 | (suffix nil :type string) ;; ":2,flags" |
| 171 | (num nil :type natnum) ;; article number | 170 | (num nil :type natnum) ;; article number |
| 172 | (msgid nil :type string) ;; "<mess.age@id>" | 171 | (msgid nil :type string) ;; "<mess.age@id>" |
| 173 | (nov nil :type vector)) ;; cached nov structure, or nil | 172 | (nov nil :type vector)) ;; cached nov structure, or nil |
| 174 | 173 | ||
| 175 | (defstruct nnmaildir--grp | 174 | (cl-defstruct nnmaildir--grp |
| 176 | (name nil :type string) ;; "group.name" | 175 | (name nil :type string) ;; "group.name" |
| 177 | (new nil :type list) ;; new/ modtime | 176 | (new nil :type list) ;; new/ modtime |
| 178 | (cur nil :type list) ;; cur/ modtime | 177 | (cur nil :type list) ;; cur/ modtime |
| @@ -186,7 +185,7 @@ This variable is set by `nnmaildir-request-article'.") | |||
| 186 | (mmth nil :type vector)) ;; obarray mapping mark name->dir modtime | 185 | (mmth nil :type vector)) ;; obarray mapping mark name->dir modtime |
| 187 | ; ("Mark Mod Time Hash") | 186 | ; ("Mark Mod Time Hash") |
| 188 | 187 | ||
| 189 | (defstruct nnmaildir--srv | 188 | (cl-defstruct nnmaildir--srv |
| 190 | (address nil :type string) ;; server address string | 189 | (address nil :type string) ;; server address string |
| 191 | (method nil :type list) ;; (nnmaildir "address" ...) | 190 | (method nil :type list) ;; (nnmaildir "address" ...) |
| 192 | (prefix nil :type string) ;; "nnmaildir+address:" | 191 | (prefix nil :type string) ;; "nnmaildir+address:" |
| @@ -856,7 +855,7 @@ This variable is set by `nnmaildir-request-article'.") | |||
| 856 | ;; then look in marks directories | 855 | ;; then look in marks directories |
| 857 | (not (file-exists-p (concat cdir prefix))) | 856 | (not (file-exists-p (concat cdir prefix))) |
| 858 | (file-exists-p (concat ndir prefix))) | 857 | (file-exists-p (concat ndir prefix))) |
| 859 | (incf num))))) | 858 | (cl-incf num))))) |
| 860 | (setf (nnmaildir--grp-cache group) (make-vector num nil)) | 859 | (setf (nnmaildir--grp-cache group) (make-vector num nil)) |
| 861 | (let ((inhibit-quit t)) | 860 | (let ((inhibit-quit t)) |
| 862 | (set (intern gname groups) group)) | 861 | (set (intern gname groups) group)) |
| @@ -1732,7 +1731,7 @@ This variable is set by `nnmaildir-request-article'.") | |||
| 1732 | (setq ranges (car action) | 1731 | (setq ranges (car action) |
| 1733 | todo-marks (caddr action)) | 1732 | todo-marks (caddr action)) |
| 1734 | (dolist (mark todo-marks) | 1733 | (dolist (mark todo-marks) |
| 1735 | (pushnew mark all-marks :test #'equal)) | 1734 | (cl-pushnew mark all-marks :test #'equal)) |
| 1736 | (if (numberp (cdr ranges)) (setq ranges (list ranges))) | 1735 | (if (numberp (cdr ranges)) (setq ranges (list ranges))) |
| 1737 | (nnmaildir--nlist-iterate nlist ranges | 1736 | (nnmaildir--nlist-iterate nlist ranges |
| 1738 | (cond ((eq 'del (cadr action)) del-action) | 1737 | (cond ((eq 'del (cadr action)) del-action) |
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el index 3a0035a3116..24188f5c740 100644 --- a/lisp/gnus/nnmairix.el +++ b/lisp/gnus/nnmairix.el | |||
| @@ -134,8 +134,6 @@ | |||
| 134 | 134 | ||
| 135 | ;;; Code: | 135 | ;;; Code: |
| 136 | 136 | ||
| 137 | (eval-when-compile (require 'cl)) ;For (pop (cdr ogroup)). | ||
| 138 | |||
| 139 | (require 'nnoo) | 137 | (require 'nnoo) |
| 140 | (require 'gnus-group) | 138 | (require 'gnus-group) |
| 141 | (require 'gnus-sum) | 139 | (require 'gnus-sum) |
diff --git a/lisp/gnus/nnmbox.el b/lisp/gnus/nnmbox.el index 57d8d2125f5..05342dae001 100644 --- a/lisp/gnus/nnmbox.el +++ b/lisp/gnus/nnmbox.el | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | (require 'nnmail) | 33 | (require 'nnmail) |
| 34 | (require 'nnoo) | 34 | (require 'nnoo) |
| 35 | (require 'gnus-range) | 35 | (require 'gnus-range) |
| 36 | (eval-when-compile (require 'cl)) | ||
| 37 | 36 | ||
| 38 | (nnoo-declare nnmbox) | 37 | (nnoo-declare nnmbox) |
| 39 | 38 | ||
diff --git a/lisp/gnus/nnmh.el b/lisp/gnus/nnmh.el index b8dd3835520..ea07ad75198 100644 --- a/lisp/gnus/nnmh.el +++ b/lisp/gnus/nnmh.el | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | (require 'nnmail) | 33 | (require 'nnmail) |
| 34 | (require 'gnus-start) | 34 | (require 'gnus-start) |
| 35 | (require 'nnoo) | 35 | (require 'nnoo) |
| 36 | (eval-when-compile (require 'cl)) | ||
| 37 | 36 | ||
| 38 | (nnoo-declare nnmh) | 37 | (nnoo-declare nnmh) |
| 39 | 38 | ||
diff --git a/lisp/gnus/nnml.el b/lisp/gnus/nnml.el index a1b7d417ab4..6307e132187 100644 --- a/lisp/gnus/nnml.el +++ b/lisp/gnus/nnml.el | |||
| @@ -35,7 +35,6 @@ | |||
| 35 | (require 'nnheader) | 35 | (require 'nnheader) |
| 36 | (require 'nnmail) | 36 | (require 'nnmail) |
| 37 | (require 'nnoo) | 37 | (require 'nnoo) |
| 38 | (eval-when-compile (require 'cl)) | ||
| 39 | 38 | ||
| 40 | ;; FIXME first is unused in this file. | 39 | ;; FIXME first is unused in this file. |
| 41 | (autoload 'gnus-article-unpropagatable-p "gnus-sum") | 40 | (autoload 'gnus-article-unpropagatable-p "gnus-sum") |
diff --git a/lisp/gnus/nnoo.el b/lisp/gnus/nnoo.el index 6a61d3d09f2..1e69af65a3b 100644 --- a/lisp/gnus/nnoo.el +++ b/lisp/gnus/nnoo.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (require 'nnheader) | 27 | (require 'nnheader) |
| 28 | (eval-when-compile (require 'cl)) | 28 | (eval-when-compile (require 'cl-lib)) |
| 29 | 29 | ||
| 30 | (defvar nnoo-definition-alist nil) | 30 | (defvar nnoo-definition-alist nil) |
| 31 | (defvar nnoo-state-alist nil) | 31 | (defvar nnoo-state-alist nil) |
| @@ -142,7 +142,7 @@ | |||
| 142 | (if (numberp (nth i (cdr m))) | 142 | (if (numberp (nth i (cdr m))) |
| 143 | (push `(nth ,i args) margs) | 143 | (push `(nth ,i args) margs) |
| 144 | (push (nth i (cdr m)) margs)) | 144 | (push (nth i (cdr m)) margs)) |
| 145 | (incf i)) | 145 | (cl-incf i)) |
| 146 | (eval `(deffoo ,(nnoo-symbol backend (nnoo-rest-symbol (car m))) | 146 | (eval `(deffoo ,(nnoo-symbol backend (nnoo-rest-symbol (car m))) |
| 147 | (&rest args) | 147 | (&rest args) |
| 148 | (nnoo-parent-function ',backend ',(car m) | 148 | (nnoo-parent-function ',backend ',(car m) |
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index a04ede67844..c38f7eb79b9 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'nnoo) | 30 | (require 'nnoo) |
| @@ -355,8 +355,8 @@ for decoding when the cdr that the data specify is not available.") | |||
| 355 | (with-current-buffer nntp-server-buffer | 355 | (with-current-buffer nntp-server-buffer |
| 356 | (erase-buffer) | 356 | (erase-buffer) |
| 357 | (dolist (elem nnrss-group-alist) | 357 | (dolist (elem nnrss-group-alist) |
| 358 | (if (third elem) | 358 | (if (nth 2 elem) |
| 359 | (insert (car elem) "\t" (third elem) "\n")))) | 359 | (insert (car elem) "\t" (nth 2 elem) "\n")))) |
| 360 | t) | 360 | t) |
| 361 | 361 | ||
| 362 | (deffoo nnrss-retrieve-groups (groups &optional server) | 362 | (deffoo nnrss-retrieve-groups (groups &optional server) |
| @@ -645,7 +645,7 @@ which RSS 2.0 allows." | |||
| 645 | nnrss-directory)))) | 645 | nnrss-directory)))) |
| 646 | (setq xml (nnrss-fetch file t)) | 646 | (setq xml (nnrss-fetch file t)) |
| 647 | (setq url (or (nth 2 (assoc group nnrss-server-data)) | 647 | (setq url (or (nth 2 (assoc group nnrss-server-data)) |
| 648 | (second (assoc group nnrss-group-alist)))) | 648 | (cadr (assoc group nnrss-group-alist)))) |
| 649 | (unless url | 649 | (unless url |
| 650 | (setq url | 650 | (setq url |
| 651 | (cdr | 651 | (cdr |
| @@ -691,7 +691,7 @@ which RSS 2.0 allows." | |||
| 691 | (if (and len (integerp (setq len (string-to-number len)))) | 691 | (if (and len (integerp (setq len (string-to-number len)))) |
| 692 | ;; actually already in `ls-lisp-format-file-size' but | 692 | ;; actually already in `ls-lisp-format-file-size' but |
| 693 | ;; probably not worth to require it for one function | 693 | ;; probably not worth to require it for one function |
| 694 | (do ((size (/ len 1.0) (/ size 1024.0)) | 694 | (cl-do ((size (/ len 1.0) (/ size 1024.0)) |
| 695 | (post-fixes (list "" "k" "M" "G" "T" "P" "E") | 695 | (post-fixes (list "" "k" "M" "G" "T" "P" "E") |
| 696 | (cdr post-fixes))) | 696 | (cdr post-fixes))) |
| 697 | ((< size 1024) | 697 | ((< size 1024) |
| @@ -705,7 +705,7 @@ which RSS 2.0 allows." | |||
| 705 | (setq enclosure (list url name len type)))) | 705 | (setq enclosure (list url name len type)))) |
| 706 | (push | 706 | (push |
| 707 | (list | 707 | (list |
| 708 | (incf nnrss-group-max) | 708 | (cl-incf nnrss-group-max) |
| 709 | (current-time) | 709 | (current-time) |
| 710 | url | 710 | url |
| 711 | (and subject (nnrss-mime-encode-string subject)) | 711 | (and subject (nnrss-mime-encode-string subject)) |
| @@ -792,7 +792,7 @@ It is useful when `(setq nnrss-use-local t)'." | |||
| 792 | (insert "RSSDIR='" (expand-file-name nnrss-directory) "'\n") | 792 | (insert "RSSDIR='" (expand-file-name nnrss-directory) "'\n") |
| 793 | (dolist (elem nnrss-server-data) | 793 | (dolist (elem nnrss-server-data) |
| 794 | (let ((url (or (nth 2 elem) | 794 | (let ((url (or (nth 2 elem) |
| 795 | (second (assoc (car elem) nnrss-group-alist))))) | 795 | (cadr (assoc (car elem) nnrss-group-alist))))) |
| 796 | (insert "$WGET -q -O \"$RSSDIR\"/'" | 796 | (insert "$WGET -q -O \"$RSSDIR\"/'" |
| 797 | (nnrss-translate-file-chars (concat (car elem) ".xml")) | 797 | (nnrss-translate-file-chars (concat (car elem) ".xml")) |
| 798 | "' '" url "'\n")))) | 798 | "' '" url "'\n")))) |
diff --git a/lisp/gnus/nnspool.el b/lisp/gnus/nnspool.el index c3fc25047b0..128ce7cac66 100644 --- a/lisp/gnus/nnspool.el +++ b/lisp/gnus/nnspool.el | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | (require 'nnheader) | 29 | (require 'nnheader) |
| 30 | (require 'nntp) | 30 | (require 'nntp) |
| 31 | (require 'nnoo) | 31 | (require 'nnoo) |
| 32 | (eval-when-compile (require 'cl)) | 32 | (eval-when-compile (require 'cl-lib)) |
| 33 | 33 | ||
| 34 | ;; Probably this entire thing should be obsolete. | 34 | ;; Probably this entire thing should be obsolete. |
| 35 | ;; It's only used to init nnspool-spool-directory, so why not just | 35 | ;; It's only used to init nnspool-spool-directory, so why not just |
| @@ -172,7 +172,7 @@ there.") | |||
| 172 | (delete-region (point) (point-max))) | 172 | (delete-region (point) (point-max))) |
| 173 | 173 | ||
| 174 | (and do-message | 174 | (and do-message |
| 175 | (zerop (% (incf count) 20)) | 175 | (zerop (% (cl-incf count) 20)) |
| 176 | (nnheader-message 5 "nnspool: Receiving headers... %d%%" | 176 | (nnheader-message 5 "nnspool: Receiving headers... %d%%" |
| 177 | (floor (* count 100.0) number)))) | 177 | (floor (* count 100.0) number)))) |
| 178 | 178 | ||
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index d0d13849370..5291919bab5 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | (nnoo-declare nntp) | 34 | (nnoo-declare nntp) |
| 35 | 35 | ||
| 36 | (eval-when-compile (require 'cl)) | 36 | (eval-when-compile (require 'cl-lib)) |
| 37 | 37 | ||
| 38 | (autoload 'auth-source-search "auth-source") | 38 | (autoload 'auth-source-search "auth-source") |
| 39 | 39 | ||
| @@ -565,7 +565,7 @@ retried once before actually displaying the error report." | |||
| 565 | (nntp-find-connection-buffer nntp-server-buffer))) | 565 | (nntp-find-connection-buffer nntp-server-buffer))) |
| 566 | (nntp-encode-text) | 566 | (nntp-encode-text) |
| 567 | ;; Make sure we did not forget to encode some of the content. | 567 | ;; Make sure we did not forget to encode some of the content. |
| 568 | (assert (save-excursion (goto-char (point-min)) | 568 | (cl-assert (save-excursion (goto-char (point-min)) |
| 569 | (not (re-search-forward "[^\000-\377]" nil t)))) | 569 | (not (re-search-forward "[^\000-\377]" nil t)))) |
| 570 | (mm-disable-multibyte) | 570 | (mm-disable-multibyte) |
| 571 | (process-send-region (nntp-find-connection nntp-server-buffer) | 571 | (process-send-region (nntp-find-connection nntp-server-buffer) |
| @@ -701,7 +701,7 @@ command whose response triggered the error." | |||
| 701 | ;; `articles' is either a list of article numbers | 701 | ;; `articles' is either a list of article numbers |
| 702 | ;; or a list of article IDs. | 702 | ;; or a list of article IDs. |
| 703 | article)) | 703 | article)) |
| 704 | (incf count) | 704 | (cl-incf count) |
| 705 | ;; Every 400 requests we have to read the stream in | 705 | ;; Every 400 requests we have to read the stream in |
| 706 | ;; order to avoid deadlocks. | 706 | ;; order to avoid deadlocks. |
| 707 | (when (or (null articles) ;All requests have been sent. | 707 | (when (or (null articles) ;All requests have been sent. |
| @@ -713,7 +713,7 @@ command whose response triggered the error." | |||
| 713 | ;; Count replies. | 713 | ;; Count replies. |
| 714 | (while (nntp-next-result-arrived-p) | 714 | (while (nntp-next-result-arrived-p) |
| 715 | (setq last-point (point)) | 715 | (setq last-point (point)) |
| 716 | (incf received)) | 716 | (cl-incf received)) |
| 717 | (< received count)) | 717 | (< received count)) |
| 718 | ;; If number of headers is greater than 100, give | 718 | ;; If number of headers is greater than 100, give |
| 719 | ;; informative messages. | 719 | ;; informative messages. |
| @@ -786,7 +786,7 @@ command whose response triggered the error." | |||
| 786 | "^[.]" | 786 | "^[.]" |
| 787 | "^[0-9]") | 787 | "^[0-9]") |
| 788 | nil t) | 788 | nil t) |
| 789 | (incf received)) | 789 | (cl-incf received)) |
| 790 | (setq last-point (point)) | 790 | (setq last-point (point)) |
| 791 | (< received count))) | 791 | (< received count))) |
| 792 | (nntp-accept-response)) | 792 | (nntp-accept-response)) |
| @@ -851,7 +851,7 @@ command whose response triggered the error." | |||
| 851 | (throw 'done nil)) | 851 | (throw 'done nil)) |
| 852 | ;; Send the command to the server. | 852 | ;; Send the command to the server. |
| 853 | (nntp-send-command nil command (pop groups)) | 853 | (nntp-send-command nil command (pop groups)) |
| 854 | (incf count) | 854 | (cl-incf count) |
| 855 | ;; Every 400 requests we have to read the stream in | 855 | ;; Every 400 requests we have to read the stream in |
| 856 | ;; order to avoid deadlocks. | 856 | ;; order to avoid deadlocks. |
| 857 | (when (or (null groups) ;All requests have been sent. | 857 | (when (or (null groups) ;All requests have been sent. |
| @@ -865,7 +865,7 @@ command whose response triggered the error." | |||
| 865 | (goto-char last-point) | 865 | (goto-char last-point) |
| 866 | ;; Count replies. | 866 | ;; Count replies. |
| 867 | (while (re-search-forward "^[0-9]" nil t) | 867 | (while (re-search-forward "^[0-9]" nil t) |
| 868 | (incf received)) | 868 | (cl-incf received)) |
| 869 | (setq last-point (point)) | 869 | (setq last-point (point)) |
| 870 | (< received count))) | 870 | (< received count))) |
| 871 | (nntp-accept-response)))) | 871 | (nntp-accept-response)))) |
| @@ -937,7 +937,7 @@ command whose response triggered the error." | |||
| 937 | ;; `articles' is either a list of article numbers | 937 | ;; `articles' is either a list of article numbers |
| 938 | ;; or a list of article IDs. | 938 | ;; or a list of article IDs. |
| 939 | article)) | 939 | article)) |
| 940 | (incf count) | 940 | (cl-incf count) |
| 941 | ;; Every 400 requests we have to read the stream in | 941 | ;; Every 400 requests we have to read the stream in |
| 942 | ;; order to avoid deadlocks. | 942 | ;; order to avoid deadlocks. |
| 943 | (when (or (null articles) ;All requests have been sent. | 943 | (when (or (null articles) ;All requests have been sent. |
| @@ -950,7 +950,7 @@ command whose response triggered the error." | |||
| 950 | (while (nntp-next-result-arrived-p) | 950 | (while (nntp-next-result-arrived-p) |
| 951 | (aset map received (cons (aref map received) (point))) | 951 | (aset map received (cons (aref map received) (point))) |
| 952 | (setq last-point (point)) | 952 | (setq last-point (point)) |
| 953 | (incf received)) | 953 | (cl-incf received)) |
| 954 | (< received count)) | 954 | (< received count)) |
| 955 | ;; If number of headers is greater than 100, give | 955 | ;; If number of headers is greater than 100, give |
| 956 | ;; informative messages. | 956 | ;; informative messages. |
| @@ -1572,7 +1572,7 @@ If SEND-IF-FORCE, only send authinfo to the server if the | |||
| 1572 | ;; Count replies. | 1572 | ;; Count replies. |
| 1573 | (while (re-search-forward "^\\([0-9][0-9][0-9]\\) .*\n" | 1573 | (while (re-search-forward "^\\([0-9][0-9][0-9]\\) .*\n" |
| 1574 | nil t) | 1574 | nil t) |
| 1575 | (incf received) | 1575 | (cl-incf received) |
| 1576 | (setq status (match-string 1)) | 1576 | (setq status (match-string 1)) |
| 1577 | (if (string-match "^[45]" status) | 1577 | (if (string-match "^[45]" status) |
| 1578 | (setq status 'error) | 1578 | (setq status 'error) |
diff --git a/lisp/gnus/nnvirtual.el b/lisp/gnus/nnvirtual.el index 397d44ee2ac..777c5c1bbe0 100644 --- a/lisp/gnus/nnvirtual.el +++ b/lisp/gnus/nnvirtual.el | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | (require 'gnus-start) | 38 | (require 'gnus-start) |
| 39 | (require 'gnus-sum) | 39 | (require 'gnus-sum) |
| 40 | (require 'gnus-msg) | 40 | (require 'gnus-msg) |
| 41 | (eval-when-compile (require 'cl)) | 41 | (eval-when-compile (require 'cl-lib)) |
| 42 | 42 | ||
| 43 | (nnoo-declare nnvirtual) | 43 | (nnoo-declare nnvirtual) |
| 44 | 44 | ||
| @@ -774,13 +774,13 @@ based on the marks on the component groups." | |||
| 774 | 774 | ||
| 775 | ;; We need to convert the unreads to reads. We compress the | 775 | ;; We need to convert the unreads to reads. We compress the |
| 776 | ;; sequence as we go, otherwise it could be huge. | 776 | ;; sequence as we go, otherwise it could be huge. |
| 777 | (while (and (<= (incf i) nnvirtual-mapping-len) | 777 | (while (and (<= (cl-incf i) nnvirtual-mapping-len) |
| 778 | unreads) | 778 | unreads) |
| 779 | (if (= i (car unreads)) | 779 | (if (= i (car unreads)) |
| 780 | (setq unreads (cdr unreads)) | 780 | (setq unreads (cdr unreads)) |
| 781 | ;; try to get a range. | 781 | ;; try to get a range. |
| 782 | (setq beg i) | 782 | (setq beg i) |
| 783 | (while (and (<= (incf i) nnvirtual-mapping-len) | 783 | (while (and (<= (cl-incf i) nnvirtual-mapping-len) |
| 784 | (not (= i (car unreads))))) | 784 | (not (= i (car unreads))))) |
| 785 | (setq i (- i 1)) | 785 | (setq i (- i 1)) |
| 786 | (if (= i beg) | 786 | (if (= i beg) |
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el index cac2dae8ebb..3b63e71dcd1 100644 --- a/lisp/gnus/nnweb.el +++ b/lisp/gnus/nnweb.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | 28 | ||
| 29 | (require 'nnoo) | 29 | (require 'nnoo) |
| 30 | (require 'message) | 30 | (require 'message) |
| @@ -33,9 +33,7 @@ | |||
| 33 | (require 'nnmail) | 33 | (require 'nnmail) |
| 34 | (require 'mm-util) | 34 | (require 'mm-util) |
| 35 | (require 'mm-url) | 35 | (require 'mm-url) |
| 36 | (eval-and-compile | 36 | (require 'url) |
| 37 | (ignore-errors | ||
| 38 | (require 'url))) | ||
| 39 | 37 | ||
| 40 | (nnoo-declare nnweb) | 38 | (nnoo-declare nnweb) |
| 41 | 39 | ||
| @@ -362,11 +360,11 @@ Valid types include `google', `dejanews', and `gmane'.") | |||
| 362 | (current-time-string))) | 360 | (current-time-string))) |
| 363 | (setq From (match-string 4))) | 361 | (setq From (match-string 4))) |
| 364 | (widen) | 362 | (widen) |
| 365 | (incf i) | 363 | (cl-incf i) |
| 366 | (unless (nnweb-get-hashtb url) | 364 | (unless (nnweb-get-hashtb url) |
| 367 | (push | 365 | (push |
| 368 | (list | 366 | (list |
| 369 | (incf (cdr active)) | 367 | (cl-incf (cdr active)) |
| 370 | (make-full-mail-header | 368 | (make-full-mail-header |
| 371 | (cdr active) (if Newsgroups | 369 | (cdr active) (if Newsgroups |
| 372 | (concat "(" Newsgroups ") " Subject) | 370 | (concat "(" Newsgroups ") " Subject) |
| @@ -398,7 +396,7 @@ Valid types include `google', `dejanews', and `gmane'.") | |||
| 398 | (nconc nnweb-articles (nnweb-google-parse-1))) | 396 | (nconc nnweb-articles (nnweb-google-parse-1))) |
| 399 | ;; Check if there are more articles to fetch | 397 | ;; Check if there are more articles to fetch |
| 400 | (goto-char (point-min)) | 398 | (goto-char (point-min)) |
| 401 | (incf i 100) | 399 | (cl-incf i 100) |
| 402 | (if (or (not (re-search-forward | 400 | (if (or (not (re-search-forward |
| 403 | "<a [^>]+href=\"\n?\\([^>\" \n\t]+\\)[^<]*<img[^>]+src=[^>]+next" | 401 | "<a [^>]+href=\"\n?\\([^>\" \n\t]+\\)[^<]*<img[^>]+src=[^>]+next" |
| 404 | nil t)) | 402 | nil t)) |
| @@ -478,7 +476,7 @@ Valid types include `google', `dejanews', and `gmane'.") | |||
| 478 | (rfc2047-encode-string subject)) | 476 | (rfc2047-encode-string subject)) |
| 479 | 477 | ||
| 480 | (unless (nnweb-get-hashtb (mail-header-xref header)) | 478 | (unless (nnweb-get-hashtb (mail-header-xref header)) |
| 481 | (mail-header-set-number header (incf (cdr active))) | 479 | (mail-header-set-number header (cl-incf (cdr active))) |
| 482 | (push (list (mail-header-number header) header) map) | 480 | (push (list (mail-header-number header) header) map) |
| 483 | (nnweb-set-hashtb (cadar map) (car map)))))) | 481 | (nnweb-set-hashtb (cadar map) (car map)))))) |
| 484 | (forward-line 1))) | 482 | (forward-line 1))) |
diff --git a/lisp/gnus/score-mode.el b/lisp/gnus/score-mode.el index 0ac56a9a3d9..9bceb4ead90 100644 --- a/lisp/gnus/score-mode.el +++ b/lisp/gnus/score-mode.el | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | ||
| 28 | (require 'mm-util) ; for mm-universal-coding-system | 27 | (require 'mm-util) ; for mm-universal-coding-system |
| 29 | (require 'gnus-util) ; for gnus-pp, gnus-run-mode-hooks | 28 | (require 'gnus-util) ; for gnus-pp, gnus-run-mode-hooks |
| 30 | 29 | ||
diff --git a/lisp/gnus/smiley.el b/lisp/gnus/smiley.el index 389ae67d1a4..226a4cecdcb 100644 --- a/lisp/gnus/smiley.el +++ b/lisp/gnus/smiley.el | |||
| @@ -47,7 +47,6 @@ | |||
| 47 | 47 | ||
| 48 | ;;; Code: | 48 | ;;; Code: |
| 49 | 49 | ||
| 50 | (eval-when-compile (require 'cl)) | ||
| 51 | (require 'nnheader) | 50 | (require 'nnheader) |
| 52 | (require 'gnus-art) | 51 | (require 'gnus-art) |
| 53 | 52 | ||
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el index 97e63404c4f..710e0e83cf9 100644 --- a/lisp/gnus/spam.el +++ b/lisp/gnus/spam.el | |||
| @@ -38,8 +38,6 @@ | |||
| 38 | 38 | ||
| 39 | ;;{{{ compilation directives and autoloads/requires | 39 | ;;{{{ compilation directives and autoloads/requires |
| 40 | 40 | ||
| 41 | (eval-when-compile (require 'cl)) | ||
| 42 | |||
| 43 | (require 'message) ;for the message-fetch-field functions | 41 | (require 'message) ;for the message-fetch-field functions |
| 44 | (require 'gnus-sum) | 42 | (require 'gnus-sum) |
| 45 | (require 'gnus-uu) ; because of key prefix issues | 43 | (require 'gnus-uu) ; because of key prefix issues |
| @@ -51,6 +49,8 @@ | |||
| 51 | ;; for nnimap-split-download-body-default | 49 | ;; for nnimap-split-download-body-default |
| 52 | (eval-when-compile (require 'nnimap)) | 50 | (eval-when-compile (require 'nnimap)) |
| 53 | 51 | ||
| 52 | (eval-when-compile (require 'cl-lib)) | ||
| 53 | |||
| 54 | ;; autoload query-dig | 54 | ;; autoload query-dig |
| 55 | (autoload 'query-dig "dig") | 55 | (autoload 'query-dig "dig") |
| 56 | 56 | ||
| @@ -1164,12 +1164,12 @@ backends)." | |||
| 1164 | (defun spam-article-sort-by-spam-status (h1 h2) | 1164 | (defun spam-article-sort-by-spam-status (h1 h2) |
| 1165 | "Sort articles by score." | 1165 | "Sort articles by score." |
| 1166 | (let (result) | 1166 | (let (result) |
| 1167 | (dolist (header (spam-necessary-extra-headers)) | 1167 | (cl-dolist (header (spam-necessary-extra-headers)) |
| 1168 | (let ((s1 (spam-summary-score h1 header)) | 1168 | (let ((s1 (spam-summary-score h1 header)) |
| 1169 | (s2 (spam-summary-score h2 header))) | 1169 | (s2 (spam-summary-score h2 header))) |
| 1170 | (unless (= s1 s2) | 1170 | (unless (= s1 s2) |
| 1171 | (setq result (< s1 s2)) | 1171 | (setq result (< s1 s2)) |
| 1172 | (return)))) | 1172 | (cl-return)))) |
| 1173 | result)) | 1173 | result)) |
| 1174 | 1174 | ||
| 1175 | (defvar spam-spamassassin-score-regexp | 1175 | (defvar spam-spamassassin-score-regexp |
| @@ -1205,14 +1205,14 @@ Note this has to be fast." | |||
| 1205 | With SPECIFIC-HEADER, returns only that header's score. | 1205 | With SPECIFIC-HEADER, returns only that header's score. |
| 1206 | Will not return a nil score." | 1206 | Will not return a nil score." |
| 1207 | (let (score) | 1207 | (let (score) |
| 1208 | (dolist (header | 1208 | (cl-dolist (header |
| 1209 | (if specific-header | 1209 | (if specific-header |
| 1210 | (list specific-header) | 1210 | (list specific-header) |
| 1211 | (spam-necessary-extra-headers))) | 1211 | (spam-necessary-extra-headers))) |
| 1212 | (setq score | 1212 | (setq score |
| 1213 | (spam-extra-header-to-number header headers)) | 1213 | (spam-extra-header-to-number header headers)) |
| 1214 | (when score | 1214 | (when score |
| 1215 | (return))) | 1215 | (cl-return))) |
| 1216 | (or score 0))) | 1216 | (or score 0))) |
| 1217 | 1217 | ||
| 1218 | (defun spam-generic-score (&optional recheck) | 1218 | (defun spam-generic-score (&optional recheck) |
| @@ -1661,10 +1661,10 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." | |||
| 1661 | article-cannot-be-faked) | 1661 | article-cannot-be-faked) |
| 1662 | 1662 | ||
| 1663 | 1663 | ||
| 1664 | (dolist (backend methods) | 1664 | (cl-dolist (backend methods) |
| 1665 | (when (spam-backend-statistical-p backend) | 1665 | (when (spam-backend-statistical-p backend) |
| 1666 | (setq article-cannot-be-faked t) | 1666 | (setq article-cannot-be-faked t) |
| 1667 | (return))) | 1667 | (cl-return))) |
| 1668 | 1668 | ||
| 1669 | (when (memq 'default methods) | 1669 | (when (memq 'default methods) |
| 1670 | (setq article-cannot-be-faked t)) | 1670 | (setq article-cannot-be-faked t)) |
| @@ -1749,7 +1749,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." | |||
| 1749 | ;; eliminate duplicates | 1749 | ;; eliminate duplicates |
| 1750 | (dolist (article (copy-sequence ulist)) | 1750 | (dolist (article (copy-sequence ulist)) |
| 1751 | (when (memq article rlist) | 1751 | (when (memq article rlist) |
| 1752 | (incf delcount) | 1752 | (cl-incf delcount) |
| 1753 | (setq rlist (delq article rlist)) | 1753 | (setq rlist (delq article rlist)) |
| 1754 | (setq ulist (delq article ulist)))) | 1754 | (setq ulist (delq article ulist)))) |
| 1755 | 1755 | ||
| @@ -2299,10 +2299,10 @@ With a non-nil REMOVE, remove the ADDRESSES." | |||
| 2299 | (when (stringp from) | 2299 | (when (stringp from) |
| 2300 | (spam-filelist-build-cache type) | 2300 | (spam-filelist-build-cache type) |
| 2301 | (let (found) | 2301 | (let (found) |
| 2302 | (dolist (address (gethash type spam-caches)) | 2302 | (cl-dolist (address (gethash type spam-caches)) |
| 2303 | (when (and address (string-match address from)) | 2303 | (when (and address (string-match address from)) |
| 2304 | (setq found t) | 2304 | (setq found t) |
| 2305 | (return))) | 2305 | (cl-return))) |
| 2306 | found))) | 2306 | found))) |
| 2307 | 2307 | ||
| 2308 | ;;; returns t if the sender is in the whitelist, nil or | 2308 | ;;; returns t if the sender is in the whitelist, nil or |