aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2021-01-30 00:35:24 -0500
committerStefan Monnier2021-01-30 12:27:34 -0500
commitd6f8bce6d4595bc1af53772fa0f302e16adcbf23 (patch)
tree695d1b892af359d48fbf0e3c41760500fc4ac407
parente1e9e4eefa41bacb6b412e57a569440a0847e4fa (diff)
downloademacs-d6f8bce6d4595bc1af53772fa0f302e16adcbf23.tar.gz
emacs-d6f8bce6d4595bc1af53772fa0f302e16adcbf23.zip
* lisp/gnus: Quote functions with #'
To get better warnings, try and use #' to quote function names. * lisp/gnus/canlock.el: * lisp/gnus/deuglify.el: * lisp/gnus/gmm-utils.el: * lisp/gnus/gnus-agent.el: * lisp/gnus/gnus-art.el: * lisp/gnus/gnus-bookmark.el: * lisp/gnus/gnus-cache.el: * lisp/gnus/gnus-cite.el: * lisp/gnus/gnus-cus.el: * lisp/gnus/gnus-delay.el: * lisp/gnus/gnus-diary.el: * lisp/gnus/gnus-dired.el: * lisp/gnus/gnus-draft.el: * lisp/gnus/gnus-fun.el: * lisp/gnus/gnus-group.el: * lisp/gnus/gnus-html.el: * lisp/gnus/gnus-int.el: * lisp/gnus/gnus-kill.el: * lisp/gnus/gnus-mlspl.el: * lisp/gnus/gnus-msg.el: * lisp/gnus/gnus-notifications.el: * lisp/gnus/gnus-picon.el: * lisp/gnus/gnus-registry.el: * lisp/gnus/gnus-rfc1843.el: * lisp/gnus/gnus-salt.el: * lisp/gnus/gnus-score.el: * lisp/gnus/gnus-search.el: * lisp/gnus/gnus-sieve.el: * lisp/gnus/gnus-srvr.el: * lisp/gnus/gnus-start.el: * lisp/gnus/gnus-topic.el: * lisp/gnus/gnus-undo.el: * lisp/gnus/gnus-util.el: * lisp/gnus/gnus-uu.el: * lisp/gnus/gnus.el: * lisp/gnus/mail-source.el: * lisp/gnus/message.el: * lisp/gnus/mm-archive.el: * lisp/gnus/mm-decode.el: * lisp/gnus/mm-url.el: * lisp/gnus/mm-util.el: * lisp/gnus/mm-view.el: * lisp/gnus/mml-sec.el: * lisp/gnus/mml-smime.el: * lisp/gnus/mml.el: * lisp/gnus/nnagent.el: * lisp/gnus/nndiary.el: * lisp/gnus/nndoc.el: * lisp/gnus/nndraft.el: * lisp/gnus/nnfolder.el: * lisp/gnus/nnheader.el: * lisp/gnus/nnmail.el: * lisp/gnus/nnmaildir.el: * lisp/gnus/nnmairix.el: * lisp/gnus/nnmh.el: * lisp/gnus/nnml.el: * lisp/gnus/nnrss.el: * lisp/gnus/nnselect.el: * lisp/gnus/nnspool.el: * lisp/gnus/nnvirtual.el: * lisp/gnus/nnweb.el: * lisp/gnus/smiley.el: * lisp/gnus/smime.el: * lisp/gnus/spam-report.el: * lisp/gnus/spam-stat.el: * lisp/gnus/spam-wash.el: * lisp/gnus/spam.el:
-rw-r--r--lisp/gnus/canlock.el2
-rw-r--r--lisp/gnus/deuglify.el6
-rw-r--r--lisp/gnus/gmm-utils.el14
-rw-r--r--lisp/gnus/gnus-agent.el27
-rw-r--r--lisp/gnus/gnus-art.el4
-rw-r--r--lisp/gnus/gnus-bookmark.el2
-rw-r--r--lisp/gnus/gnus-cache.el6
-rw-r--r--lisp/gnus/gnus-cite.el6
-rw-r--r--lisp/gnus/gnus-cus.el2
-rw-r--r--lisp/gnus/gnus-delay.el2
-rw-r--r--lisp/gnus/gnus-diary.el8
-rw-r--r--lisp/gnus/gnus-dired.el2
-rw-r--r--lisp/gnus/gnus-draft.el2
-rw-r--r--lisp/gnus/gnus-fun.el6
-rw-r--r--lisp/gnus/gnus-group.el26
-rw-r--r--lisp/gnus/gnus-html.el4
-rw-r--r--lisp/gnus/gnus-int.el2
-rw-r--r--lisp/gnus/gnus-kill.el2
-rw-r--r--lisp/gnus/gnus-mlspl.el4
-rw-r--r--lisp/gnus/gnus-msg.el27
-rw-r--r--lisp/gnus/gnus-notifications.el2
-rw-r--r--lisp/gnus/gnus-picon.el19
-rw-r--r--lisp/gnus/gnus-registry.el2
-rw-r--r--lisp/gnus/gnus-rfc1843.el6
-rw-r--r--lisp/gnus/gnus-salt.el4
-rw-r--r--lisp/gnus/gnus-score.el42
-rw-r--r--lisp/gnus/gnus-search.el7
-rw-r--r--lisp/gnus/gnus-sieve.el8
-rw-r--r--lisp/gnus/gnus-srvr.el5
-rw-r--r--lisp/gnus/gnus-start.el6
-rw-r--r--lisp/gnus/gnus-topic.el52
-rw-r--r--lisp/gnus/gnus-undo.el8
-rw-r--r--lisp/gnus/gnus-util.el20
-rw-r--r--lisp/gnus/gnus-uu.el26
-rw-r--r--lisp/gnus/gnus.el2
-rw-r--r--lisp/gnus/mail-source.el32
-rw-r--r--lisp/gnus/message.el45
-rw-r--r--lisp/gnus/mm-archive.el4
-rw-r--r--lisp/gnus/mm-decode.el11
-rw-r--r--lisp/gnus/mm-url.el2
-rw-r--r--lisp/gnus/mm-util.el6
-rw-r--r--lisp/gnus/mm-view.el10
-rw-r--r--lisp/gnus/mml-sec.el10
-rw-r--r--lisp/gnus/mml-smime.el6
-rw-r--r--lisp/gnus/mml.el10
-rw-r--r--lisp/gnus/nnagent.el4
-rw-r--r--lisp/gnus/nndiary.el30
-rw-r--r--lisp/gnus/nndoc.el6
-rw-r--r--lisp/gnus/nndraft.el10
-rw-r--r--lisp/gnus/nnfolder.el2
-rw-r--r--lisp/gnus/nnheader.el53
-rw-r--r--lisp/gnus/nnmail.el12
-rw-r--r--lisp/gnus/nnmaildir.el20
-rw-r--r--lisp/gnus/nnmairix.el32
-rw-r--r--lisp/gnus/nnmh.el20
-rw-r--r--lisp/gnus/nnml.el14
-rw-r--r--lisp/gnus/nnrss.el2
-rw-r--r--lisp/gnus/nnselect.el38
-rw-r--r--lisp/gnus/nnspool.el6
-rw-r--r--lisp/gnus/nnvirtual.el12
-rw-r--r--lisp/gnus/nnweb.el6
-rw-r--r--lisp/gnus/smiley.el19
-rw-r--r--lisp/gnus/smime.el12
-rw-r--r--lisp/gnus/spam-report.el8
-rw-r--r--lisp/gnus/spam-stat.el12
-rw-r--r--lisp/gnus/spam-wash.el4
-rw-r--r--lisp/gnus/spam.el188
67 files changed, 512 insertions, 497 deletions
diff --git a/lisp/gnus/canlock.el b/lisp/gnus/canlock.el
index 6c8c1a5927a..e203ebc0a99 100644
--- a/lisp/gnus/canlock.el
+++ b/lisp/gnus/canlock.el
@@ -30,7 +30,7 @@
30;; Key) header in a news article by using a hook which will be evaluated 30;; Key) header in a news article by using a hook which will be evaluated
31;; just before sending an article as follows: 31;; just before sending an article as follows:
32;; 32;;
33;; (add-hook '*e**a*e-header-hook 'canlock-insert-header t) 33;; (add-hook '*e**a*e-header-hook #'canlock-insert-header t)
34;; 34;;
35;; Verifying Cancel-Lock is mainly a function of news servers, however, 35;; Verifying Cancel-Lock is mainly a function of news servers, however,
36;; you can verify your own article using the command `canlock-verify' in 36;; you can verify your own article using the command `canlock-verify' in
diff --git a/lisp/gnus/deuglify.el b/lisp/gnus/deuglify.el
index b77dcdd4624..4f9ac26ed84 100644
--- a/lisp/gnus/deuglify.el
+++ b/lisp/gnus/deuglify.el
@@ -155,15 +155,15 @@
155;; To automatically invoke deuglification on every article you read, 155;; To automatically invoke deuglification on every article you read,
156;; put something like that in your .gnus: 156;; put something like that in your .gnus:
157;; 157;;
158;; (add-hook 'gnus-article-decode-hook 'gnus-article-outlook-unwrap-lines) 158;; (add-hook 'gnus-article-decode-hook #'gnus-article-outlook-unwrap-lines)
159;; 159;;
160;; or _one_ of the following lines: 160;; or _one_ of the following lines:
161;; 161;;
162;; ;; repair broken attribution lines 162;; ;; repair broken attribution lines
163;; (add-hook 'gnus-article-decode-hook 'gnus-article-outlook-repair-attribution) 163;; (add-hook 'gnus-article-decode-hook #'gnus-article-outlook-repair-attribution)
164;; 164;;
165;; ;; repair broken attribution lines and citations 165;; ;; repair broken attribution lines and citations
166;; (add-hook 'gnus-article-decode-hook 'gnus-article-outlook-rearrange-citation) 166;; (add-hook 'gnus-article-decode-hook #'gnus-article-outlook-rearrange-citation)
167;; 167;;
168;; Note that there always may be some false positives, so I suggest 168;; Note that there always may be some false positives, so I suggest
169;; using the manual invocation. After deuglification you may want to 169;; using the manual invocation. After deuglification you may want to
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el
index ab97c593d9c..5e27a2f93a2 100644
--- a/lisp/gnus/gmm-utils.el
+++ b/lisp/gnus/gmm-utils.el
@@ -69,18 +69,18 @@ Guideline for numbers:
697 - not very important messages on stuff 697 - not very important messages on stuff
709 - messages inside loops." 709 - messages inside loops."
71 (if (<= level gmm-verbose) 71 (if (<= level gmm-verbose)
72 (apply 'message args) 72 (apply #'message args)
73 ;; We have to do this format thingy here even if the result isn't 73 ;; We have to do this format thingy here even if the result isn't
74 ;; shown - the return value has to be the same as the return value 74 ;; shown - the return value has to be the same as the return value
75 ;; from `message'. 75 ;; from `message'.
76 (apply 'format args))) 76 (apply #'format args)))
77 77
78;;;###autoload 78;;;###autoload
79(defun gmm-error (level &rest args) 79(defun gmm-error (level &rest args)
80 "Beep an error if LEVEL is equal to or less than `gmm-verbose'. 80 "Beep an error if LEVEL is equal to or less than `gmm-verbose'.
81ARGS are passed to `message'." 81ARGS are passed to `message'."
82 (when (<= (floor level) gmm-verbose) 82 (when (<= (floor level) gmm-verbose)
83 (apply 'message args) 83 (apply #'message args)
84 (ding) 84 (ding)
85 (let (duration) 85 (let (duration)
86 (when (and (floatp level) 86 (when (and (floatp level)
@@ -215,18 +215,18 @@ DEFAULT-MAP specifies the default key map for ICON-LIST."
215 ;; The dummy `gmm-ignore', see `gmm-tool-bar-item' 215 ;; The dummy `gmm-ignore', see `gmm-tool-bar-item'
216 ;; widget. Suppress tooltip by adding `:enable nil'. 216 ;; widget. Suppress tooltip by adding `:enable nil'.
217 (if (fboundp 'tool-bar-local-item) 217 (if (fboundp 'tool-bar-local-item)
218 (apply 'tool-bar-local-item icon nil nil 218 (apply #'tool-bar-local-item icon nil nil
219 map :enable nil props) 219 map :enable nil props)
220 ;; (tool-bar-local-item ICON DEF KEY MAP &rest PROPS) 220 ;; (tool-bar-local-item ICON DEF KEY MAP &rest PROPS)
221 ;; (tool-bar-add-item ICON DEF KEY &rest PROPS) 221 ;; (tool-bar-add-item ICON DEF KEY &rest PROPS)
222 (apply 'tool-bar-add-item icon nil nil :enable nil props))) 222 (apply #'tool-bar-add-item icon nil nil :enable nil props)))
223 ((equal fmap t) ;; Not a menu command 223 ((equal fmap t) ;; Not a menu command
224 (apply 'tool-bar-local-item 224 (apply #'tool-bar-local-item
225 icon command 225 icon command
226 (intern icon) ;; reuse icon or fmap here? 226 (intern icon) ;; reuse icon or fmap here?
227 map props)) 227 map props))
228 (t ;; A menu command 228 (t ;; A menu command
229 (apply 'tool-bar-local-item-from-menu 229 (apply #'tool-bar-local-item-from-menu
230 ;; (apply 'tool-bar-local-item icon def key 230 ;; (apply 'tool-bar-local-item icon def key
231 ;; tool-bar-map props) 231 ;; tool-bar-map props)
232 command icon map (symbol-value fmap) 232 command icon map (symbol-value fmap)
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index 46a4af8214a..cb679b849f5 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -248,9 +248,9 @@ Actually a hash table holding subjects mapped to t.")
248 (gnus-agent-read-servers) 248 (gnus-agent-read-servers)
249 (gnus-category-read) 249 (gnus-category-read)
250 (gnus-agent-create-buffer) 250 (gnus-agent-create-buffer)
251 (add-hook 'gnus-group-mode-hook 'gnus-agent-mode) 251 (add-hook 'gnus-group-mode-hook #'gnus-agent-mode)
252 (add-hook 'gnus-summary-mode-hook 'gnus-agent-mode) 252 (add-hook 'gnus-summary-mode-hook #'gnus-agent-mode)
253 (add-hook 'gnus-server-mode-hook 'gnus-agent-mode)) 253 (add-hook 'gnus-server-mode-hook #'gnus-agent-mode))
254 254
255(defun gnus-agent-create-buffer () 255(defun gnus-agent-create-buffer ()
256 (if (gnus-buffer-live-p gnus-agent-overview-buffer) 256 (if (gnus-buffer-live-p gnus-agent-overview-buffer)
@@ -701,7 +701,7 @@ be a select method."
701 (message-narrow-to-headers) 701 (message-narrow-to-headers)
702 (let* ((gcc (mail-fetch-field "gcc" nil t)) 702 (let* ((gcc (mail-fetch-field "gcc" nil t))
703 (methods (and gcc 703 (methods (and gcc
704 (mapcar 'gnus-inews-group-method 704 (mapcar #'gnus-inews-group-method
705 (message-unquote-tokens 705 (message-unquote-tokens
706 (message-tokenize-header 706 (message-tokenize-header
707 gcc " ,"))))) 707 gcc " ,")))))
@@ -1057,7 +1057,8 @@ article's mark is toggled."
1057 (let* ((alist (gnus-agent-load-alist gnus-newsgroup-name)) 1057 (let* ((alist (gnus-agent-load-alist gnus-newsgroup-name))
1058 (headers (sort (mapcar (lambda (h) 1058 (headers (sort (mapcar (lambda (h)
1059 (mail-header-number h)) 1059 (mail-header-number h))
1060 gnus-newsgroup-headers) '<)) 1060 gnus-newsgroup-headers)
1061 #'<))
1061 (cached (and gnus-use-cache gnus-newsgroup-cached)) 1062 (cached (and gnus-use-cache gnus-newsgroup-cached))
1062 (undownloaded (list nil)) 1063 (undownloaded (list nil))
1063 (tail-undownloaded undownloaded) 1064 (tail-undownloaded undownloaded)
@@ -1128,7 +1129,7 @@ downloadable."
1128 (when gnus-newsgroup-processable 1129 (when gnus-newsgroup-processable
1129 (setq gnus-newsgroup-downloadable 1130 (setq gnus-newsgroup-downloadable
1130 (let* ((dl gnus-newsgroup-downloadable) 1131 (let* ((dl gnus-newsgroup-downloadable)
1131 (processable (sort (copy-tree gnus-newsgroup-processable) '<)) 1132 (processable (sort (copy-tree gnus-newsgroup-processable) #'<))
1132 (gnus-newsgroup-downloadable processable)) 1133 (gnus-newsgroup-downloadable processable))
1133 (gnus-agent-summary-fetch-group) 1134 (gnus-agent-summary-fetch-group)
1134 1135
@@ -1820,7 +1821,7 @@ article numbers will be returned."
1820 (dolist (arts (gnus-info-marks (gnus-get-info group))) 1821 (dolist (arts (gnus-info-marks (gnus-get-info group)))
1821 (unless (memq (car arts) '(seen recent killed cache)) 1822 (unless (memq (car arts) '(seen recent killed cache))
1822 (setq articles (gnus-range-add articles (cdr arts))))) 1823 (setq articles (gnus-range-add articles (cdr arts)))))
1823 (setq articles (sort (gnus-uncompress-sequence articles) '<))) 1824 (setq articles (sort (gnus-uncompress-sequence articles) #'<)))
1824 1825
1825 ;; At this point, I have the list of articles to consider for 1826 ;; At this point, I have the list of articles to consider for
1826 ;; fetching. This is the list that I'll return to my caller. Some 1827 ;; fetching. This is the list that I'll return to my caller. Some
@@ -2066,7 +2067,7 @@ doesn't exist, to valid the overview buffer."
2066 alist (cdr alist)) 2067 alist (cdr alist))
2067 (while sequence 2068 (while sequence
2068 (push (cons (pop sequence) state) uncomp))) 2069 (push (cons (pop sequence) state) uncomp)))
2069 (setq alist (sort uncomp 'car-less-than-car))) 2070 (setq alist (sort uncomp #'car-less-than-car)))
2070 (setq changed-version (not (= 2 gnus-agent-article-alist-save-format))))) 2071 (setq changed-version (not (= 2 gnus-agent-article-alist-save-format)))))
2071 (when changed-version 2072 (when changed-version
2072 (let ((gnus-agent-article-alist alist)) 2073 (let ((gnus-agent-article-alist alist))
@@ -2408,13 +2409,13 @@ modified) original contents, they are first saved to their own file."
2408 (setq marked-articles (nconc (gnus-uncompress-range arts) 2409 (setq marked-articles (nconc (gnus-uncompress-range arts)
2409 marked-articles)) 2410 marked-articles))
2410 )))) 2411 ))))
2411 (setq marked-articles (sort marked-articles '<)) 2412 (setq marked-articles (sort marked-articles #'<))
2412 2413
2413 ;; Fetch any new articles from the server 2414 ;; Fetch any new articles from the server
2414 (setq articles (gnus-agent-fetch-headers group)) 2415 (setq articles (gnus-agent-fetch-headers group))
2415 2416
2416 ;; Merge new articles with marked 2417 ;; Merge new articles with marked
2417 (setq articles (sort (append marked-articles articles) '<)) 2418 (setq articles (sort (append marked-articles articles) #'<))
2418 2419
2419 (when articles 2420 (when articles
2420 ;; Parse them and see which articles we want to fetch. 2421 ;; Parse them and see which articles we want to fetch.
@@ -3127,7 +3128,7 @@ FORCE is equivalent to setting the expiration predicates to true."
3127 (gnus-uncompress-range 3128 (gnus-uncompress-range
3128 (cons (caar alist) 3129 (cons (caar alist)
3129 (caar (last alist)))) 3130 (caar (last alist))))
3130 (sort articles '<))))) 3131 (sort articles #'<)))))
3131 (marked ;; More articles that are excluded from the 3132 (marked ;; More articles that are excluded from the
3132 ;; expiration process 3133 ;; expiration process
3133 (cond (gnus-agent-expire-all 3134 (cond (gnus-agent-expire-all
@@ -3859,7 +3860,7 @@ If REREAD is not nil, downloaded articles are marked as unread."
3859 (string-to-number name))) 3860 (string-to-number name)))
3860 (directory-files 3861 (directory-files
3861 dir nil "\\`[0-9]+\\'" t))) 3862 dir nil "\\`[0-9]+\\'" t)))
3862 '>) 3863 #'>)
3863 (progn (gnus-make-directory dir) nil))) 3864 (progn (gnus-make-directory dir) nil)))
3864 nov-arts 3865 nov-arts
3865 alist header 3866 alist header
@@ -4163,7 +4164,7 @@ modified."
4163 (path (gnus-agent-group-pathname group)) 4164 (path (gnus-agent-group-pathname group))
4164 (entry (gethash path gnus-agent-total-fetched-hashtb))) 4165 (entry (gethash path gnus-agent-total-fetched-hashtb)))
4165 (if entry 4166 (if entry
4166 (apply '+ entry) 4167 (apply #'+ entry)
4167 (let ((gnus-agent-inhibit-update-total-fetched-for (not no-inhibit))) 4168 (let ((gnus-agent-inhibit-update-total-fetched-for (not no-inhibit)))
4168 (+ 4169 (+
4169 (gnus-agent-update-view-total-fetched-for group nil method path) 4170 (gnus-agent-update-view-total-fetched-for group nil method path)
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 6a66dc65421..ca24e6f251f 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1623,7 +1623,7 @@ It is a string, such as \"PGP\". If nil, ask user."
1623 :group 'gnus-article 1623 :group 'gnus-article
1624 :type 'boolean) 1624 :type 'boolean)
1625 1625
1626(defcustom gnus-blocked-images 'gnus-block-private-groups 1626(defcustom gnus-blocked-images #'gnus-block-private-groups
1627 "Images that have URLs matching this regexp will be blocked. 1627 "Images that have URLs matching this regexp will be blocked.
1628Note that the main reason external images are included in HTML 1628Note that the main reason external images are included in HTML
1629emails (these days) is to allow tracking whether you've read the 1629emails (these days) is to allow tracking whether you've read the
@@ -2987,7 +2987,7 @@ message header will be added to the bodies of the \"text/html\" parts."
2987 (when tmp-file 2987 (when tmp-file
2988 (add-to-list 'gnus-article-browse-html-temp-list tmp-file)) 2988 (add-to-list 'gnus-article-browse-html-temp-list tmp-file))
2989 (add-hook 'gnus-summary-prepare-exit-hook 2989 (add-hook 'gnus-summary-prepare-exit-hook
2990 'gnus-article-browse-delete-temp-files) 2990 #'gnus-article-browse-delete-temp-files)
2991 (add-hook 'gnus-exit-gnus-hook 2991 (add-hook 'gnus-exit-gnus-hook
2992 (lambda () 2992 (lambda ()
2993 (gnus-article-browse-delete-temp-files t))) 2993 (gnus-article-browse-delete-temp-files t)))
diff --git a/lisp/gnus/gnus-bookmark.el b/lisp/gnus/gnus-bookmark.el
index 57859d806c9..d1af64d6d66 100644
--- a/lisp/gnus/gnus-bookmark.el
+++ b/lisp/gnus/gnus-bookmark.el
@@ -279,7 +279,7 @@ So the cdr of each bookmark is an alist too.")
279 (gnus-bookmark-maybe-load-default-file) 279 (gnus-bookmark-maybe-load-default-file)
280 (let* ((bookmark (or bmk-name 280 (let* ((bookmark (or bmk-name
281 (gnus-completing-read "Jump to bookmarked article" 281 (gnus-completing-read "Jump to bookmarked article"
282 (mapcar 'car gnus-bookmark-alist)))) 282 (mapcar #'car gnus-bookmark-alist))))
283 (bmk-record (cadr (assoc bookmark gnus-bookmark-alist))) 283 (bmk-record (cadr (assoc bookmark gnus-bookmark-alist)))
284 (group (cdr (assoc 'group bmk-record))) 284 (group (cdr (assoc 'group bmk-record)))
285 (message-id (cdr (assoc 'message-id bmk-record)))) 285 (message-id (cdr (assoc 'message-id bmk-record))))
diff --git a/lisp/gnus/gnus-cache.el b/lisp/gnus/gnus-cache.el
index 36657e46219..bea3d3bf03f 100644
--- a/lisp/gnus/gnus-cache.el
+++ b/lisp/gnus/gnus-cache.el
@@ -518,7 +518,7 @@ Returns the list of articles removed."
518 (setq articles 518 (setq articles
519 (sort (mapcar (lambda (name) (string-to-number name)) 519 (sort (mapcar (lambda (name) (string-to-number name))
520 (directory-files dir nil "\\`[0-9]+\\'" t)) 520 (directory-files dir nil "\\`[0-9]+\\'" t))
521 '<)) 521 #'<))
522 ;; Update the cache active file, just to synch more. 522 ;; Update the cache active file, just to synch more.
523 (if articles 523 (if articles
524 (progn 524 (progn
@@ -714,7 +714,7 @@ If LOW, update the lower bound instead."
714 (push (string-to-number (file-name-nondirectory (pop files))) nums) 714 (push (string-to-number (file-name-nondirectory (pop files))) nums)
715 (push (pop files) alphs))) 715 (push (pop files) alphs)))
716 ;; If we have nums, then this is probably a valid group. 716 ;; If we have nums, then this is probably a valid group.
717 (when (setq nums (sort nums '<)) 717 (when (setq nums (sort nums #'<))
718 (puthash group 718 (puthash group
719 (cons (car nums) (car (last nums))) 719 (cons (car nums) (car (last nums)))
720 gnus-cache-active-hashtb)) 720 gnus-cache-active-hashtb))
@@ -884,7 +884,7 @@ supported."
884 (setq gnus-cache-total-fetched-hashtb (gnus-make-hashtable 1000))) 884 (setq gnus-cache-total-fetched-hashtb (gnus-make-hashtable 1000)))
885 (let* ((entry (gethash group gnus-cache-total-fetched-hashtb))) 885 (let* ((entry (gethash group gnus-cache-total-fetched-hashtb)))
886 (if entry 886 (if entry
887 (apply '+ entry) 887 (apply #'+ entry)
888 (let ((gnus-cache-inhibit-update-total-fetched-for (not no-inhibit))) 888 (let ((gnus-cache-inhibit-update-total-fetched-for (not no-inhibit)))
889 (+ 889 (+
890 (gnus-cache-update-overview-total-fetched-for group nil) 890 (gnus-cache-update-overview-total-fetched-for group nil)
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el
index d02e898e230..a6d1101e015 100644
--- a/lisp/gnus/gnus-cite.el
+++ b/lisp/gnus/gnus-cite.el
@@ -445,7 +445,7 @@ Lines matching `gnus-cite-attribution-suffix' and perhaps
445 (gnus-article-search-signature) 445 (gnus-article-search-signature)
446 (push (cons (point-marker) "") marks) 446 (push (cons (point-marker) "") marks)
447 ;; Sort the marks. 447 ;; Sort the marks.
448 (setq marks (sort marks 'car-less-than-car)) 448 (setq marks (sort marks #'car-less-than-car))
449 (let ((omarks marks)) 449 (let ((omarks marks))
450 (setq marks nil) 450 (setq marks nil)
451 (while (cdr omarks) 451 (while (cdr omarks)
@@ -999,7 +999,7 @@ See also the documentation for `gnus-article-highlight-citation'."
999 cites (cdr cites) 999 cites (cdr cites)
1000 candidate (car cite) 1000 candidate (car cite)
1001 numbers (cdr cite) 1001 numbers (cdr cite)
1002 first (apply 'min numbers) 1002 first (apply #'min numbers)
1003 compare (if size (length candidate) first)) 1003 compare (if size (length candidate) first))
1004 (and (> first limit) 1004 (and (> first limit)
1005 regexp 1005 regexp
@@ -1125,7 +1125,7 @@ See also the documentation for `gnus-article-highlight-citation'."
1125 "Search for a cited line and set match data accordingly. 1125 "Search for a cited line and set match data accordingly.
1126Returns nil if there is no such line before LIMIT, t otherwise." 1126Returns nil if there is no such line before LIMIT, t otherwise."
1127 (when (re-search-forward gnus-message-cite-prefix-regexp limit t) 1127 (when (re-search-forward gnus-message-cite-prefix-regexp limit t)
1128 (let ((cdepth (min (length (apply 'concat 1128 (let ((cdepth (min (length (apply #'concat
1129 (split-string 1129 (split-string
1130 (match-string-no-properties 0) 1130 (match-string-no-properties 0)
1131 "[\t [:alnum:]]+"))) 1131 "[\t [:alnum:]]+")))
diff --git a/lisp/gnus/gnus-cus.el b/lisp/gnus/gnus-cus.el
index dc14943a060..a36ef0cbec8 100644
--- a/lisp/gnus/gnus-cus.el
+++ b/lisp/gnus/gnus-cus.el
@@ -417,7 +417,7 @@ category."))
417 (setq tmp (cdr tmp)))) 417 (setq tmp (cdr tmp))))
418 418
419 (setq gnus-custom-params 419 (setq gnus-custom-params
420 (apply 'widget-create 'group 420 (apply #'widget-create 'group
421 :value values 421 :value values
422 (delq nil 422 (delq nil
423 (list `(set :inline t 423 (list `(set :inline t
diff --git a/lisp/gnus/gnus-delay.el b/lisp/gnus/gnus-delay.el
index 477ad88a9ca..74147f2092f 100644
--- a/lisp/gnus/gnus-delay.el
+++ b/lisp/gnus/gnus-delay.el
@@ -179,7 +179,7 @@ This tells Gnus to look for delayed messages after getting new news.
179The optional arg NO-KEYMAP is ignored. 179The optional arg NO-KEYMAP is ignored.
180Checking delayed messages is skipped if optional arg NO-CHECK is non-nil." 180Checking delayed messages is skipped if optional arg NO-CHECK is non-nil."
181 (unless no-check 181 (unless no-check
182 (add-hook 'gnus-get-new-news-hook 'gnus-delay-send-queue))) 182 (add-hook 'gnus-get-new-news-hook #'gnus-delay-send-queue)))
183 183
184(provide 'gnus-delay) 184(provide 'gnus-delay)
185 185
diff --git a/lisp/gnus/gnus-diary.el b/lisp/gnus/gnus-diary.el
index 78f1e53ff7a..561a15b8092 100644
--- a/lisp/gnus/gnus-diary.el
+++ b/lisp/gnus/gnus-diary.el
@@ -276,13 +276,13 @@ Optional prefix (or REVERSE argument) means sort in reverse order."
276 (gnus-diary-update-group-parameters group))) 276 (gnus-diary-update-group-parameters group)))
277 277
278(add-hook 'nndiary-request-create-group-functions 278(add-hook 'nndiary-request-create-group-functions
279 'gnus-diary-update-group-parameters) 279 #'gnus-diary-update-group-parameters)
280;; Now that we have `gnus-subscribe-newsgroup-functions', this is not needed 280;; Now that we have `gnus-subscribe-newsgroup-functions', this is not needed
281;; anymore. Maybe I should remove this completely. 281;; anymore. Maybe I should remove this completely.
282(add-hook 'nndiary-request-update-info-functions 282(add-hook 'nndiary-request-update-info-functions
283 'gnus-diary-update-group-parameters) 283 #'gnus-diary-update-group-parameters)
284(add-hook 'gnus-subscribe-newsgroup-functions 284(add-hook 'gnus-subscribe-newsgroup-functions
285 'gnus-diary-maybe-update-group-parameters) 285 #'gnus-diary-maybe-update-group-parameters)
286 286
287 287
288;; Diary Message Checking =================================================== 288;; Diary Message Checking ===================================================
@@ -360,7 +360,7 @@ If ARG (or prefix) is non-nil, force prompting for all fields."
360 header ": "))) 360 header ": ")))
361 (setq value 361 (setq value
362 (if (listp (nth 1 head)) 362 (if (listp (nth 1 head))
363 (gnus-completing-read prompt (cons "*" (mapcar 'car (nth 1 head))) 363 (gnus-completing-read prompt (cons "*" (mapcar #'car (nth 1 head)))
364 t value 364 t value
365 'gnus-diary-header-value-history) 365 'gnus-diary-header-value-history)
366 (read-string prompt value 366 (read-string prompt value
diff --git a/lisp/gnus/gnus-dired.el b/lisp/gnus/gnus-dired.el
index 6f231c4fbb8..e78163afe28 100644
--- a/lisp/gnus/gnus-dired.el
+++ b/lisp/gnus/gnus-dired.el
@@ -29,7 +29,7 @@
29;; following in your ~/.gnus: 29;; following in your ~/.gnus:
30 30
31;; (require 'gnus-dired) ;, isn't needed due to autoload cookies 31;; (require 'gnus-dired) ;, isn't needed due to autoload cookies
32;; (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode) 32;; (add-hook 'dired-mode-hook #'turn-on-gnus-dired-mode)
33 33
34;; Note that if you visit dired buffers before your ~/.gnus file has 34;; Note that if you visit dired buffers before your ~/.gnus file has
35;; been read, those dired buffers won't have the keybindings in 35;; been read, those dired buffers won't have the keybindings in
diff --git a/lisp/gnus/gnus-draft.el b/lisp/gnus/gnus-draft.el
index 5f7ed386297..3b380f30c66 100644
--- a/lisp/gnus/gnus-draft.el
+++ b/lisp/gnus/gnus-draft.el
@@ -65,7 +65,7 @@
65 ;; Set up the menu. 65 ;; Set up the menu.
66 (when (gnus-visual-p 'draft-menu 'menu) 66 (when (gnus-visual-p 'draft-menu 'menu)
67 (gnus-draft-make-menu-bar)) 67 (gnus-draft-make-menu-bar))
68 (add-hook 'gnus-summary-prepare-exit-hook 'gnus-draft-clear-marks t t)))) 68 (add-hook 'gnus-summary-prepare-exit-hook #'gnus-draft-clear-marks t t))))
69 69
70;;; Commands 70;;; Commands
71 71
diff --git a/lisp/gnus/gnus-fun.el b/lisp/gnus/gnus-fun.el
index 615f4a55bc5..8ce6990804d 100644
--- a/lisp/gnus/gnus-fun.el
+++ b/lisp/gnus/gnus-fun.el
@@ -268,9 +268,9 @@ colors of the displayed X-Faces."
268 'xface 268 'xface
269 (gnus-put-image 269 (gnus-put-image
270 (if (gnus-image-type-available-p 'xface) 270 (if (gnus-image-type-available-p 'xface)
271 (apply 'gnus-create-image (concat "X-Face: " data) 'xface t 271 (apply #'gnus-create-image (concat "X-Face: " data) 'xface t
272 (cdr (assq 'xface gnus-face-properties-alist))) 272 (cdr (assq 'xface gnus-face-properties-alist)))
273 (apply 'gnus-create-image pbm 'pbm t 273 (apply #'gnus-create-image pbm 'pbm t
274 (cdr (assq 'pbm gnus-face-properties-alist)))) 274 (cdr (assq 'pbm gnus-face-properties-alist))))
275 nil 'xface)) 275 nil 'xface))
276 (gnus-add-wash-type 'xface)))))) 276 (gnus-add-wash-type 'xface))))))
@@ -325,7 +325,7 @@ colors of the displayed X-Faces."
325 (dotimes (i 255) 325 (dotimes (i 255)
326 (push (format format i i i i i i) 326 (push (format format i i i i i i)
327 values)) 327 values))
328 (mapconcat 'identity values " "))) 328 (mapconcat #'identity values " ")))
329 329
330(defun gnus-funcall-no-warning (function &rest args) 330(defun gnus-funcall-no-warning (function &rest args)
331 (when (fboundp function) 331 (when (fboundp function)
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index ff792c57065..a165752881a 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -1361,7 +1361,7 @@ if it is a string, only list groups matching REGEXP."
1361 (and (>= level gnus-level-zombie) 1361 (and (>= level gnus-level-zombie)
1362 (<= lowest gnus-level-zombie))) 1362 (<= lowest gnus-level-zombie)))
1363 (gnus-group-prepare-flat-list-dead 1363 (gnus-group-prepare-flat-list-dead
1364 (setq gnus-zombie-list (sort gnus-zombie-list 'string<)) 1364 (setq gnus-zombie-list (sort gnus-zombie-list #'string<))
1365 gnus-level-zombie ?Z 1365 gnus-level-zombie ?Z
1366 regexp)) 1366 regexp))
1367 (when not-in-list 1367 (when not-in-list
@@ -1372,7 +1372,7 @@ if it is a string, only list groups matching REGEXP."
1372 (gnus-group-prepare-flat-list-dead 1372 (gnus-group-prepare-flat-list-dead
1373 (cl-union 1373 (cl-union
1374 not-in-list 1374 not-in-list
1375 (setq gnus-killed-list (sort gnus-killed-list 'string<)) 1375 (setq gnus-killed-list (sort gnus-killed-list #'string<))
1376 :test 'equal) 1376 :test 'equal)
1377 gnus-level-killed ?K regexp)) 1377 gnus-level-killed ?K regexp))
1378 1378
@@ -1608,7 +1608,7 @@ Some value are bound so the form can use them."
1608 (cons 'unread (if (numberp (car entry)) (car entry) 0)) 1608 (cons 'unread (if (numberp (car entry)) (car entry) 0))
1609 (cons 'total (if active (1+ (- (cdr active) (car active))) 0)) 1609 (cons 'total (if active (1+ (- (cdr active) (car active))) 0))
1610 (cons 'mailp (apply 1610 (cons 'mailp (apply
1611 'append 1611 #'append
1612 (mapcar 1612 (mapcar
1613 (lambda (x) 1613 (lambda (x)
1614 (memq x (assoc 1614 (memq x (assoc
@@ -1883,7 +1883,7 @@ If FIRST-TOO, the current line is also eligible as a target."
1883 "Unmark all groups." 1883 "Unmark all groups."
1884 (interactive) 1884 (interactive)
1885 (save-excursion 1885 (save-excursion
1886 (mapc 'gnus-group-remove-mark gnus-group-marked)) 1886 (mapc #'gnus-group-remove-mark gnus-group-marked))
1887 (gnus-group-position-point)) 1887 (gnus-group-position-point))
1888 1888
1889(defun gnus-group-mark-region (unmark beg end) 1889(defun gnus-group-mark-region (unmark beg end)
@@ -2985,7 +2985,7 @@ and NEW-NAME will be prompted for."
2985 "Create one of the groups described in `gnus-useful-groups'." 2985 "Create one of the groups described in `gnus-useful-groups'."
2986 (interactive 2986 (interactive
2987 (let ((entry (assoc (gnus-completing-read "Create group" 2987 (let ((entry (assoc (gnus-completing-read "Create group"
2988 (mapcar 'car gnus-useful-groups) 2988 (mapcar #'car gnus-useful-groups)
2989 t) 2989 t)
2990 gnus-useful-groups))) 2990 gnus-useful-groups)))
2991 (list (cadr entry) 2991 (list (cadr entry)
@@ -3118,7 +3118,7 @@ If there is, use Gnus to create an nnrss group"
3118 (read-from-minibuffer "Title: " 3118 (read-from-minibuffer "Title: "
3119 (gnus-newsgroup-savable-name 3119 (gnus-newsgroup-savable-name
3120 (mapconcat 3120 (mapconcat
3121 'identity 3121 #'identity
3122 (split-string 3122 (split-string
3123 (or (cdr (assoc 'title 3123 (or (cdr (assoc 'title
3124 feedinfo)) 3124 feedinfo))
@@ -3126,7 +3126,7 @@ If there is, use Gnus to create an nnrss group"
3126 " "))))) 3126 " ")))))
3127 (desc (read-from-minibuffer "Description: " 3127 (desc (read-from-minibuffer "Description: "
3128 (mapconcat 3128 (mapconcat
3129 'identity 3129 #'identity
3130 (split-string 3130 (split-string
3131 (or (cdr (assoc 'description 3131 (or (cdr (assoc 'description
3132 feedinfo)) 3132 feedinfo))
@@ -4268,7 +4268,7 @@ If DONT-SCAN is non-nil, scan non-activated groups as well."
4268 (pop-to-buffer "*Gnus Help*") 4268 (pop-to-buffer "*Gnus Help*")
4269 (buffer-disable-undo) 4269 (buffer-disable-undo)
4270 (erase-buffer) 4270 (erase-buffer)
4271 (setq groups (sort groups 'string<)) 4271 (setq groups (sort groups #'string<))
4272 (while groups 4272 (while groups
4273 ;; Groups may be entered twice into the list of groups. 4273 ;; Groups may be entered twice into the list of groups.
4274 (when (not (string= (car groups) prev)) 4274 (when (not (string= (car groups) prev))
@@ -4494,7 +4494,7 @@ and the second element is the address."
4494 (interactive 4494 (interactive
4495 (list (let ((how (gnus-completing-read 4495 (list (let ((how (gnus-completing-read
4496 "Which back end" 4496 "Which back end"
4497 (mapcar 'car (append gnus-valid-select-methods 4497 (mapcar #'car (append gnus-valid-select-methods
4498 gnus-server-alist)) 4498 gnus-server-alist))
4499 t (cons "nntp" 0) 'gnus-method-history))) 4499 t (cons "nntp" 0) 'gnus-method-history)))
4500 ;; We either got a back end name or a virtual server name. 4500 ;; We either got a back end name or a virtual server name.
@@ -4616,7 +4616,9 @@ and the second element is the address."
4616 (setcdr m (gnus-compress-sequence articles t))) 4616 (setcdr m (gnus-compress-sequence articles t)))
4617 (setcdr m (gnus-compress-sequence 4617 (setcdr m (gnus-compress-sequence
4618 (sort (nconc (gnus-uncompress-range (cdr m)) 4618 (sort (nconc (gnus-uncompress-range (cdr m))
4619 (copy-sequence articles)) '<) t)))))) 4619 (copy-sequence articles))
4620 #'<)
4621 t))))))
4620 4622
4621(declare-function gnus-summary-add-mark "gnus-sum" (article type)) 4623(declare-function gnus-summary-add-mark "gnus-sum" (article type))
4622 4624
@@ -4684,7 +4686,7 @@ This command may read the active file."
4684 ;; Cache active file might use "." 4686 ;; Cache active file might use "."
4685 ;; instead of ":". 4687 ;; instead of ":".
4686 (gethash 4688 (gethash
4687 (mapconcat 'identity 4689 (mapconcat #'identity
4688 (split-string group ":") 4690 (split-string group ":")
4689 ".") 4691 ".")
4690 gnus-cache-active-hashtb)))) 4692 gnus-cache-active-hashtb))))
@@ -4808,7 +4810,7 @@ you the groups that have both dormant articles and cached articles."
4808 (push n gnus-newsgroup-unselected)) 4810 (push n gnus-newsgroup-unselected))
4809 (setq n (1+ n))) 4811 (setq n (1+ n)))
4810 (setq gnus-newsgroup-unselected 4812 (setq gnus-newsgroup-unselected
4811 (sort gnus-newsgroup-unselected '<))))) 4813 (sort gnus-newsgroup-unselected #'<)))))
4812 (gnus-activate-group group) 4814 (gnus-activate-group group)
4813 (gnus-group-make-articles-read group (list article)) 4815 (gnus-group-make-articles-read group (list article))
4814 (when (and (gnus-group-auto-expirable-p group) 4816 (when (and (gnus-group-auto-expirable-p group)
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index bb1ee5a806a..855d085c3a9 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -329,10 +329,10 @@ Use ALT-TEXT for the image string."
329 (replace-match "" t t)) 329 (replace-match "" t t))
330 (mm-url-decode-entities))) 330 (mm-url-decode-entities)))
331 331
332(defun gnus-html-insert-image (&rest args) 332(defun gnus-html-insert-image (&rest _args)
333 "Fetch and insert the image under point." 333 "Fetch and insert the image under point."
334 (interactive) 334 (interactive)
335 (apply 'gnus-html-display-image (get-text-property (point) 'gnus-image))) 335 (apply #'gnus-html-display-image (get-text-property (point) 'gnus-image)))
336 336
337(defun gnus-html-show-alt-text () 337(defun gnus-html-show-alt-text ()
338 "Show the ALT text of the image under point." 338 "Show the ALT text of the image under point."
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el
index 9c68773e19a..8bad44687b2 100644
--- a/lisp/gnus/gnus-int.el
+++ b/lisp/gnus/gnus-int.el
@@ -628,7 +628,7 @@ the group's summary.
628 article-number) 628 article-number)
629 ;; Clean up the new summary and propagate the error 629 ;; Clean up the new summary and propagate the error
630 (error (when group-is-new (gnus-summary-exit)) 630 (error (when group-is-new (gnus-summary-exit))
631 (apply 'signal err))))) 631 (apply #'signal err)))))
632 632
633(defun gnus-simplify-group-name (group) 633(defun gnus-simplify-group-name (group)
634 "Return the simplest representation of the name of GROUP. 634 "Return the simplest representation of the name of GROUP.
diff --git a/lisp/gnus/gnus-kill.el b/lisp/gnus/gnus-kill.el
index 7e592026cd0..20ea9831052 100644
--- a/lisp/gnus/gnus-kill.el
+++ b/lisp/gnus/gnus-kill.el
@@ -641,7 +641,7 @@ Usage: emacs -batch -l ~/.emacs -l gnus -f gnus-batch-score"
641 (let* ((gnus-newsrc-options-n 641 (let* ((gnus-newsrc-options-n
642 (gnus-newsrc-parse-options 642 (gnus-newsrc-parse-options
643 (concat "options -n " 643 (concat "options -n "
644 (mapconcat 'identity command-line-args-left " ")))) 644 (mapconcat #'identity command-line-args-left " "))))
645 (gnus-expert-user t) 645 (gnus-expert-user t)
646 (mail-sources nil) 646 (mail-sources nil)
647 (gnus-use-dribble-file nil) 647 (gnus-use-dribble-file nil)
diff --git a/lisp/gnus/gnus-mlspl.el b/lisp/gnus/gnus-mlspl.el
index ed8d15a2feb..77816d22eb0 100644
--- a/lisp/gnus/gnus-mlspl.el
+++ b/lisp/gnus/gnus-mlspl.el
@@ -196,13 +196,13 @@ Calling (gnus-group-split-fancy nil nil \"mail.others\") returns:
196 (concat 196 (concat
197 "\\(" 197 "\\("
198 (mapconcat 198 (mapconcat
199 'identity 199 #'identity
200 (append 200 (append
201 (and to-address (list (regexp-quote to-address))) 201 (and to-address (list (regexp-quote to-address)))
202 (and to-list (list (regexp-quote to-list))) 202 (and to-list (list (regexp-quote to-list)))
203 (and extra-aliases 203 (and extra-aliases
204 (if (listp extra-aliases) 204 (if (listp extra-aliases)
205 (mapcar 'regexp-quote extra-aliases) 205 (mapcar #'regexp-quote extra-aliases)
206 (list extra-aliases))) 206 (list extra-aliases)))
207 (and split-regexp (list split-regexp))) 207 (and split-regexp (list split-regexp)))
208 "\\|") 208 "\\|")
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 836cc959c54..278b1d9d735 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -566,13 +566,18 @@ instead."
566 (symbol-value (car elem)))) 566 (symbol-value (car elem))))
567 (throw 'found (cons (cadr elem) (caddr elem))))))))) 567 (throw 'found (cons (cadr elem) (caddr elem)))))))))
568 568
569(declare-function gnus-agent-possibly-do-gcc "gnus-agent" ())
570(declare-function gnus-cache-possibly-remove-article "gnus-cache"
571 (article ticked dormant unread &optional force))
572
569(defun gnus-inews-add-send-actions (winconf buffer article 573(defun gnus-inews-add-send-actions (winconf buffer article
570 &optional config yanked 574 &optional config yanked
571 winconf-name) 575 winconf-name)
572 (add-hook 'message-sent-hook (if gnus-agent 'gnus-agent-possibly-do-gcc 576 (add-hook 'message-sent-hook (if gnus-agent #'gnus-agent-possibly-do-gcc
573 'gnus-inews-do-gcc) nil t) 577 #'gnus-inews-do-gcc)
578 nil t)
574 (when gnus-agent 579 (when gnus-agent
575 (add-hook 'message-header-hook 'gnus-agent-possibly-save-gcc nil t)) 580 (add-hook 'message-header-hook #'gnus-agent-possibly-save-gcc nil t))
576 (setq message-post-method 581 (setq message-post-method
577 `(lambda (&optional arg) 582 `(lambda (&optional arg)
578 (gnus-post-method arg ,gnus-newsgroup-name))) 583 (gnus-post-method arg ,gnus-newsgroup-name)))
@@ -1038,8 +1043,8 @@ If SILENT, don't prompt the user."
1038 gnus-post-method 1043 gnus-post-method
1039 (list gnus-post-method))) 1044 (list gnus-post-method)))
1040 gnus-secondary-select-methods 1045 gnus-secondary-select-methods
1041 (mapcar 'cdr gnus-server-alist) 1046 (mapcar #'cdr gnus-server-alist)
1042 (mapcar 'car gnus-opened-servers) 1047 (mapcar #'car gnus-opened-servers)
1043 (list gnus-select-method) 1048 (list gnus-select-method)
1044 (list group-method))) 1049 (list group-method)))
1045 method-alist post-methods method) 1050 method-alist post-methods method)
@@ -1067,7 +1072,7 @@ If SILENT, don't prompt the user."
1067 ;; Just use the last value. 1072 ;; Just use the last value.
1068 gnus-last-posting-server 1073 gnus-last-posting-server
1069 (gnus-completing-read 1074 (gnus-completing-read
1070 "Posting method" (mapcar 'car method-alist) t 1075 "Posting method" (mapcar #'car method-alist) t
1071 (cons (or gnus-last-posting-server "") 0)))) 1076 (cons (or gnus-last-posting-server "") 0))))
1072 method-alist)))) 1077 method-alist))))
1073 ;; Override normal method. 1078 ;; Override normal method.
@@ -1341,13 +1346,13 @@ For the \"inline\" alternatives, also see the variable
1341 self)) 1346 self))
1342 "\n")) 1347 "\n"))
1343 ((null self) 1348 ((null self)
1344 (insert "Gcc: " (mapconcat 'identity gcc ", ") "\n")) 1349 (insert "Gcc: " (mapconcat #'identity gcc ", ") "\n"))
1345 ((eq self 'no-gcc-self) 1350 ((eq self 'no-gcc-self)
1346 (when (setq gcc (delete 1351 (when (setq gcc (delete
1347 gnus-newsgroup-name 1352 gnus-newsgroup-name
1348 (delete (concat "\"" gnus-newsgroup-name "\"") 1353 (delete (concat "\"" gnus-newsgroup-name "\"")
1349 gcc))) 1354 gcc)))
1350 (insert "Gcc: " (mapconcat 'identity gcc ", ") "\n"))))))) 1355 (insert "Gcc: " (mapconcat #'identity gcc ", ") "\n")))))))
1351 1356
1352(defun gnus-summary-resend-message (address n &optional no-select) 1357(defun gnus-summary-resend-message (address n &optional no-select)
1353 "Resend the current article to ADDRESS. 1358 "Resend the current article to ADDRESS.
@@ -1387,7 +1392,7 @@ the message before resending."
1387 (setq user-mail-address tem)))) 1392 (setq user-mail-address tem))))
1388 ;; `gnus-summary-resend-message-insert-gcc' must run last. 1393 ;; `gnus-summary-resend-message-insert-gcc' must run last.
1389 (add-hook 'message-header-setup-hook 1394 (add-hook 'message-header-setup-hook
1390 'gnus-summary-resend-message-insert-gcc t) 1395 #'gnus-summary-resend-message-insert-gcc t)
1391 (add-hook 'message-sent-hook 1396 (add-hook 'message-sent-hook
1392 `(lambda () 1397 `(lambda ()
1393 (let ((rfc2047-encode-encoded-words nil)) 1398 (let ((rfc2047-encode-encoded-words nil))
@@ -1916,7 +1921,7 @@ this is a reply."
1916 (add-hook 'message-setup-hook 1921 (add-hook 'message-setup-hook
1917 (cond 1922 (cond
1918 ((eq 'eval (car result)) 1923 ((eq 'eval (car result))
1919 'ignore) 1924 #'ignore)
1920 ((eq 'body (car result)) 1925 ((eq 'body (car result))
1921 `(lambda () 1926 `(lambda ()
1922 (save-excursion 1927 (save-excursion
@@ -1926,7 +1931,7 @@ this is a reply."
1926 (setq-local message-signature nil) 1931 (setq-local message-signature nil)
1927 (setq-local message-signature-file nil) 1932 (setq-local message-signature-file nil)
1928 (if (not (cdr result)) 1933 (if (not (cdr result))
1929 'ignore 1934 #'ignore
1930 `(lambda () 1935 `(lambda ()
1931 (save-excursion 1936 (save-excursion
1932 (let ((message-signature ,(cdr result))) 1937 (let ((message-signature ,(cdr result)))
diff --git a/lisp/gnus/gnus-notifications.el b/lisp/gnus/gnus-notifications.el
index e772dd8e625..39ef51b2b83 100644
--- a/lisp/gnus/gnus-notifications.el
+++ b/lisp/gnus/gnus-notifications.el
@@ -24,7 +24,7 @@
24 24
25;; This implements notifications using `notifications-notify' on new 25;; This implements notifications using `notifications-notify' on new
26;; messages received. 26;; messages received.
27;; Use (add-hook 'gnus-after-getting-new-news-hook 'gnus-notifications) 27;; Use (add-hook 'gnus-after-getting-new-news-hook #'gnus-notifications)
28;; to get notifications just after getting the new news. 28;; to get notifications just after getting the new news.
29 29
30;;; Code: 30;;; Code:
diff --git a/lisp/gnus/gnus-picon.el b/lisp/gnus/gnus-picon.el
index 92def9a72d0..a33316a5267 100644
--- a/lisp/gnus/gnus-picon.el
+++ b/lisp/gnus/gnus-picon.el
@@ -120,7 +120,7 @@ List of pairs (KEY . GLYPH) where KEY is either a filename or an URL.")
120 base (expand-file-name directory database)) 120 base (expand-file-name directory database))
121 (while address 121 (while address
122 (when (setq result (gnus-picon-find-image 122 (when (setq result (gnus-picon-find-image
123 (concat base "/" (mapconcat 'downcase 123 (concat base "/" (mapconcat #'downcase
124 (reverse address) 124 (reverse address)
125 "/") 125 "/")
126 "/" (downcase user) "/"))) 126 "/" (downcase user) "/")))
@@ -158,7 +158,7 @@ replacement is added."
158 158
159(defun gnus-picon-create-glyph (file) 159(defun gnus-picon-create-glyph (file)
160 (or (cdr (assoc file gnus-picon-glyph-alist)) 160 (or (cdr (assoc file gnus-picon-glyph-alist))
161 (cdar (push (cons file (apply 'gnus-create-image 161 (cdar (push (cons file (apply #'gnus-create-image
162 file nil nil 162 file nil nil
163 gnus-picon-properties)) 163 gnus-picon-properties))
164 gnus-picon-glyph-alist)))) 164 gnus-picon-glyph-alist))))
@@ -190,7 +190,7 @@ replacement is added."
190 (gnus-picon-find-face 190 (gnus-picon-find-face
191 (concat "unknown@" 191 (concat "unknown@"
192 (mapconcat 192 (mapconcat
193 'identity (cdr spec) ".")) 193 #'identity (cdr spec) "."))
194 gnus-picon-user-directories))) 194 gnus-picon-user-directories)))
195 (setcar spec (cons (gnus-picon-create-glyph file) 195 (setcar spec (cons (gnus-picon-create-glyph file)
196 (car spec)))) 196 (car spec))))
@@ -201,7 +201,7 @@ replacement is added."
201 (when (setq file (gnus-picon-find-face 201 (when (setq file (gnus-picon-find-face
202 (concat "unknown@" 202 (concat "unknown@"
203 (mapconcat 203 (mapconcat
204 'identity (nthcdr (1+ i) spec) ".")) 204 #'identity (nthcdr (1+ i) spec) "."))
205 gnus-picon-domain-directories t)) 205 gnus-picon-domain-directories t))
206 (setcar (nthcdr (1+ i) spec) 206 (setcar (nthcdr (1+ i) spec)
207 (cons (gnus-picon-create-glyph file) 207 (cons (gnus-picon-create-glyph file)
@@ -214,10 +214,11 @@ replacement is added."
214 (cl-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)
218 (condition-case nil 218 (condition-case nil
219 (car (image-size (car x))) 219 (car (image-size (car x)))
220 (error 0))) spec))) 220 (error 0)))
221 spec)))
221 (when (> len 0) 222 (when (> len 0)
222 (goto-char (point-at-eol)) 223 (goto-char (point-at-eol))
223 (insert (propertize 224 (insert (propertize
@@ -256,7 +257,7 @@ replacement is added."
256 (when (setq file (gnus-picon-find-face 257 (when (setq file (gnus-picon-find-face
257 (concat "unknown@" 258 (concat "unknown@"
258 (mapconcat 259 (mapconcat
259 'identity (nthcdr i spec) ".")) 260 #'identity (nthcdr i spec) "."))
260 gnus-picon-news-directories t)) 261 gnus-picon-news-directories t))
261 (setcar (nthcdr i spec) 262 (setcar (nthcdr i spec)
262 (cons (gnus-picon-create-glyph file) 263 (cons (gnus-picon-create-glyph file)
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el
index 068066e38c9..7fdf6683138 100644
--- a/lisp/gnus/gnus-registry.el
+++ b/lisp/gnus/gnus-registry.el
@@ -891,7 +891,7 @@ Addresses without a name will say \"noname\"."
891 891
892(defun gnus-registry-sort-addresses (&rest addresses) 892(defun gnus-registry-sort-addresses (&rest addresses)
893 "Return a normalized and sorted list of ADDRESSES." 893 "Return a normalized and sorted list of ADDRESSES."
894 (sort (mapcan #'gnus-registry-extract-addresses addresses) 'string-lessp)) 894 (sort (mapcan #'gnus-registry-extract-addresses addresses) #'string-lessp))
895 895
896(defun gnus-registry-simplify-subject (subject) 896(defun gnus-registry-simplify-subject (subject)
897 (if (stringp subject) 897 (if (stringp subject)
diff --git a/lisp/gnus/gnus-rfc1843.el b/lisp/gnus/gnus-rfc1843.el
index 107e96350bb..dca55af4605 100644
--- a/lisp/gnus/gnus-rfc1843.el
+++ b/lisp/gnus/gnus-rfc1843.el
@@ -56,11 +56,11 @@
56 56
57(defun rfc1843-gnus-setup () 57(defun rfc1843-gnus-setup ()
58 "Setup HZ decoding for Gnus." 58 "Setup HZ decoding for Gnus."
59 (add-hook 'gnus-article-decode-hook 'rfc1843-decode-article-body t) 59 (add-hook 'gnus-article-decode-hook #'rfc1843-decode-article-body t)
60 (setq gnus-decode-encoded-word-function 60 (setq gnus-decode-encoded-word-function
61 'gnus-multi-decode-encoded-word-string 61 #'gnus-multi-decode-encoded-word-string
62 gnus-decode-header-function 62 gnus-decode-header-function
63 'gnus-multi-decode-header 63 #'gnus-multi-decode-header
64 gnus-decode-encoded-word-methods 64 gnus-decode-encoded-word-methods
65 (nconc gnus-decode-encoded-word-methods 65 (nconc gnus-decode-encoded-word-methods
66 (list 66 (list
diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el
index abaa844f58a..d07d36e5441 100644
--- a/lisp/gnus/gnus-salt.el
+++ b/lisp/gnus/gnus-salt.el
@@ -103,7 +103,7 @@ It accepts the same format specs that `gnus-summary-line-format' does."
103 ((not (derived-mode-p 'gnus-summary-mode)) (setq gnus-pick-mode nil)) 103 ((not (derived-mode-p 'gnus-summary-mode)) (setq gnus-pick-mode nil))
104 ((not gnus-pick-mode) 104 ((not gnus-pick-mode)
105 ;; FIXME: a buffer-local minor mode removing globally from a hook?? 105 ;; FIXME: a buffer-local minor mode removing globally from a hook??
106 (remove-hook 'gnus-message-setup-hook 'gnus-pick-setup-message)) 106 (remove-hook 'gnus-message-setup-hook #'gnus-pick-setup-message))
107 (t 107 (t
108 ;; Make sure that we don't select any articles upon group entry. 108 ;; Make sure that we don't select any articles upon group entry.
109 (setq-local gnus-auto-select-first nil) 109 (setq-local gnus-auto-select-first nil)
@@ -113,7 +113,7 @@ It accepts the same format specs that `gnus-summary-line-format' does."
113 (gnus-update-format-specifications nil 'summary) 113 (gnus-update-format-specifications nil 'summary)
114 (gnus-update-summary-mark-positions) 114 (gnus-update-summary-mark-positions)
115 ;; FIXME: a buffer-local minor mode adding globally to a hook?? 115 ;; FIXME: a buffer-local minor mode adding globally to a hook??
116 (add-hook 'gnus-message-setup-hook 'gnus-pick-setup-message) 116 (add-hook 'gnus-message-setup-hook #'gnus-pick-setup-message)
117 (setq-local gnus-summary-goto-unread 'never) 117 (setq-local gnus-summary-goto-unread 'never)
118 ;; Set up the menu. 118 ;; Set up the menu.
119 (when (gnus-visual-p 'pick-menu 'menu) 119 (when (gnus-visual-p 'pick-menu 'menu)
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index e74c4980879..c6e08cee73a 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -683,7 +683,7 @@ current score file."
683 (and gnus-extra-headers 683 (and gnus-extra-headers
684 (equal (nth 1 entry) "extra") 684 (equal (nth 1 entry) "extra")
685 (intern ; need symbol 685 (intern ; need symbol
686 (let ((collection (mapcar 'symbol-name gnus-extra-headers))) 686 (let ((collection (mapcar #'symbol-name gnus-extra-headers)))
687 (gnus-completing-read 687 (gnus-completing-read
688 "Score extra header" ; prompt 688 "Score extra header" ; prompt
689 collection ; completion list 689 collection ; completion list
@@ -932,7 +932,7 @@ SCORE is the score to add.
932EXTRA is the possible non-standard header." 932EXTRA is the possible non-standard header."
933 (interactive (list (gnus-completing-read "Header" 933 (interactive (list (gnus-completing-read "Header"
934 (mapcar 934 (mapcar
935 'car 935 #'car
936 (seq-filter 936 (seq-filter
937 (lambda (x) (fboundp (nth 2 x))) 937 (lambda (x) (fboundp (nth 2 x)))
938 gnus-header-index)) 938 gnus-header-index))
@@ -1258,8 +1258,8 @@ If FORMAT, also format the current score file."
1258 ;; We do not respect eval and files atoms from global score 1258 ;; We do not respect eval and files atoms from global score
1259 ;; files. 1259 ;; files.
1260 (when (and files (not global)) 1260 (when (and files (not global))
1261 (setq lists (apply 'append lists 1261 (setq lists (apply #'append lists
1262 (mapcar 'gnus-score-load-file 1262 (mapcar #'gnus-score-load-file
1263 (if adapt-file (cons adapt-file files) 1263 (if adapt-file (cons adapt-file files)
1264 files))))) 1264 files)))))
1265 (when (and eval (not global)) 1265 (when (and eval (not global))
@@ -1268,7 +1268,7 @@ If FORMAT, also format the current score file."
1268 (setq gnus-scores-exclude-files 1268 (setq gnus-scores-exclude-files
1269 (nconc 1269 (nconc
1270 (apply 1270 (apply
1271 'nconc 1271 #'nconc
1272 (mapcar 1272 (mapcar
1273 (lambda (sfile) 1273 (lambda (sfile)
1274 (list 1274 (list
@@ -1554,10 +1554,10 @@ If FORMAT, also format the current score file."
1554 (setq entry (pop entries) 1554 (setq entry (pop entries)
1555 header (nth 0 entry) 1555 header (nth 0 entry)
1556 gnus-score-index (nth 1 (assoc header gnus-header-index))) 1556 gnus-score-index (nth 1 (assoc header gnus-header-index)))
1557 (when (< 0 (apply 'max (mapcar 1557 (when (< 0 (apply #'max (mapcar
1558 (lambda (score) 1558 (lambda (score)
1559 (length (gnus-score-get header score))) 1559 (length (gnus-score-get header score)))
1560 scores))) 1560 scores)))
1561 (when (if (and gnus-inhibit-slow-scoring 1561 (when (if (and gnus-inhibit-slow-scoring
1562 (or (eq gnus-inhibit-slow-scoring t) 1562 (or (eq gnus-inhibit-slow-scoring t)
1563 (and (stringp gnus-inhibit-slow-scoring) 1563 (and (stringp gnus-inhibit-slow-scoring)
@@ -1574,9 +1574,9 @@ If FORMAT, also format the current score file."
1574 ;; Run score-fn 1574 ;; Run score-fn
1575 (if (eq header 'score-fn) 1575 (if (eq header 'score-fn)
1576 (setq new (gnus-score-func scores trace)) 1576 (setq new (gnus-score-func scores trace))
1577 ;; Call the scoring function for this type of "header". 1577 ;; Call the scoring function for this type of "header".
1578 (setq new (funcall (nth 2 entry) scores header 1578 (setq new (funcall (nth 2 entry) scores header
1579 now expire trace)))) 1579 now expire trace))))
1580 (push new news)))) 1580 (push new news))))
1581 1581
1582 (when (gnus-buffer-live-p gnus-summary-buffer) 1582 (when (gnus-buffer-live-p gnus-summary-buffer)
@@ -1948,7 +1948,7 @@ score in `gnus-newsgroup-scored' by SCORE."
1948 gnus-newsgroup-name gnus-adaptive-file-suffix)))) 1948 gnus-newsgroup-name gnus-adaptive-file-suffix))))
1949 1949
1950 (setq gnus-scores-articles (sort gnus-scores-articles 1950 (setq gnus-scores-articles (sort gnus-scores-articles
1951 'gnus-score-string<) 1951 #'gnus-score-string<)
1952 articles gnus-scores-articles) 1952 articles gnus-scores-articles)
1953 1953
1954 (erase-buffer) 1954 (erase-buffer)
@@ -2077,7 +2077,7 @@ score in `gnus-newsgroup-scored' by SCORE."
2077 ;; We cannot string-sort the extra headers list. *sigh* 2077 ;; We cannot string-sort the extra headers list. *sigh*
2078 (if (= gnus-score-index 9) 2078 (if (= gnus-score-index 9)
2079 gnus-scores-articles 2079 gnus-scores-articles
2080 (sort gnus-scores-articles 'gnus-score-string<)) 2080 (sort gnus-scores-articles #'gnus-score-string<))
2081 articles gnus-scores-articles) 2081 articles gnus-scores-articles)
2082 2082
2083 (erase-buffer) 2083 (erase-buffer)
@@ -2550,11 +2550,11 @@ score in `gnus-newsgroup-scored' by SCORE."
2550 (abbreviate-file-name file)))) 2550 (abbreviate-file-name file))))
2551 (insert 2551 (insert
2552 (format "\nTotal score: %d" 2552 (format "\nTotal score: %d"
2553 (apply '+ (mapcar 2553 (apply #'+ (mapcar
2554 (lambda (s) 2554 (lambda (s)
2555 (or (caddr s) 2555 (or (caddr s)
2556 gnus-score-interactive-default-score)) 2556 gnus-score-interactive-default-score))
2557 trace)))) 2557 trace))))
2558 (insert 2558 (insert
2559 "\n\nQuick help: 2559 "\n\nQuick help:
2560 2560
@@ -2872,7 +2872,7 @@ This includes the score file for the group and all its parents."
2872 (mapcar (lambda (group) 2872 (mapcar (lambda (group)
2873 (gnus-score-file-name group gnus-adaptive-file-suffix)) 2873 (gnus-score-file-name group gnus-adaptive-file-suffix))
2874 (setq all (nreverse all))) 2874 (setq all (nreverse all)))
2875 (mapcar 'gnus-score-file-name all))) 2875 (mapcar #'gnus-score-file-name all)))
2876 (if (equal prefix "") 2876 (if (equal prefix "")
2877 all 2877 all
2878 (mapcar 2878 (mapcar
@@ -2912,7 +2912,7 @@ Destroys the current buffer."
2912 (lambda (file) 2912 (lambda (file)
2913 (cons (inline (gnus-score-file-rank file)) file)) 2913 (cons (inline (gnus-score-file-rank file)) file))
2914 files))) 2914 files)))
2915 (mapcar 'cdr (sort alist 'car-less-than-car))))) 2915 (mapcar #'cdr (sort alist #'car-less-than-car)))))
2916 2916
2917(defun gnus-score-find-alist (group) 2917(defun gnus-score-find-alist (group)
2918 "Return list of score files for GROUP. 2918 "Return list of score files for GROUP.
diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
index 44780609af7..636a0d76378 100644
--- a/lisp/gnus/gnus-search.el
+++ b/lisp/gnus/gnus-search.el
@@ -1859,7 +1859,7 @@ Assume \"size\" key is equal to \"larger\"."
1859 "No directory found in definition of server %s" 1859 "No directory found in definition of server %s"
1860 server)))) 1860 server))))
1861 (apply 1861 (apply
1862 'vconcat 1862 #'vconcat
1863 (mapcar (lambda (x) 1863 (mapcar (lambda (x)
1864 (let ((group x) 1864 (let ((group x)
1865 artlist) 1865 artlist)
@@ -1894,7 +1894,7 @@ Assume \"size\" key is equal to \"larger\"."
1894 "Cannot locate directory for group"))) 1894 "Cannot locate directory for group")))
1895 (save-excursion 1895 (save-excursion
1896 (apply 1896 (apply
1897 'call-process "find" nil t 1897 #'call-process "find" nil t
1898 "find" group "-maxdepth" "1" "-type" "f" 1898 "find" group "-maxdepth" "1" "-type" "f"
1899 "-name" "[0-9]*" "-exec" 1899 "-name" "[0-9]*" "-exec"
1900 (slot-value engine 'grep-program) 1900 (slot-value engine 'grep-program)
@@ -1907,7 +1907,8 @@ Assume \"size\" key is equal to \"larger\"."
1907 (let* ((path (split-string 1907 (let* ((path (split-string
1908 (buffer-substring 1908 (buffer-substring
1909 (point) 1909 (point)
1910 (line-end-position)) "/" t)) 1910 (line-end-position))
1911 "/" t))
1911 (art (string-to-number (car (last path))))) 1912 (art (string-to-number (car (last path)))))
1912 (while (string= "." (car path)) 1913 (while (string= "." (car path))
1913 (setq path (cdr path))) 1914 (setq path (cdr path)))
diff --git a/lisp/gnus/gnus-sieve.el b/lisp/gnus/gnus-sieve.el
index 3b79d578644..7046f5949c7 100644
--- a/lisp/gnus/gnus-sieve.el
+++ b/lisp/gnus/gnus-sieve.el
@@ -140,7 +140,7 @@ For example:
140\(gnus-sieve-string-list \\='(\"to\" \"cc\")) 140\(gnus-sieve-string-list \\='(\"to\" \"cc\"))
141 => \"[\\\"to\\\", \\\"cc\\\"]\" 141 => \"[\\\"to\\\", \\\"cc\\\"]\"
142" 142"
143 (concat "[\"" (mapconcat 'identity list "\", \"") "\"]")) 143 (concat "[\"" (mapconcat #'identity list "\", \"") "\"]"))
144 144
145(defun gnus-sieve-test-list (list) 145(defun gnus-sieve-test-list (list)
146 "Convert an elisp test list to a Sieve test list. 146 "Convert an elisp test list to a Sieve test list.
@@ -148,7 +148,7 @@ For example:
148For example: 148For example:
149\(gnus-sieve-test-list \\='((address \"sender\" \"boss@company.com\") (size :over 4K))) 149\(gnus-sieve-test-list \\='((address \"sender\" \"boss@company.com\") (size :over 4K)))
150 => \"(address \\\"sender\\\" \\\"boss@company.com\\\", size :over 4K)\"" 150 => \"(address \\\"sender\\\" \\\"boss@company.com\\\", size :over 4K)\""
151 (concat "(" (mapconcat 'gnus-sieve-test list ", ") ")")) 151 (concat "(" (mapconcat #'gnus-sieve-test list ", ") ")"))
152 152
153;; FIXME: do proper quoting 153;; FIXME: do proper quoting
154(defun gnus-sieve-test-token (token) 154(defun gnus-sieve-test-token (token)
@@ -189,7 +189,7 @@ For example:
189 (size :over 100K)))) 189 (size :over 100K))))
190 => \"anyof (header :contains [\\\"to\\\", \\\"cc\\\"] \\\"my@address.com\\\", 190 => \"anyof (header :contains [\\\"to\\\", \\\"cc\\\"] \\\"my@address.com\\\",
191 size :over 100K)\"" 191 size :over 100K)\""
192 (mapconcat 'gnus-sieve-test-token test " ")) 192 (mapconcat #'gnus-sieve-test-token test " "))
193 193
194(defun gnus-sieve-script (&optional method crosspost) 194(defun gnus-sieve-script (&optional method crosspost)
195 "Generate a Sieve script based on groups with select method METHOD 195 "Generate a Sieve script based on groups with select method METHOD
@@ -228,7 +228,7 @@ This is returned as a string."
228 "\tstop;\n") 228 "\tstop;\n")
229 "}") 229 "}")
230 script))))) 230 script)))))
231 (mapconcat 'identity script "\n"))) 231 (mapconcat #'identity script "\n")))
232 232
233(provide 'gnus-sieve) 233(provide 'gnus-sieve)
234 234
diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el
index 34e5ceb3f67..deeb28885b8 100644
--- a/lisp/gnus/gnus-srvr.el
+++ b/lisp/gnus/gnus-srvr.el
@@ -581,7 +581,7 @@ The following commands are available:
581(defun gnus-server-add-server (how where) 581(defun gnus-server-add-server (how where)
582 (interactive 582 (interactive
583 (list (intern (gnus-completing-read "Server method" 583 (list (intern (gnus-completing-read "Server method"
584 (mapcar 'car gnus-valid-select-methods) 584 (mapcar #'car gnus-valid-select-methods)
585 t)) 585 t))
586 (read-string "Server name: "))) 586 (read-string "Server name: ")))
587 (when (assq where gnus-server-alist) 587 (when (assq where gnus-server-alist)
@@ -592,7 +592,8 @@ The following commands are available:
592(defun gnus-server-goto-server (server) 592(defun gnus-server-goto-server (server)
593 "Jump to a server line." 593 "Jump to a server line."
594 (interactive 594 (interactive
595 (list (gnus-completing-read "Goto server" (mapcar 'car gnus-server-alist) t))) 595 (list (gnus-completing-read "Goto server"
596 (mapcar #'car gnus-server-alist) t)))
596 (let ((to (text-property-any (point-min) (point-max) 597 (let ((to (text-property-any (point-min) (point-max)
597 'gnus-server (intern server)))) 598 'gnus-server (intern server))))
598 (when to 599 (when to
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index cf37a1ccdfc..cd438764133 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -259,7 +259,7 @@ not match this regexp will be removed before saving the list."
259 regexp)) 259 regexp))
260 260
261(defcustom gnus-ignored-newsgroups 261(defcustom gnus-ignored-newsgroups
262 (mapconcat 'identity 262 (mapconcat #'identity
263 '("^to\\." ; not "real" groups 263 '("^to\\." ; not "real" groups
264 "^[0-9. \t]+\\( \\|$\\)" ; all digits in name 264 "^[0-9. \t]+\\( \\|$\\)" ; all digits in name
265 "^[\"][\"#'()]" ; bogus characters 265 "^[\"][\"#'()]" ; bogus characters
@@ -518,7 +518,7 @@ Can be used to turn version control on or off."
518;; For subscribing new newsgroup 518;; For subscribing new newsgroup
519 519
520(defun gnus-subscribe-hierarchical-interactive (groups) 520(defun gnus-subscribe-hierarchical-interactive (groups)
521 (let ((groups (sort groups 'string<)) 521 (let ((groups (sort groups #'string<))
522 prefixes prefix start ans group starts) 522 prefixes prefix start ans group starts)
523 (while groups 523 (while groups
524 (setq prefixes (list "^")) 524 (setq prefixes (list "^"))
@@ -3162,7 +3162,7 @@ SPECIFIC-VARIABLES, or those in `gnus-variable-list'."
3162 "Declare back end NAME with ABILITIES as a Gnus back end." 3162 "Declare back end NAME with ABILITIES as a Gnus back end."
3163 (setq gnus-valid-select-methods 3163 (setq gnus-valid-select-methods
3164 (nconc gnus-valid-select-methods 3164 (nconc gnus-valid-select-methods
3165 (list (apply 'list name abilities)))) 3165 (list (apply #'list name abilities))))
3166 (gnus-redefine-select-method-widget)) 3166 (gnus-redefine-select-method-widget))
3167 3167
3168(defun gnus-set-default-directory () 3168(defun gnus-set-default-directory ()
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el
index 8a77c532d29..402de05210e 100644
--- a/lisp/gnus/gnus-topic.el
+++ b/lisp/gnus/gnus-topic.el
@@ -335,7 +335,7 @@ If RECURSIVE is t, return groups in its subtopics too."
335 (setq topology gnus-topic-topology 335 (setq topology gnus-topic-topology
336 gnus-tmp-topics nil)) 336 gnus-tmp-topics nil))
337 (push (caar topology) gnus-tmp-topics) 337 (push (caar topology) gnus-tmp-topics)
338 (mapc 'gnus-topic-list (cdr topology)) 338 (mapc #'gnus-topic-list (cdr topology))
339 gnus-tmp-topics) 339 gnus-tmp-topics)
340 340
341;;; Topic parameter jazz 341;;; Topic parameter jazz
@@ -386,7 +386,7 @@ inheritance."
386 ;; We probably have lots of nil elements here, so we remove them. 386 ;; We probably have lots of nil elements here, so we remove them.
387 ;; Probably faster than doing this "properly". 387 ;; Probably faster than doing this "properly".
388 (delq nil (cons group-params-list 388 (delq nil (cons group-params-list
389 (mapcar 'gnus-topic-parameters 389 (mapcar #'gnus-topic-parameters
390 (gnus-current-topics topic))))) 390 (gnus-current-topics topic)))))
391 param out params) 391 param out params)
392 ;; Now we have all the parameters, so we go through them 392 ;; Now we have all the parameters, so we go through them
@@ -445,7 +445,7 @@ If LOWEST is non-nil, list all newsgroups of level LOWEST or higher."
445 (and (>= level gnus-level-zombie) 445 (and (>= level gnus-level-zombie)
446 (<= lowest gnus-level-zombie))) 446 (<= lowest gnus-level-zombie)))
447 (gnus-group-prepare-flat-list-dead 447 (gnus-group-prepare-flat-list-dead
448 (setq gnus-zombie-list (sort gnus-zombie-list 'string<)) 448 (setq gnus-zombie-list (sort gnus-zombie-list #'string<))
449 gnus-level-zombie ?Z 449 gnus-level-zombie ?Z
450 regexp)) 450 regexp))
451 451
@@ -453,7 +453,7 @@ If LOWEST is non-nil, list all newsgroups of level LOWEST or higher."
453 (and (>= level gnus-level-killed) 453 (and (>= level gnus-level-killed)
454 (<= lowest gnus-level-killed))) 454 (<= lowest gnus-level-killed)))
455 (gnus-group-prepare-flat-list-dead 455 (gnus-group-prepare-flat-list-dead
456 (setq gnus-killed-list (sort gnus-killed-list 'string<)) 456 (setq gnus-killed-list (sort gnus-killed-list #'string<))
457 gnus-level-killed ?K regexp) 457 gnus-level-killed ?K regexp)
458 (when not-in-list 458 (when not-in-list
459 (unless gnus-killed-hashtb 459 (unless gnus-killed-hashtb
@@ -841,7 +841,7 @@ articles in the topic and its subtopics."
841 (pop topics))) 841 (pop topics)))
842 ;; Go through all living groups and make sure that 842 ;; Go through all living groups and make sure that
843 ;; they belong to some topic. 843 ;; they belong to some topic.
844 (let* ((tgroups (apply 'append (mapcar 'cdr gnus-topic-alist))) 844 (let* ((tgroups (apply #'append (mapcar #'cdr gnus-topic-alist)))
845 (entry (last (assoc (caar gnus-topic-topology) gnus-topic-alist))) 845 (entry (last (assoc (caar gnus-topic-topology) gnus-topic-alist)))
846 (groups (cdr gnus-group-list))) 846 (groups (cdr gnus-group-list)))
847 (dolist (group groups) 847 (dolist (group groups)
@@ -1128,21 +1128,21 @@ articles in the topic and its subtopics."
1128 (when (gnus-visual-p 'topic-menu 'menu) 1128 (when (gnus-visual-p 'topic-menu 'menu)
1129 (gnus-topic-make-menu-bar)) 1129 (gnus-topic-make-menu-bar))
1130 (gnus-set-format 'topic t) 1130 (gnus-set-format 'topic t)
1131 (add-hook 'gnus-group-catchup-group-hook 'gnus-topic-update-topic) 1131 (add-hook 'gnus-group-catchup-group-hook #'gnus-topic-update-topic)
1132 (setq-local gnus-group-prepare-function 1132 (setq-local gnus-group-prepare-function
1133 'gnus-group-prepare-topics) 1133 #'gnus-group-prepare-topics)
1134 (setq-local gnus-group-get-parameter-function 1134 (setq-local gnus-group-get-parameter-function
1135 'gnus-group-topic-parameters) 1135 #'gnus-group-topic-parameters)
1136 (setq-local gnus-group-goto-next-group-function 1136 (setq-local gnus-group-goto-next-group-function
1137 'gnus-topic-goto-next-group) 1137 #'gnus-topic-goto-next-group)
1138 (setq-local gnus-group-indentation-function 1138 (setq-local gnus-group-indentation-function
1139 'gnus-topic-group-indentation) 1139 #'gnus-topic-group-indentation)
1140 (setq-local gnus-group-update-group-function 1140 (setq-local gnus-group-update-group-function
1141 'gnus-topic-update-topics-containing-group) 1141 #'gnus-topic-update-topics-containing-group)
1142 (setq-local gnus-group-sort-alist-function 'gnus-group-sort-topic) 1142 (setq-local gnus-group-sort-alist-function #'gnus-group-sort-topic)
1143 (setq gnus-group-change-level-function 'gnus-topic-change-level) 1143 (setq gnus-group-change-level-function #'gnus-topic-change-level)
1144 (setq gnus-goto-missing-group-function 'gnus-topic-goto-missing-group) 1144 (setq gnus-goto-missing-group-function #'gnus-topic-goto-missing-group)
1145 (add-hook 'gnus-check-bogus-groups-hook 'gnus-topic-clean-alist 1145 (add-hook 'gnus-check-bogus-groups-hook #'gnus-topic-clean-alist
1146 nil 'local) 1146 nil 'local)
1147 (setq gnus-topology-checked-p nil) 1147 (setq gnus-topology-checked-p nil)
1148 ;; We check the topology. 1148 ;; We check the topology.
@@ -1150,11 +1150,11 @@ articles in the topic and its subtopics."
1150 (gnus-topic-check-topology))) 1150 (gnus-topic-check-topology)))
1151 ;; Remove topic infestation. 1151 ;; Remove topic infestation.
1152 (unless gnus-topic-mode 1152 (unless gnus-topic-mode
1153 (remove-hook 'gnus-summary-exit-hook 'gnus-topic-update-topic) 1153 (remove-hook 'gnus-summary-exit-hook #'gnus-topic-update-topic)
1154 (setq gnus-group-change-level-function nil) 1154 (setq gnus-group-change-level-function nil)
1155 (remove-hook 'gnus-check-bogus-groups-hook 'gnus-topic-clean-alist) 1155 (remove-hook 'gnus-check-bogus-groups-hook #'gnus-topic-clean-alist)
1156 (setq gnus-group-prepare-function 'gnus-group-prepare-flat) 1156 (setq gnus-group-prepare-function #'gnus-group-prepare-flat)
1157 (setq gnus-group-sort-alist-function 'gnus-group-sort-flat)) 1157 (setq gnus-group-sort-alist-function #'gnus-group-sort-flat))
1158 (when (called-interactively-p 'any) 1158 (when (called-interactively-p 'any)
1159 (gnus-group-list-groups)))) 1159 (gnus-group-list-groups))))
1160 1160
@@ -1213,7 +1213,7 @@ Also see `gnus-group-catchup'."
1213 (inhibit-read-only t) 1213 (inhibit-read-only t)
1214 (gnus-group-marked groups)) 1214 (gnus-group-marked groups))
1215 (gnus-group-catchup-current) 1215 (gnus-group-catchup-current)
1216 (mapcar 'gnus-topic-update-topics-containing-group groups))))) 1216 (mapcar #'gnus-topic-update-topics-containing-group groups)))))
1217 1217
1218(defun gnus-topic-read-group (&optional all no-article group) 1218(defun gnus-topic-read-group (&optional all no-article group)
1219 "Read news in this newsgroup. 1219 "Read news in this newsgroup.
@@ -1280,7 +1280,7 @@ When used interactively, PARENT will be the topic under point."
1280If COPYP, copy the groups instead." 1280If COPYP, copy the groups instead."
1281 (interactive 1281 (interactive
1282 (list current-prefix-arg 1282 (list current-prefix-arg
1283 (gnus-completing-read "Move to topic" (mapcar 'car gnus-topic-alist) t 1283 (gnus-completing-read "Move to topic" (mapcar #'car gnus-topic-alist) t
1284 nil 'gnus-topic-history))) 1284 nil 'gnus-topic-history)))
1285 (let ((use-marked (and (not n) (not (and transient-mark-mode mark-active)) 1285 (let ((use-marked (and (not n) (not (and transient-mark-mode mark-active))
1286 gnus-group-marked t)) 1286 gnus-group-marked t))
@@ -1328,7 +1328,7 @@ If COPYP, copy the groups instead."
1328 (interactive 1328 (interactive
1329 (list current-prefix-arg 1329 (list current-prefix-arg
1330 (gnus-completing-read 1330 (gnus-completing-read
1331 "Copy to topic" (mapcar 'car gnus-topic-alist) t))) 1331 "Copy to topic" (mapcar #'car gnus-topic-alist) t)))
1332 (gnus-topic-move-group n topic t)) 1332 (gnus-topic-move-group n topic t))
1333 1333
1334(defun gnus-topic-kill-group (&optional n discard) 1334(defun gnus-topic-kill-group (&optional n discard)
@@ -1422,7 +1422,7 @@ If PERMANENT, make it stay shown in subsequent sessions as well."
1422 (let ((topic 1422 (let ((topic
1423 (gnus-topic-find-topology 1423 (gnus-topic-find-topology
1424 (gnus-completing-read "Show topic" 1424 (gnus-completing-read "Show topic"
1425 (mapcar 'car gnus-topic-alist) t)))) 1425 (mapcar #'car gnus-topic-alist) t))))
1426 (setcar (cddr (cadr topic)) nil) 1426 (setcar (cddr (cadr topic)) nil)
1427 (setcar (cdr (cadr topic)) 'visible) 1427 (setcar (cdr (cadr topic)) 'visible)
1428 (gnus-group-list-groups))))) 1428 (gnus-group-list-groups)))))
@@ -1471,7 +1471,7 @@ If NON-RECURSIVE (which is the prefix) is t, don't unmark its subtopics."
1471 (nreverse 1471 (nreverse
1472 (list 1472 (list
1473 (setq topic (gnus-completing-read "Move to topic" 1473 (setq topic (gnus-completing-read "Move to topic"
1474 (mapcar 'car gnus-topic-alist) t)) 1474 (mapcar #'car gnus-topic-alist) t))
1475 (read-string (format "Move to %s (regexp): " topic)))))) 1475 (read-string (format "Move to %s (regexp): " topic))))))
1476 (gnus-group-mark-regexp regexp) 1476 (gnus-group-mark-regexp regexp)
1477 (gnus-topic-move-group nil topic copyp)) 1477 (gnus-topic-move-group nil topic copyp))
@@ -1704,7 +1704,7 @@ If REVERSE, sort in reverse order."
1704If REVERSE, reverse the sorting order." 1704If REVERSE, reverse the sorting order."
1705 (interactive 1705 (interactive
1706 (list (gnus-completing-read "Sort topics in" 1706 (list (gnus-completing-read "Sort topics in"
1707 (mapcar 'car gnus-topic-alist) t 1707 (mapcar #'car gnus-topic-alist) t
1708 (gnus-current-topic)) 1708 (gnus-current-topic))
1709 current-prefix-arg)) 1709 current-prefix-arg))
1710 (let ((topic-topology (or (and topic (cdr (gnus-topic-find-topology topic))) 1710 (let ((topic-topology (or (and topic (cdr (gnus-topic-find-topology topic)))
@@ -1719,7 +1719,7 @@ If REVERSE, reverse the sorting order."
1719 (interactive 1719 (interactive
1720 (list 1720 (list
1721 (gnus-group-topic-name) 1721 (gnus-group-topic-name)
1722 (gnus-completing-read "Move to topic" (mapcar 'car gnus-topic-alist) t))) 1722 (gnus-completing-read "Move to topic" (mapcar #'car gnus-topic-alist) t)))
1723 (unless (and current to) 1723 (unless (and current to)
1724 (error "Can't find topic")) 1724 (error "Can't find topic"))
1725 (let ((current-top (cdr (gnus-topic-find-topology current))) 1725 (let ((current-top (cdr (gnus-topic-find-topology current)))
diff --git a/lisp/gnus/gnus-undo.el b/lisp/gnus/gnus-undo.el
index 5e72effa6c7..5d2f85af36c 100644
--- a/lisp/gnus/gnus-undo.el
+++ b/lisp/gnus/gnus-undo.el
@@ -103,7 +103,7 @@
103 ;; Set up the menu. 103 ;; Set up the menu.
104 (when (gnus-visual-p 'undo-menu 'menu) 104 (when (gnus-visual-p 'undo-menu 'menu)
105 (gnus-undo-make-menu-bar)) 105 (gnus-undo-make-menu-bar))
106 (add-hook 'post-command-hook 'gnus-undo-boundary nil t))) 106 (add-hook 'post-command-hook #'gnus-undo-boundary nil t)))
107 107
108;;; Interface functions. 108;;; Interface functions.
109 109
@@ -161,15 +161,15 @@ A numeric argument serves as a repeat count."
161 (unless gnus-undo-mode 161 (unless gnus-undo-mode
162 (error "Undoing is not enabled in this buffer")) 162 (error "Undoing is not enabled in this buffer"))
163 (message "%s" last-command) 163 (message "%s" last-command)
164 (when (or (not (eq last-command 'gnus-undo)) 164 (unless (and (eq last-command 'gnus-undo)
165 (not gnus-undo-last)) 165 gnus-undo-last)
166 (setq gnus-undo-last gnus-undo-actions)) 166 (setq gnus-undo-last gnus-undo-actions))
167 (let ((action (pop gnus-undo-last))) 167 (let ((action (pop gnus-undo-last)))
168 (unless action 168 (unless action
169 (error "Nothing further to undo")) 169 (error "Nothing further to undo"))
170 (setq gnus-undo-actions (delq action gnus-undo-actions)) 170 (setq gnus-undo-actions (delq action gnus-undo-actions))
171 (setq gnus-undo-boundary t) 171 (setq gnus-undo-boundary t)
172 (mapc 'funcall action))) 172 (mapc #'funcall action)))
173 173
174(provide 'gnus-undo) 174(provide 'gnus-undo)
175 175
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 82c8731b471..b8451028d1e 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -445,7 +445,7 @@ displayed in the echo area."
445 `(let (str time) 445 `(let (str time)
446 (cond ((eq gnus-add-timestamp-to-message 'log) 446 (cond ((eq gnus-add-timestamp-to-message 'log)
447 (setq str (let (message-log-max) 447 (setq str (let (message-log-max)
448 (apply 'message ,format-string ,args))) 448 (apply #'message ,format-string ,args)))
449 (when (and message-log-max 449 (when (and message-log-max
450 (> message-log-max 0) 450 (> message-log-max 0)
451 (/= (length str) 0)) 451 (/= (length str) 0))
@@ -471,7 +471,7 @@ displayed in the echo area."
471 (message "%s" (concat ,timestamp str)) 471 (message "%s" (concat ,timestamp str))
472 str)) 472 str))
473 (t 473 (t
474 (apply 'message ,format-string ,args))))))) 474 (apply #'message ,format-string ,args)))))))
475 475
476(defvar gnus-action-message-log nil) 476(defvar gnus-action-message-log nil)
477 477
@@ -491,8 +491,8 @@ inside loops."
491 (if (<= level gnus-verbose) 491 (if (<= level gnus-verbose)
492 (let ((message 492 (let ((message
493 (if gnus-add-timestamp-to-message 493 (if gnus-add-timestamp-to-message
494 (apply 'gnus-message-with-timestamp args) 494 (apply #'gnus-message-with-timestamp args)
495 (apply 'message args)))) 495 (apply #'message args))))
496 (when (and (consp gnus-action-message-log) 496 (when (and (consp gnus-action-message-log)
497 (<= level 3)) 497 (<= level 3))
498 (push message gnus-action-message-log)) 498 (push message gnus-action-message-log))
@@ -513,7 +513,7 @@ inside loops."
513 "Beep an error if LEVEL is equal to or less than `gnus-verbose'. 513 "Beep an error if LEVEL is equal to or less than `gnus-verbose'.
514ARGS are passed to `message'." 514ARGS are passed to `message'."
515 (when (<= (floor level) gnus-verbose) 515 (when (<= (floor level) gnus-verbose)
516 (apply 'message args) 516 (apply #'message args)
517 (ding) 517 (ding)
518 (let (duration) 518 (let (duration)
519 (when (and (floatp level) 519 (when (and (floatp level)
@@ -1053,16 +1053,16 @@ ARG is passed to the first function."
1053(defun gnus-run-hooks (&rest funcs) 1053(defun gnus-run-hooks (&rest funcs)
1054 "Does the same as `run-hooks', but saves the current buffer." 1054 "Does the same as `run-hooks', but saves the current buffer."
1055 (save-current-buffer 1055 (save-current-buffer
1056 (apply 'run-hooks funcs))) 1056 (apply #'run-hooks funcs)))
1057 1057
1058(defun gnus-run-hook-with-args (hook &rest args) 1058(defun gnus-run-hook-with-args (hook &rest args)
1059 "Does the same as `run-hook-with-args', but saves the current buffer." 1059 "Does the same as `run-hook-with-args', but saves the current buffer."
1060 (save-current-buffer 1060 (save-current-buffer
1061 (apply 'run-hook-with-args hook args))) 1061 (apply #'run-hook-with-args hook args)))
1062 1062
1063(defun gnus-run-mode-hooks (&rest funcs) 1063(defun gnus-run-mode-hooks (&rest funcs)
1064 "Run `run-mode-hooks', saving the current buffer." 1064 "Run `run-mode-hooks', saving the current buffer."
1065 (save-current-buffer (apply 'run-mode-hooks funcs))) 1065 (save-current-buffer (apply #'run-mode-hooks funcs)))
1066 1066
1067;;; Various 1067;;; Various
1068 1068
@@ -1355,7 +1355,7 @@ SPEC is a predicate specifier that contains stuff like `or', `and',
1355 `(,spec elem)) 1355 `(,spec elem))
1356 ((listp spec) 1356 ((listp spec)
1357 (if (memq (car spec) '(or and not)) 1357 (if (memq (car spec) '(or and not))
1358 `(,(car spec) ,@(mapcar 'gnus-make-predicate-1 (cdr spec))) 1358 `(,(car spec) ,@(mapcar #'gnus-make-predicate-1 (cdr spec)))
1359 (error "Invalid predicate specifier: %s" spec))))) 1359 (error "Invalid predicate specifier: %s" spec)))))
1360 1360
1361(defun gnus-completing-read (prompt collection &optional require-match 1361(defun gnus-completing-read (prompt collection &optional require-match
@@ -1684,7 +1684,7 @@ lists of strings."
1684 (setq props (plist-put props :foreground (face-foreground face))) 1684 (setq props (plist-put props :foreground (face-foreground face)))
1685 (setq props (plist-put props :background (face-background face)))) 1685 (setq props (plist-put props :background (face-background face))))
1686 (ignore-errors 1686 (ignore-errors
1687 (apply 'create-image file type data-p props)))) 1687 (apply #'create-image file type data-p props))))
1688 1688
1689(defun gnus-put-image (glyph &optional string category) 1689(defun gnus-put-image (glyph &optional string category)
1690 (let ((point (point))) 1690 (let ((point (point)))
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el
index db0ffc6d0df..2bc1f864deb 100644
--- a/lisp/gnus/gnus-uu.el
+++ b/lisp/gnus/gnus-uu.el
@@ -356,7 +356,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time."
356(defun gnus-uu-decode-uu (&optional n) 356(defun gnus-uu-decode-uu (&optional n)
357 "Uudecodes the current article." 357 "Uudecodes the current article."
358 (interactive "P") 358 (interactive "P")
359 (gnus-uu-decode-with-method 'gnus-uu-uustrip-article n)) 359 (gnus-uu-decode-with-method #'gnus-uu-uustrip-article n))
360 360
361(defun gnus-uu-decode-uu-and-save (n dir) 361(defun gnus-uu-decode-uu-and-save (n dir)
362 "Decodes and saves the resulting file." 362 "Decodes and saves the resulting file."
@@ -366,12 +366,12 @@ didn't work, and overwrite existing files. Otherwise, ask each time."
366 (read-directory-name "Uudecode and save in dir: " 366 (read-directory-name "Uudecode and save in dir: "
367 gnus-uu-default-dir 367 gnus-uu-default-dir
368 gnus-uu-default-dir t)))) 368 gnus-uu-default-dir t))))
369 (gnus-uu-decode-with-method 'gnus-uu-uustrip-article n dir nil nil t)) 369 (gnus-uu-decode-with-method #'gnus-uu-uustrip-article n dir nil nil t))
370 370
371(defun gnus-uu-decode-unshar (&optional n) 371(defun gnus-uu-decode-unshar (&optional n)
372 "Unshars the current article." 372 "Unshars the current article."
373 (interactive "P") 373 (interactive "P")
374 (gnus-uu-decode-with-method 'gnus-uu-unshar-article n nil nil 'scan t)) 374 (gnus-uu-decode-with-method #'gnus-uu-unshar-article n nil nil 'scan t))
375 375
376(defun gnus-uu-decode-unshar-and-save (n dir) 376(defun gnus-uu-decode-unshar-and-save (n dir)
377 "Unshars and saves the current article." 377 "Unshars and saves the current article."
@@ -381,7 +381,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time."
381 (read-directory-name "Unshar and save in dir: " 381 (read-directory-name "Unshar and save in dir: "
382 gnus-uu-default-dir 382 gnus-uu-default-dir
383 gnus-uu-default-dir t)))) 383 gnus-uu-default-dir t))))
384 (gnus-uu-decode-with-method 'gnus-uu-unshar-article n dir nil 'scan t)) 384 (gnus-uu-decode-with-method #'gnus-uu-unshar-article n dir nil 'scan t))
385 385
386(defun gnus-uu-decode-save (n file) 386(defun gnus-uu-decode-save (n file)
387 "Saves the current article." 387 "Saves the current article."
@@ -393,7 +393,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time."
393 (read-file-name 393 (read-file-name
394 "Save article in file: " gnus-uu-default-dir gnus-uu-default-dir)))) 394 "Save article in file: " gnus-uu-default-dir gnus-uu-default-dir))))
395 (setq gnus-uu-saved-article-name file) 395 (setq gnus-uu-saved-article-name file)
396 (gnus-uu-decode-with-method 'gnus-uu-save-article n nil t)) 396 (gnus-uu-decode-with-method #'gnus-uu-save-article n nil t))
397 397
398(defun gnus-uu-decode-binhex (n dir) 398(defun gnus-uu-decode-binhex (n dir)
399 "Unbinhexes the current article." 399 "Unbinhexes the current article."
@@ -406,7 +406,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time."
406 (gnus-uu-initialize) 406 (gnus-uu-initialize)
407 (setq gnus-uu-binhex-article-name 407 (setq gnus-uu-binhex-article-name
408 (make-temp-file (expand-file-name "binhex" gnus-uu-work-dir))) 408 (make-temp-file (expand-file-name "binhex" gnus-uu-work-dir)))
409 (gnus-uu-decode-with-method 'gnus-uu-binhex-article n dir)) 409 (gnus-uu-decode-with-method #'gnus-uu-binhex-article n dir))
410 410
411(defun gnus-uu-decode-yenc (n dir) 411(defun gnus-uu-decode-yenc (n dir)
412 "Decode the yEnc-encoded current article." 412 "Decode the yEnc-encoded current article."
@@ -417,7 +417,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time."
417 gnus-uu-default-dir 417 gnus-uu-default-dir
418 gnus-uu-default-dir)))) 418 gnus-uu-default-dir))))
419 (setq gnus-uu-yenc-article-name nil) 419 (setq gnus-uu-yenc-article-name nil)
420 (gnus-uu-decode-with-method 'gnus-uu-yenc-article n dir nil t)) 420 (gnus-uu-decode-with-method #'gnus-uu-yenc-article n dir nil t))
421 421
422(defun gnus-uu-decode-uu-view (&optional n) 422(defun gnus-uu-decode-uu-view (&optional n)
423 "Uudecodes and views the current article." 423 "Uudecodes and views the current article."
@@ -729,7 +729,7 @@ When called interactively, prompt for REGEXP."
729(defun gnus-uu-decode-postscript (&optional n) 729(defun gnus-uu-decode-postscript (&optional n)
730 "Gets PostScript of the current article." 730 "Gets PostScript of the current article."
731 (interactive "P") 731 (interactive "P")
732 (gnus-uu-decode-with-method 'gnus-uu-decode-postscript-article n)) 732 (gnus-uu-decode-with-method #'gnus-uu-decode-postscript-article n))
733 733
734(defun gnus-uu-decode-postscript-view (&optional n) 734(defun gnus-uu-decode-postscript-view (&optional n)
735 "Gets and views the current article." 735 "Gets and views the current article."
@@ -745,7 +745,7 @@ When called interactively, prompt for REGEXP."
745 (read-directory-name "Save in dir: " 745 (read-directory-name "Save in dir: "
746 gnus-uu-default-dir 746 gnus-uu-default-dir
747 gnus-uu-default-dir t)))) 747 gnus-uu-default-dir t))))
748 (gnus-uu-decode-with-method 'gnus-uu-decode-postscript-article 748 (gnus-uu-decode-with-method #'gnus-uu-decode-postscript-article
749 n dir nil nil t)) 749 n dir nil nil t))
750 750
751(defun gnus-uu-decode-postscript-and-save-view (n dir) 751(defun gnus-uu-decode-postscript-and-save-view (n dir)
@@ -1196,11 +1196,11 @@ When called interactively, prompt for REGEXP."
1196 1196
1197 ;; Expand numbers, sort, and return the list of article 1197 ;; Expand numbers, sort, and return the list of article
1198 ;; numbers. 1198 ;; numbers.
1199 (mapcar 'cdr 1199 (mapcar #'cdr
1200 (sort (gnus-uu-expand-numbers 1200 (sort (gnus-uu-expand-numbers
1201 list-of-subjects 1201 list-of-subjects
1202 (not do-not-translate)) 1202 (not do-not-translate))
1203 'gnus-uu-string<)))))) 1203 #'gnus-uu-string<))))))
1204 1204
1205(defun gnus-uu-expand-numbers (string-list &optional translate) 1205(defun gnus-uu-expand-numbers (string-list &optional translate)
1206 ;; Takes a list of strings and "expands" all numbers in all the 1206 ;; Takes a list of strings and "expands" all numbers in all the
@@ -1830,8 +1830,8 @@ Gnus might fail to display all of it.")
1830 1830
1831;; Initializing 1831;; Initializing
1832 1832
1833(add-hook 'gnus-summary-prepare-exit-hook 'gnus-uu-clean-up) 1833(add-hook 'gnus-summary-prepare-exit-hook #'gnus-uu-clean-up)
1834(add-hook 'gnus-summary-prepare-exit-hook 'gnus-uu-delete-work-dir) 1834(add-hook 'gnus-summary-prepare-exit-hook #'gnus-uu-delete-work-dir)
1835 1835
1836 1836
1837 1837
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 3b172db2111..1eff9a82230 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -3501,7 +3501,7 @@ You should probably use `gnus-find-method-for-group' instead."
3501 (while (setq info (pop alist)) 3501 (while (setq info (pop alist))
3502 (when (gnus-server-equal (gnus-info-method info) server) 3502 (when (gnus-server-equal (gnus-info-method info) server)
3503 (push (gnus-info-group info) groups))) 3503 (push (gnus-info-group info) groups)))
3504 (sort groups 'string<))) 3504 (sort groups #'string<)))
3505 3505
3506(defun gnus-group-foreign-p (group) 3506(defun gnus-group-foreign-p (group)
3507 "Say whether a group is foreign or not." 3507 "Say whether a group is foreign or not."
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index 91671016a8b..c954f657936 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -462,21 +462,23 @@ the `mail-source-keyword-map' variable."
462 (cond 462 (cond
463 ((and 463 ((and
464 (eq keyword :user) 464 (eq keyword :user)
465 (setq user-auth (plist-get 465 (setq user-auth
466 ;; cache the search result in `found' 466 (plist-get
467 (or found 467 ;; cache the search result in `found'
468 (setq found (nth 0 (apply 'auth-source-search 468 (or found
469 search)))) 469 (setq found (nth 0 (apply #'auth-source-search
470 :user))) 470 search))))
471 :user)))
471 user-auth) 472 user-auth)
472 ((and 473 ((and
473 (eq keyword :password) 474 (eq keyword :password)
474 (setq pass-auth (plist-get 475 (setq pass-auth
475 ;; cache the search result in `found' 476 (plist-get
476 (or found 477 ;; cache the search result in `found'
477 (setq found (nth 0 (apply 'auth-source-search 478 (or found
478 search)))) 479 (setq found (nth 0 (apply #'auth-source-search
479 :secret))) 480 search))))
481 :secret)))
480 ;; maybe set the password to the return of the :secret function 482 ;; maybe set the password to the return of the :secret function
481 (if (functionp pass-auth) 483 (if (functionp pass-auth)
482 (setq pass-auth (funcall pass-auth)) 484 (setq pass-auth (funcall pass-auth))
@@ -685,7 +687,7 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile)
685 ;; find "our" movemail in exec-directory. 687 ;; find "our" movemail in exec-directory.
686 ;; Bug#31737 688 ;; Bug#31737
687 (apply 689 (apply
688 'call-process 690 #'call-process
689 (append 691 (append
690 (list 692 (list
691 mail-source-movemail-program 693 mail-source-movemail-program
@@ -1002,11 +1004,11 @@ This only works when `display-time' is enabled."
1002 #'mail-source-start-idle-timer)) 1004 #'mail-source-start-idle-timer))
1003 ;; When you get new mail, clear "Mail" from the mode line. 1005 ;; When you get new mail, clear "Mail" from the mode line.
1004 (add-hook 'nnmail-post-get-new-mail-hook 1006 (add-hook 'nnmail-post-get-new-mail-hook
1005 'display-time-event-handler) 1007 #'display-time-event-handler)
1006 (message "Mail check enabled")) 1008 (message "Mail check enabled"))
1007 (setq display-time-mail-function nil) 1009 (setq display-time-mail-function nil)
1008 (remove-hook 'nnmail-post-get-new-mail-hook 1010 (remove-hook 'nnmail-post-get-new-mail-hook
1009 'display-time-event-handler) 1011 #'display-time-event-handler)
1010 (message "Mail check disabled")))) 1012 (message "Mail check disabled"))))
1011 1013
1012(defun mail-source-fetch-maildir (source callback) 1014(defun mail-source-fetch-maildir (source callback)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 1409a4384ab..3f671193a29 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -2195,10 +2195,11 @@ see `message-narrow-to-headers-or-head'."
2195 (require 'gnus-sum) ; for gnus-list-identifiers 2195 (require 'gnus-sum) ; for gnus-list-identifiers
2196 (let ((regexp (if (stringp gnus-list-identifiers) 2196 (let ((regexp (if (stringp gnus-list-identifiers)
2197 gnus-list-identifiers 2197 gnus-list-identifiers
2198 (mapconcat 'identity gnus-list-identifiers " *\\|")))) 2198 (mapconcat #'identity gnus-list-identifiers " *\\|"))))
2199 (if (and (not (equal regexp "")) 2199 (if (and (not (equal regexp ""))
2200 (string-match (concat "\\(\\(\\(Re: +\\)?\\(" regexp 2200 (string-match (concat "\\(\\(\\(Re: +\\)?\\(" regexp
2201 " *\\)\\)+\\(Re: +\\)?\\)") subject)) 2201 " *\\)\\)+\\(Re: +\\)?\\)")
2202 subject))
2202 (concat (substring subject 0 (match-beginning 1)) 2203 (concat (substring subject 0 (match-beginning 1))
2203 (or (match-string 3 subject) 2204 (or (match-string 3 subject)
2204 (match-string 5 subject)) 2205 (match-string 5 subject))
@@ -3173,7 +3174,7 @@ Like `text-mode', but with these additional commands:
3173 3174
3174(defun message-setup-fill-variables () 3175(defun message-setup-fill-variables ()
3175 "Setup message fill variables." 3176 "Setup message fill variables."
3176 (setq-local fill-paragraph-function 'message-fill-paragraph) 3177 (setq-local fill-paragraph-function #'message-fill-paragraph)
3177 (make-local-variable 'adaptive-fill-first-line-regexp) 3178 (make-local-variable 'adaptive-fill-first-line-regexp)
3178 (let ((quote-prefix-regexp 3179 (let ((quote-prefix-regexp
3179 ;; User should change message-cite-prefix-regexp if 3180 ;; User should change message-cite-prefix-regexp if
@@ -3197,7 +3198,7 @@ Like `text-mode', but with these additional commands:
3197 (concat quote-prefix-regexp "\\|" 3198 (concat quote-prefix-regexp "\\|"
3198 adaptive-fill-first-line-regexp))) 3199 adaptive-fill-first-line-regexp)))
3199 (setq-local auto-fill-inhibit-regexp nil) 3200 (setq-local auto-fill-inhibit-regexp nil)
3200 (setq-local normal-auto-fill-function 'message-do-auto-fill)) 3201 (setq-local normal-auto-fill-function #'message-do-auto-fill))
3201 3202
3202 3203
3203 3204
@@ -4064,7 +4065,7 @@ This function uses `mail-citation-hook' if that is non-nil."
4064 ;; Insert a blank line if it is peeled off. 4065 ;; Insert a blank line if it is peeled off.
4065 (insert "\n")))) 4066 (insert "\n"))))
4066 (goto-char start) 4067 (goto-char start)
4067 (mapc 'funcall functions) 4068 (mapc #'funcall functions)
4068 (when message-citation-line-function 4069 (when message-citation-line-function
4069 (unless (bolp) 4070 (unless (bolp)
4070 (insert "\n")) 4071 (insert "\n"))
@@ -4555,7 +4556,7 @@ An address might be bogus if there's a matching entry in
4555 (and message-bogus-addresses 4556 (and message-bogus-addresses
4556 (let ((re 4557 (let ((re
4557 (if (listp message-bogus-addresses) 4558 (if (listp message-bogus-addresses)
4558 (mapconcat 'identity 4559 (mapconcat #'identity
4559 message-bogus-addresses 4560 message-bogus-addresses
4560 "\\|") 4561 "\\|")
4561 message-bogus-addresses))) 4562 message-bogus-addresses)))
@@ -4950,7 +4951,7 @@ that instead."
4950 (let* ((default-directory "/") 4951 (let* ((default-directory "/")
4951 (coding-system-for-write message-send-coding-system) 4952 (coding-system-for-write message-send-coding-system)
4952 (cpr (apply 4953 (cpr (apply
4953 'call-process-region 4954 #'call-process-region
4954 (append 4955 (append
4955 (list (point-min) (point-max) sendmail-program 4956 (list (point-min) (point-max) sendmail-program
4956 nil errbuf nil "-oi") 4957 nil errbuf nil "-oi")
@@ -5002,7 +5003,7 @@ to find out how to use this."
5002 (pcase 5003 (pcase
5003 (let ((coding-system-for-write message-send-coding-system)) 5004 (let ((coding-system-for-write message-send-coding-system))
5004 (apply 5005 (apply
5005 'call-process-region (point-min) (point-max) 5006 #'call-process-region (point-min) (point-max)
5006 message-qmail-inject-program nil nil nil 5007 message-qmail-inject-program nil nil nil
5007 ;; qmail-inject's default behavior is to look for addresses on the 5008 ;; qmail-inject's default behavior is to look for addresses on the
5008 ;; command line; if there're none, it scans the headers. 5009 ;; command line; if there're none, it scans the headers.
@@ -5394,7 +5395,7 @@ Otherwise, generate and save a value for `canlock-password' first."
5394 "Really use %s possibly unknown group%s: %s? " 5395 "Really use %s possibly unknown group%s: %s? "
5395 (if (= (length errors) 1) "this" "these") 5396 (if (= (length errors) 1) "this" "these")
5396 (if (= (length errors) 1) "" "s") 5397 (if (= (length errors) 1) "" "s")
5397 (mapconcat 'identity errors ", ")))) 5398 (mapconcat #'identity errors ", "))))
5398 ;; There were no errors. 5399 ;; There were no errors.
5399 ((not errors) 5400 ((not errors)
5400 t) 5401 t)
@@ -6061,7 +6062,7 @@ subscribed address (and not the additional To and Cc header contents)."
6061 (cc (message-fetch-field "cc")) 6062 (cc (message-fetch-field "cc"))
6062 (msg-recipients (concat to (and to cc ", ") cc)) 6063 (msg-recipients (concat to (and to cc ", ") cc))
6063 (recipients 6064 (recipients
6064 (mapcar 'mail-strip-quoted-names 6065 (mapcar #'mail-strip-quoted-names
6065 (message-tokenize-header msg-recipients))) 6066 (message-tokenize-header msg-recipients)))
6066 (file-regexps 6067 (file-regexps
6067 (if message-subscribed-address-file 6068 (if message-subscribed-address-file
@@ -6078,11 +6079,11 @@ subscribed address (and not the additional To and Cc header contents)."
6078 (if re (setq re (concat re "\\|" item)) 6079 (if re (setq re (concat re "\\|" item))
6079 (setq re (concat "\\`\\(" item)))) 6080 (setq re (concat "\\`\\(" item))))
6080 (and re (list (concat re "\\)\\'")))))))) 6081 (and re (list (concat re "\\)\\'"))))))))
6081 (mft-regexps (apply 'append message-subscribed-regexps 6082 (mft-regexps (apply #'append message-subscribed-regexps
6082 (mapcar 'regexp-quote 6083 (mapcar #'regexp-quote
6083 message-subscribed-addresses) 6084 message-subscribed-addresses)
6084 file-regexps 6085 file-regexps
6085 (mapcar 'funcall 6086 (mapcar #'funcall
6086 message-subscribed-address-functions)))) 6087 message-subscribed-address-functions))))
6087 (save-match-data 6088 (save-match-data
6088 (let ((list 6089 (let ((list
@@ -6103,7 +6104,7 @@ subscribed address (and not the additional To and Cc header contents)."
6103 (dolist (rhs 6104 (dolist (rhs
6104 (delete-dups 6105 (delete-dups
6105 (mapcar (lambda (rhs) (or (cadr (split-string rhs "@")) "")) 6106 (mapcar (lambda (rhs) (or (cadr (split-string rhs "@")) ""))
6106 (mapcar 'downcase 6107 (mapcar #'downcase
6107 (mapcar 6108 (mapcar
6108 (lambda (elem) 6109 (lambda (elem)
6109 (or (cadr elem) 6110 (or (cadr elem)
@@ -6569,7 +6570,7 @@ moved to the beginning "
6569 (if to 6570 (if to
6570 (concat " to " 6571 (concat " to "
6571 (or (car (mail-extract-address-components to)) 6572 (or (car (mail-extract-address-components to))
6572 to) "") 6573 to))
6573 "") 6574 "")
6574 (if (and group (not (string= group ""))) (concat " on " group) "") 6575 (if (and group (not (string= group ""))) (concat " on " group) "")
6575 "*"))) 6576 "*")))
@@ -6583,7 +6584,7 @@ moved to the beginning "
6583 (if to 6584 (if to
6584 (concat " to " 6585 (concat " to "
6585 (or (car (mail-extract-address-components to)) 6586 (or (car (mail-extract-address-components to))
6586 to) "") 6587 to))
6587 "") 6588 "")
6588 (if (and group (not (string= group ""))) (concat " on " group) "") 6589 (if (and group (not (string= group ""))) (concat " on " group) "")
6589 "*"))) 6590 "*")))
@@ -6612,7 +6613,7 @@ moved to the beginning "
6612 (cons (string-to-number (or (match-string 1 b) "1")) 6613 (cons (string-to-number (or (match-string 1 b) "1"))
6613 b))) 6614 b)))
6614 (buffer-list))) 6615 (buffer-list)))
6615 'car-less-than-car))) 6616 #'car-less-than-car)))
6616 new))))) 6617 new)))))
6617 6618
6618(defun message-pop-to-buffer (name &optional switch-function) 6619(defun message-pop-to-buffer (name &optional switch-function)
@@ -6968,8 +6969,8 @@ The function is called with one parameter, a cons cell ..."
6968 (message-fetch-field "original-to"))) 6969 (message-fetch-field "original-to")))
6969 cc (message-fetch-field "cc") 6970 cc (message-fetch-field "cc")
6970 extra (when message-extra-wide-headers 6971 extra (when message-extra-wide-headers
6971 (mapconcat 'identity 6972 (mapconcat #'identity
6972 (mapcar 'message-fetch-field 6973 (mapcar #'message-fetch-field
6973 message-extra-wide-headers) 6974 message-extra-wide-headers)
6974 ", ")) 6975 ", "))
6975 mct (message-fetch-field "mail-copies-to") 6976 mct (message-fetch-field "mail-copies-to")
@@ -7053,7 +7054,7 @@ want to get rid of this query permanently.")))
7053 (setq recipients 7054 (setq recipients
7054 (cond ((functionp message-dont-reply-to-names) 7055 (cond ((functionp message-dont-reply-to-names)
7055 (mapconcat 7056 (mapconcat
7056 'identity 7057 #'identity
7057 (delq nil 7058 (delq nil
7058 (mapcar (lambda (mail) 7059 (mapcar (lambda (mail)
7059 (unless (funcall message-dont-reply-to-names 7060 (unless (funcall message-dont-reply-to-names
@@ -7087,7 +7088,7 @@ want to get rid of this query permanently.")))
7087 ;; Remove hierarchical lists that are contained within each other, 7088 ;; Remove hierarchical lists that are contained within each other,
7088 ;; if message-hierarchical-addresses is defined. 7089 ;; if message-hierarchical-addresses is defined.
7089 (when message-hierarchical-addresses 7090 (when message-hierarchical-addresses
7090 (let ((plain-addrs (mapcar 'car recipients)) 7091 (let ((plain-addrs (mapcar #'car recipients))
7091 subaddrs recip) 7092 subaddrs recip)
7092 (while plain-addrs 7093 (while plain-addrs
7093 (setq subaddrs (assoc (car plain-addrs) 7094 (setq subaddrs (assoc (car plain-addrs)
@@ -8366,7 +8367,7 @@ The following arguments may contain lists of values."
8366 (with-output-to-temp-buffer " *MESSAGE information message*" 8367 (with-output-to-temp-buffer " *MESSAGE information message*"
8367 (with-current-buffer " *MESSAGE information message*" 8368 (with-current-buffer " *MESSAGE information message*"
8368 (fundamental-mode) 8369 (fundamental-mode)
8369 (mapc 'princ text) 8370 (mapc #'princ text)
8370 (goto-char (point-min)))) 8371 (goto-char (point-min))))
8371 (funcall ask question)) 8372 (funcall ask question))
8372 (funcall ask question))) 8373 (funcall ask question)))
diff --git a/lisp/gnus/mm-archive.el b/lisp/gnus/mm-archive.el
index 635e7f4ee84..6173d86327a 100644
--- a/lisp/gnus/mm-archive.el
+++ b/lisp/gnus/mm-archive.el
@@ -54,10 +54,10 @@
54 (write-region (point-min) (point-max) file nil 'silent) 54 (write-region (point-min) (point-max) file nil 'silent)
55 (setq decoder (copy-sequence decoder)) 55 (setq decoder (copy-sequence decoder))
56 (setcar (member "%f" decoder) file) 56 (setcar (member "%f" decoder) file)
57 (apply 'call-process (car decoder) nil nil nil 57 (apply #'call-process (car decoder) nil nil nil
58 (append (cdr decoder) (list dir))) 58 (append (cdr decoder) (list dir)))
59 (delete-file file)) 59 (delete-file file))
60 (apply 'call-process-region (point-min) (point-max) (car decoder) 60 (apply #'call-process-region (point-min) (point-max) (car decoder)
61 nil (gnus-get-buffer-create "*tnef*") 61 nil (gnus-get-buffer-create "*tnef*")
62 nil (append (cdr decoder) (list dir))))) 62 nil (append (cdr decoder) (list dir)))))
63 `("multipart/mixed" 63 `("multipart/mixed"
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index a62e954af3f..02cd6af0c98 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -40,8 +40,8 @@
40 40
41(defvar gnus-current-window-configuration) 41(defvar gnus-current-window-configuration)
42 42
43(add-hook 'gnus-exit-gnus-hook 'mm-destroy-postponed-undisplay-list) 43(add-hook 'gnus-exit-gnus-hook #'mm-destroy-postponed-undisplay-list)
44(add-hook 'gnus-exit-gnus-hook 'mm-temp-files-delete) 44(add-hook 'gnus-exit-gnus-hook #'mm-temp-files-delete)
45 45
46(defgroup mime-display () 46(defgroup mime-display ()
47 "Display of MIME in mail and news articles." 47 "Display of MIME in mail and news articles."
@@ -603,7 +603,7 @@ files left at the next time."
603 (if fails 603 (if fails
604 ;; Schedule the deletion of the files left at the next time. 604 ;; Schedule the deletion of the files left at the next time.
605 (with-file-modes #o600 605 (with-file-modes #o600
606 (write-region (concat (mapconcat 'identity (nreverse fails) "\n") 606 (write-region (concat (mapconcat #'identity (nreverse fails) "\n")
607 "\n") 607 "\n")
608 nil cache-file nil 'silent)) 608 nil cache-file nil 'silent))
609 (when (file-exists-p cache-file) 609 (when (file-exists-p cache-file)
@@ -1081,7 +1081,8 @@ external if displayed external."
1081 (string= total "\"%s\"")) 1081 (string= total "\"%s\""))
1082 (setq uses-stdin nil) 1082 (setq uses-stdin nil)
1083 (push (shell-quote-argument 1083 (push (shell-quote-argument
1084 (gnus-map-function mm-path-name-rewrite-functions file)) out)) 1084 (gnus-map-function mm-path-name-rewrite-functions file))
1085 out))
1085 ((string= total "%t") 1086 ((string= total "%t")
1086 (push (shell-quote-argument (car type-list)) out)) 1087 (push (shell-quote-argument (car type-list)) out))
1087 (t 1088 (t
@@ -1092,7 +1093,7 @@ external if displayed external."
1092 (push (shell-quote-argument 1093 (push (shell-quote-argument
1093 (gnus-map-function mm-path-name-rewrite-functions file)) 1094 (gnus-map-function mm-path-name-rewrite-functions file))
1094 out)) 1095 out))
1095 (mapconcat 'identity (nreverse out) ""))) 1096 (mapconcat #'identity (nreverse out) "")))
1096 1097
1097(defun mm-remove-parts (handles) 1098(defun mm-remove-parts (handles)
1098 "Remove the displayed MIME parts represented by HANDLES." 1099 "Remove the displayed MIME parts represented by HANDLES."
diff --git a/lisp/gnus/mm-url.el b/lisp/gnus/mm-url.el
index 412a4744125..73106a29323 100644
--- a/lisp/gnus/mm-url.el
+++ b/lisp/gnus/mm-url.el
@@ -299,7 +299,7 @@ If `mm-url-use-external' is non-nil, use `mm-url-program'."
299 args (append (cdr item) (list url)))) 299 args (append (cdr item) (list url))))
300 (setq program mm-url-program 300 (setq program mm-url-program
301 args (append mm-url-arguments (list url)))) 301 args (append mm-url-arguments (list url))))
302 (unless (eq 0 (apply 'call-process program nil t nil args)) 302 (unless (eq 0 (apply #'call-process program nil t nil args))
303 (error "Couldn't fetch %s" url)))) 303 (error "Couldn't fetch %s" url))))
304 304
305(defvar mm-url-timeout 30 305(defvar mm-url-timeout 30
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index db42bfa4b10..329b9e8884d 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -380,7 +380,7 @@ like \"&#128;\" to the euro sign, mainly in html messages."
380 "Return the MIME charset corresponding to the given Mule CHARSET." 380 "Return the MIME charset corresponding to the given Mule CHARSET."
381 (let ((css (sort (sort-coding-systems 381 (let ((css (sort (sort-coding-systems
382 (find-coding-systems-for-charsets (list charset))) 382 (find-coding-systems-for-charsets (list charset)))
383 'mm-sort-coding-systems-predicate)) 383 #'mm-sort-coding-systems-predicate))
384 cs mime) 384 cs mime)
385 (while (and (not mime) 385 (while (and (not mime)
386 css) 386 css)
@@ -501,7 +501,7 @@ charset, and a longer list means no appropriate charset."
501 (let ((systems (find-coding-systems-region b e))) 501 (let ((systems (find-coding-systems-region b e)))
502 (when mm-coding-system-priorities 502 (when mm-coding-system-priorities
503 (setq systems 503 (setq systems
504 (sort systems 'mm-sort-coding-systems-predicate))) 504 (sort systems #'mm-sort-coding-systems-predicate)))
505 (setq systems (delq 'compound-text systems)) 505 (setq systems (delq 'compound-text systems))
506 (unless (equal systems '(undecided)) 506 (unless (equal systems '(undecided))
507 (while systems 507 (while systems
@@ -751,7 +751,7 @@ decompressed data. The buffer's multibyteness must be turned off."
751 (insert-buffer-substring cur) 751 (insert-buffer-substring cur)
752 (condition-case err 752 (condition-case err
753 (progn 753 (progn
754 (unless (memq (apply 'call-process-region 754 (unless (memq (apply #'call-process-region
755 (point-min) (point-max) 755 (point-min) (point-max)
756 prog t (list t err-file) nil args) 756 prog t (list t err-file) nil args)
757 jka-compr-acceptable-retval-list) 757 jka-compr-acceptable-retval-list)
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index 0683703a4ea..266f471a3fd 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -274,13 +274,13 @@ This is only used if `mm-inline-large-images' is set to
274 (write-region (point-min) (point-max) file nil 'silent)) 274 (write-region (point-min) (point-max) file nil 'silent))
275 (delete-region (point-min) (point-max)) 275 (delete-region (point-min) (point-max))
276 (unwind-protect 276 (unwind-protect
277 (apply 'call-process cmd nil t nil (mapcar 'eval args)) 277 (apply #'call-process cmd nil t nil (mapcar (lambda (e) (eval e t)) args))
278 (delete-file file)) 278 (delete-file file))
279 (and post-func (funcall post-func)))) 279 (and post-func (funcall post-func))))
280 280
281(defun mm-inline-wash-with-stdin (post-func cmd &rest args) 281(defun mm-inline-wash-with-stdin (post-func cmd &rest args)
282 (let ((coding-system-for-write 'binary)) 282 (let ((coding-system-for-write 'binary))
283 (apply 'call-process-region (point-min) (point-max) 283 (apply #'call-process-region (point-min) (point-max)
284 cmd t t nil args)) 284 cmd t t nil args))
285 (and post-func (funcall post-func))) 285 (and post-func (funcall post-func)))
286 286
@@ -290,7 +290,7 @@ This is only used if `mm-inline-large-images' is set to
290 handle 290 handle
291 (mm-with-unibyte-buffer 291 (mm-with-unibyte-buffer
292 (insert source) 292 (insert source)
293 (apply 'mm-inline-wash-with-file post-func cmd args) 293 (apply #'mm-inline-wash-with-file post-func cmd args)
294 (buffer-string))))) 294 (buffer-string)))))
295 295
296(defun mm-inline-render-with-stdin (handle post-func cmd &rest args) 296(defun mm-inline-render-with-stdin (handle post-func cmd &rest args)
@@ -299,7 +299,7 @@ This is only used if `mm-inline-large-images' is set to
299 handle 299 handle
300 (mm-with-unibyte-buffer 300 (mm-with-unibyte-buffer
301 (insert source) 301 (insert source)
302 (apply 'mm-inline-wash-with-stdin post-func cmd args) 302 (apply #'mm-inline-wash-with-stdin post-func cmd args)
303 (buffer-string))))) 303 (buffer-string)))))
304 304
305(defun mm-inline-render-with-function (handle func &rest args) 305(defun mm-inline-render-with-function (handle func &rest args)
@@ -317,7 +317,7 @@ This is only used if `mm-inline-large-images' is set to
317 317
318(defun mm-inline-text-html (handle) 318(defun mm-inline-text-html (handle)
319 (if (stringp (car handle)) 319 (if (stringp (car handle))
320 (mapcar 'mm-inline-text-html (cdr handle)) 320 (mapcar #'mm-inline-text-html (cdr handle))
321 (let* ((func mm-text-html-renderer) 321 (let* ((func mm-text-html-renderer)
322 (entry (assq func mm-text-html-renderer-alist)) 322 (entry (assq func mm-text-html-renderer-alist))
323 (inhibit-read-only t)) 323 (inhibit-read-only t))
diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el
index c117a3866ab..a050fe04e1b 100644
--- a/lisp/gnus/mml-sec.el
+++ b/lisp/gnus/mml-sec.el
@@ -236,7 +236,7 @@ You can also customize or set `mml-signencrypt-style-alist' instead."
236 (re-search-forward 236 (re-search-forward
237 (concat "^" (regexp-quote mail-header-separator) "\n") nil t)) 237 (concat "^" (regexp-quote mail-header-separator) "\n") nil t))
238 (goto-char (match-end 0)) 238 (goto-char (match-end 0))
239 (apply 'mml-insert-tag 'part (cons (if sign 'sign 'encrypt) 239 (apply #'mml-insert-tag 'part (cons (if sign 'sign 'encrypt)
240 (cons method tags)))) 240 (cons method tags))))
241 (t (error "The message is corrupted. No mail header separator")))))) 241 (t (error "The message is corrupted. No mail header separator"))))))
242 242
@@ -346,8 +346,8 @@ either an error is raised or not."
346 (concat "^" (regexp-quote mail-header-separator) "\n") nil t) 346 (concat "^" (regexp-quote mail-header-separator) "\n") nil t)
347 (goto-char (setq insert-loc (match-end 0))) 347 (goto-char (setq insert-loc (match-end 0)))
348 (unless (looking-at "<#secure") 348 (unless (looking-at "<#secure")
349 (apply 'mml-insert-tag 349 (apply #'mml-insert-tag
350 'secure 'method method 'mode mode tags))) 350 'secure 'method method 'mode mode tags)))
351 (t (error 351 (t (error
352 "The message is corrupted. No mail header separator")))) 352 "The message is corrupted. No mail header separator"))))
353 (when (eql insert-loc (point)) 353 (when (eql insert-loc (point))
@@ -558,7 +558,7 @@ Return keys."
558 (cl-assert keys) 558 (cl-assert keys)
559 (let* ((usage-prefs (mml-secure-cust-usage-lookup context usage)) 559 (let* ((usage-prefs (mml-secure-cust-usage-lookup context usage))
560 (curr-fprs (cdr (assoc name (cdr usage-prefs)))) 560 (curr-fprs (cdr (assoc name (cdr usage-prefs))))
561 (key-fprs (mapcar 'mml-secure-fingerprint keys)) 561 (key-fprs (mapcar #'mml-secure-fingerprint keys))
562 (new-fprs (cl-union curr-fprs key-fprs :test 'equal))) 562 (new-fprs (cl-union curr-fprs key-fprs :test 'equal)))
563 (if curr-fprs 563 (if curr-fprs
564 (setcdr (assoc name (cdr usage-prefs)) new-fprs) 564 (setcdr (assoc name (cdr usage-prefs)) new-fprs)
@@ -795,7 +795,7 @@ When `mml-secure-fail-when-key-problem' is t, fail with an error in case of
795outdated or multiple keys." 795outdated or multiple keys."
796 (let* ((nname (mml-secure-normalize-cust-name name)) 796 (let* ((nname (mml-secure-normalize-cust-name name))
797 (fprs (mml-secure-cust-fpr-lookup context usage nname)) 797 (fprs (mml-secure-cust-fpr-lookup context usage nname))
798 (usable-fprs (mapcar 'mml-secure-fingerprint keys))) 798 (usable-fprs (mapcar #'mml-secure-fingerprint keys)))
799 (if fprs 799 (if fprs
800 (if (gnus-subsetp fprs usable-fprs) 800 (if (gnus-subsetp fprs usable-fprs)
801 (mml-secure-filter-keys keys fprs) 801 (mml-secure-filter-keys keys fprs)
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el
index 5baeaffa53a..e97e3e9a06e 100644
--- a/lisp/gnus/mml-smime.el
+++ b/lisp/gnus/mml-smime.el
@@ -179,7 +179,7 @@ Whether the passphrase is cached at all is controlled by
179 (and from (smime-get-key-by-email from))) 179 (and from (smime-get-key-by-email from)))
180 (smime-get-key-by-email 180 (smime-get-key-by-email
181 (gnus-completing-read "Sign this part with what signature" 181 (gnus-completing-read "Sign this part with what signature"
182 (mapcar 'car smime-keys) nil nil nil 182 (mapcar #'car smime-keys) nil nil nil
183 (and (listp (car-safe smime-keys)) 183 (and (listp (car-safe smime-keys))
184 (caar smime-keys)))))))) 184 (caar smime-keys))))))))
185 185
@@ -287,7 +287,7 @@ Whether the passphrase is cached at all is controlled by
287 (point-min) (point)) 287 (point-min) (point))
288 addresses))) 288 addresses)))
289 (delete-region (point-min) (point))) 289 (delete-region (point-min) (point)))
290 (setq addresses (mapcar 'downcase addresses)))) 290 (setq addresses (mapcar #'downcase addresses))))
291 (if (not (member (downcase (or (mm-handle-multipart-from ctl) "")) 291 (if (not (member (downcase (or (mm-handle-multipart-from ctl) ""))
292 addresses)) 292 addresses))
293 (mm-sec-error 'gnus-info "Sender address forged") 293 (mm-sec-error 'gnus-info "Sender address forged")
@@ -299,7 +299,7 @@ Whether the passphrase is cached at all is controlled by
299 (concat "Sender claimed to be: " (mm-handle-multipart-from ctl) "\n" 299 (concat "Sender claimed to be: " (mm-handle-multipart-from ctl) "\n"
300 (if addresses 300 (if addresses
301 (concat "Addresses in certificate: " 301 (concat "Addresses in certificate: "
302 (mapconcat 'identity addresses ", ")) 302 (mapconcat #'identity addresses ", "))
303 "No addresses found in certificate. (Requires OpenSSL 0.9.6 or later.)") 303 "No addresses found in certificate. (Requires OpenSSL 0.9.6 or later.)")
304 "\n" "\n" 304 "\n" "\n"
305 "OpenSSL output:\n" 305 "OpenSSL output:\n"
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 424215de941..752dede8d01 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -206,8 +206,8 @@ part. This is for the internal use, you should never modify the value.")
206 206
207(defun mml-destroy-buffers () 207(defun mml-destroy-buffers ()
208 (let (kill-buffer-hook) 208 (let (kill-buffer-hook)
209 (mapc 'kill-buffer mml-buffer-list) 209 (mapc #'kill-buffer (prog1 mml-buffer-list
210 (setq mml-buffer-list nil))) 210 (setq mml-buffer-list nil)))))
211 211
212(defun mml-parse () 212(defun mml-parse ()
213 "Parse the current buffer as an MML document." 213 "Parse the current buffer as an MML document."
@@ -499,7 +499,7 @@ type detected."
499 content-type) 499 content-type)
500 (setcdr (assq 'type (cdr (car cont))) content-type)) 500 (setcdr (assq 'type (cdr (car cont))) content-type))
501 (when (fboundp 'libxml-parse-html-region) 501 (when (fboundp 'libxml-parse-html-region)
502 (setq cont (mapcar 'mml-expand-all-html-into-multipart-related cont))) 502 (setq cont (mapcar #'mml-expand-all-html-into-multipart-related cont)))
503 (prog1 503 (prog1
504 (with-temp-buffer 504 (with-temp-buffer
505 (set-buffer-multibyte nil) 505 (set-buffer-multibyte nil)
@@ -862,7 +862,7 @@ type detected."
862 (cl-incf mml-multipart-number))) 862 (cl-incf mml-multipart-number)))
863 (throw 'not-unique nil)))) 863 (throw 'not-unique nil))))
864 ((eq (car cont) 'multipart) 864 ((eq (car cont) 'multipart)
865 (mapc 'mml-compute-boundary-1 (cddr cont)))) 865 (mapc #'mml-compute-boundary-1 (cddr cont))))
866 t) 866 t)
867 867
868(defun mml-make-boundary (number) 868(defun mml-make-boundary (number)
@@ -1077,7 +1077,7 @@ If HANDLES is non-nil, use it instead reparsing the buffer."
1077 (goto-char (point-max)) 1077 (goto-char (point-max))
1078 (insert "<#/mml>\n")) 1078 (insert "<#/mml>\n"))
1079 ((stringp (car handle)) 1079 ((stringp (car handle))
1080 (mapc 'mml-insert-mime (cdr handle)) 1080 (mapc #'mml-insert-mime (cdr handle))
1081 (insert "<#/multipart>\n")) 1081 (insert "<#/multipart>\n"))
1082 (textp 1082 (textp
1083 (let ((charset (mail-content-type-get 1083 (let ((charset (mail-content-type-get
diff --git a/lisp/gnus/nnagent.el b/lisp/gnus/nnagent.el
index f2acea4fa64..1f21eee8680 100644
--- a/lisp/gnus/nnagent.el
+++ b/lisp/gnus/nnagent.el
@@ -138,13 +138,13 @@
138 group action server))) 138 group action server)))
139 nil) 139 nil)
140 140
141(deffoo nnagent-retrieve-headers (articles &optional group server fetch-old) 141(deffoo nnagent-retrieve-headers (articles &optional group _server fetch-old)
142 (let ((file (gnus-agent-article-name ".overview" group)) 142 (let ((file (gnus-agent-article-name ".overview" group))
143 arts n first) 143 arts n first)
144 (save-excursion 144 (save-excursion
145 (gnus-agent-load-alist group) 145 (gnus-agent-load-alist group)
146 (setq arts (gnus-sorted-difference 146 (setq arts (gnus-sorted-difference
147 articles (mapcar 'car gnus-agent-article-alist))) 147 articles (mapcar #'car gnus-agent-article-alist)))
148 ;; Assume that articles with smaller numbers than the first one 148 ;; Assume that articles with smaller numbers than the first one
149 ;; Agent knows are gone. 149 ;; Agent knows are gone.
150 (setq first (caar gnus-agent-article-alist)) 150 (setq first (caar gnus-agent-article-alist))
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el
index b3e83e494d7..c1ac3cc5e81 100644
--- a/lisp/gnus/nndiary.el
+++ b/lisp/gnus/nndiary.el
@@ -532,8 +532,8 @@ all. This may very well take some time.")
532 (nndiary-possibly-change-directory group server) 532 (nndiary-possibly-change-directory group server)
533 (let ((articles (nnheader-directory-articles nndiary-current-directory))) 533 (let ((articles (nnheader-directory-articles nndiary-current-directory)))
534 (when articles 534 (when articles
535 (setcar active (apply 'min articles)) 535 (setcar active (apply #'min articles))
536 (setcdr active (apply 'max articles)))) 536 (setcdr active (apply #'max articles))))
537 (nnmail-save-active nndiary-group-alist nndiary-active-file) 537 (nnmail-save-active nndiary-group-alist nndiary-active-file)
538 (run-hook-with-args 'nndiary-request-create-group-functions 538 (run-hook-with-args 'nndiary-request-create-group-functions
539 (gnus-group-prefixed-name group 539 (gnus-group-prefixed-name group
@@ -589,7 +589,7 @@ all. This may very well take some time.")
589 (let ((active (nth 1 (assoc group nndiary-group-alist)))) 589 (let ((active (nth 1 (assoc group nndiary-group-alist))))
590 (when active 590 (when active
591 (setcar active (or (and active-articles 591 (setcar active (or (and active-articles
592 (apply 'min active-articles)) 592 (apply #'min active-articles))
593 (1+ (cdr active))))) 593 (1+ (cdr active)))))
594 (nnmail-save-active nndiary-group-alist nndiary-active-file)) 594 (nnmail-save-active nndiary-group-alist nndiary-active-file))
595 (nndiary-save-nov) 595 (nndiary-save-nov)
@@ -960,7 +960,7 @@ all. This may very well take some time.")
960 (setq nndiary-article-file-alist 960 (setq nndiary-article-file-alist
961 (sort 961 (sort
962 (nnheader-article-to-file-alist nndiary-current-directory) 962 (nnheader-article-to-file-alist nndiary-current-directory)
963 'car-less-than-car))) 963 #'car-less-than-car)))
964 (setq active 964 (setq active
965 (if nndiary-article-file-alist 965 (if nndiary-article-file-alist
966 (cons (caar nndiary-article-file-alist) 966 (cons (caar nndiary-article-file-alist)
@@ -1055,7 +1055,7 @@ all. This may very well take some time.")
1055 (nndiary-generate-nov-databases-1 dir seen)))) 1055 (nndiary-generate-nov-databases-1 dir seen))))
1056 ;; Do this directory. 1056 ;; Do this directory.
1057 (let ((nndiary-files (sort (nnheader-article-to-file-alist dir) 1057 (let ((nndiary-files (sort (nnheader-article-to-file-alist dir)
1058 'car-less-than-car))) 1058 #'car-less-than-car)))
1059 (if (not nndiary-files) 1059 (if (not nndiary-files)
1060 (let* ((group (nnheader-file-to-group 1060 (let* ((group (nnheader-file-to-group
1061 (directory-file-name dir) nndiary-directory)) 1061 (directory-file-name dir) nndiary-directory))
@@ -1245,7 +1245,7 @@ all. This may very well take some time.")
1245 1245
1246(defun nndiary-unflatten (spec) 1246(defun nndiary-unflatten (spec)
1247 ;; opposite of flatten: build ranges if possible 1247 ;; opposite of flatten: build ranges if possible
1248 (setq spec (sort spec '<)) 1248 (setq spec (sort spec #'<))
1249 (let (min max res) 1249 (let (min max res)
1250 (while (setq min (pop spec)) 1250 (while (setq min (pop spec))
1251 (setq max min) 1251 (setq max min)
@@ -1300,7 +1300,7 @@ all. This may very well take some time.")
1300 (apply #'encode-time 0 0 0 1 1 (nthcdr 5 date-elts)) 1300 (apply #'encode-time 0 0 0 1 1 (nthcdr 5 date-elts))
1301 (* (car reminder) 400861056)))) 1301 (* (car reminder) 400861056))))
1302 res)) 1302 res))
1303 (sort res 'time-less-p))) 1303 (sort res #'time-less-p)))
1304 1304
1305(defun nndiary-last-occurrence (sched) 1305(defun nndiary-last-occurrence (sched)
1306 ;; Returns the last occurrence of schedule SCHED as an Emacs time struct, or 1306 ;; Returns the last occurrence of schedule SCHED as an Emacs time struct, or
@@ -1318,8 +1318,8 @@ all. This may very well take some time.")
1318 ;; bored in finding a good algorithm for doing that ;-) 1318 ;; bored in finding a good algorithm for doing that ;-)
1319 ;; ### FIXME: remove identical entries. 1319 ;; ### FIXME: remove identical entries.
1320 (let ((dom-list (nth 2 sched)) 1320 (let ((dom-list (nth 2 sched))
1321 (month-list (sort (nndiary-flatten (nth 3 sched) 1 12) '>)) 1321 (month-list (sort (nndiary-flatten (nth 3 sched) 1 12) #'>))
1322 (year-list (sort (nndiary-flatten (nth 4 sched) 1971) '>)) 1322 (year-list (sort (nndiary-flatten (nth 4 sched) 1971) #'>))
1323 (dow-list (nth 5 sched))) 1323 (dow-list (nth 5 sched)))
1324 ;; Special case: an asterisk in one of the days specifications means 1324 ;; Special case: an asterisk in one of the days specifications means
1325 ;; that only the other should be taken into account. If both are 1325 ;; that only the other should be taken into account. If both are
@@ -1370,7 +1370,7 @@ all. This may very well take some time.")
1370 (setq day (+ 7 day)))) 1370 (setq day (+ 7 day))))
1371 ;; Finally, if we have some days, they are valid 1371 ;; Finally, if we have some days, they are valid
1372 (when days 1372 (when days
1373 (sort days '>) 1373 (sort days #'>)
1374 (throw 'found 1374 (throw 'found
1375 (encode-time 0 minute hour 1375 (encode-time 0 minute hour
1376 (car days) month year time-zone))) 1376 (car days) month year time-zone)))
@@ -1396,12 +1396,12 @@ all. This may very well take some time.")
1396 (this-day (decoded-time-day today)) 1396 (this-day (decoded-time-day today))
1397 (this-month (decoded-time-month today)) 1397 (this-month (decoded-time-month today))
1398 (this-year (decoded-time-year today)) 1398 (this-year (decoded-time-year today))
1399 (minute-list (sort (nndiary-flatten (nth 0 sched) 0 59) '<)) 1399 (minute-list (sort (nndiary-flatten (nth 0 sched) 0 59) #'<))
1400 (hour-list (sort (nndiary-flatten (nth 1 sched) 0 23) '<)) 1400 (hour-list (sort (nndiary-flatten (nth 1 sched) 0 23) #'<))
1401 (dom-list (nth 2 sched)) 1401 (dom-list (nth 2 sched))
1402 (month-list (sort (nndiary-flatten (nth 3 sched) 1 12) '<)) 1402 (month-list (sort (nndiary-flatten (nth 3 sched) 1 12) #'<))
1403 (years (if (nth 4 sched) 1403 (years (if (nth 4 sched)
1404 (sort (nndiary-flatten (nth 4 sched) 1971) '<) 1404 (sort (nndiary-flatten (nth 4 sched) 1971) #'<)
1405 t)) 1405 t))
1406 (dow-list (nth 5 sched)) 1406 (dow-list (nth 5 sched))
1407 (year (1- this-year)) 1407 (year (1- this-year))
@@ -1474,7 +1474,7 @@ all. This may very well take some time.")
1474 ;; Aaaaaaall right. Now we have a valid list of DAYS for 1474 ;; Aaaaaaall right. Now we have a valid list of DAYS for
1475 ;; this month and this year. 1475 ;; this month and this year.
1476 (when days 1476 (when days
1477 (setq days (sort days '<)) 1477 (setq days (sort days #'<))
1478 ;; Remove past days for this year and this month. 1478 ;; Remove past days for this year and this month.
1479 (and (= year this-year) 1479 (and (= year this-year)
1480 (= month this-month) 1480 (= month this-month)
diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el
index a3a66454853..c68e2012713 100644
--- a/lisp/gnus/nndoc.el
+++ b/lisp/gnus/nndoc.el
@@ -427,9 +427,9 @@ from the document.")
427 (setq result nil)))) 427 (setq result nil))))
428 (unless (or result results) 428 (unless (or result results)
429 (error "Document is not of any recognized type")) 429 (error "Document is not of any recognized type"))
430 (if result 430 (car (if result
431 (car entry) 431 entry
432 (cadar (last (sort results 'car-less-than-car)))))) 432 (cdar (last (sort results #'car-less-than-car)))))))
433 433
434;;; 434;;;
435;;; Built-in type predicates and functions 435;;; Built-in type predicates and functions
diff --git a/lisp/gnus/nndraft.el b/lisp/gnus/nndraft.el
index 1f87beda5f5..9e70bb62148 100644
--- a/lisp/gnus/nndraft.el
+++ b/lisp/gnus/nndraft.el
@@ -204,8 +204,8 @@ are generated if and only if they are also in `message-draft-headers'."
204 (setq buffer-file-name (expand-file-name file) 204 (setq buffer-file-name (expand-file-name file)
205 buffer-auto-save-file-name (make-auto-save-file-name)) 205 buffer-auto-save-file-name (make-auto-save-file-name))
206 (clear-visited-file-modtime) 206 (clear-visited-file-modtime)
207 (add-hook 'write-contents-functions 'nndraft-generate-headers nil t) 207 (add-hook 'write-contents-functions #'nndraft-generate-headers nil t)
208 (add-hook 'after-save-hook 'nndraft-update-unread-articles nil t) 208 (add-hook 'after-save-hook #'nndraft-update-unread-articles nil t)
209 (message-add-action '(nndraft-update-unread-articles) 209 (message-add-action '(nndraft-update-unread-articles)
210 'exit 'postpone 'kill) 210 'exit 'postpone 'kill)
211 article)) 211 article))
@@ -316,7 +316,7 @@ are generated if and only if they are also in `message-draft-headers'."
316 (nnheader-concat nndraft-directory group)))) 316 (nnheader-concat nndraft-directory group))))
317 317
318(defun nndraft-article-filename (article &rest args) 318(defun nndraft-article-filename (article &rest args)
319 (apply 'concat 319 (apply #'concat
320 (file-name-as-directory nndraft-current-directory) 320 (file-name-as-directory nndraft-current-directory)
321 (int-to-string article) 321 (int-to-string article)
322 args)) 322 args))
@@ -334,9 +334,9 @@ are generated if and only if they are also in `message-draft-headers'."
334 "Return the list of messages in the group." 334 "Return the list of messages in the group."
335 (gnus-make-directory nndraft-current-directory) 335 (gnus-make-directory nndraft-current-directory)
336 (sort 336 (sort
337 (mapcar 'string-to-number 337 (mapcar #'string-to-number
338 (directory-files nndraft-current-directory nil "\\`[0-9]+\\'" t)) 338 (directory-files nndraft-current-directory nil "\\`[0-9]+\\'" t))
339 '<)) 339 #'<))
340 340
341(nnoo-import nndraft 341(nnoo-import nndraft
342 (nnmh 342 (nnmh
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el
index 9a0219c1436..405ab2f92f4 100644
--- a/lisp/gnus/nnfolder.el
+++ b/lisp/gnus/nnfolder.el
@@ -145,7 +145,7 @@ all. This may very well take some time.")
145 'nov 145 'nov
146 (setq articles (gnus-sorted-intersection 146 (setq articles (gnus-sorted-intersection
147 ;; Is ARTICLES sorted? 147 ;; Is ARTICLES sorted?
148 (sort articles '<) 148 (sort articles #'<)
149 (nnfolder-existing-articles))) 149 (nnfolder-existing-articles)))
150 (while (setq article (pop articles)) 150 (while (setq article (pop articles))
151 (set-buffer nnfolder-current-buffer) 151 (set-buffer nnfolder-current-buffer)
diff --git a/lisp/gnus/nnheader.el b/lisp/gnus/nnheader.el
index a381720f24c..ae8506c5c20 100644
--- a/lisp/gnus/nnheader.el
+++ b/lisp/gnus/nnheader.el
@@ -468,7 +468,7 @@ leaving the original buffer untouched."
468(defun nnheader-write-overview-file (file headers) 468(defun nnheader-write-overview-file (file headers)
469 "Write HEADERS to FILE." 469 "Write HEADERS to FILE."
470 (with-temp-file file 470 (with-temp-file file
471 (mapcar 'nnheader-insert-nov headers))) 471 (mapcar #'nnheader-insert-nov headers)))
472 472
473(defun nnheader-insert-header (header) 473(defun nnheader-insert-header (header)
474 (insert 474 (insert
@@ -723,15 +723,15 @@ an alarming frequency on NFS mounted file systems. If it is nil,
723 723
724(defun nnheader-directory-files-safe (&rest args) 724(defun nnheader-directory-files-safe (&rest args)
725 "Execute `directory-files' twice and returns the longer result." 725 "Execute `directory-files' twice and returns the longer result."
726 (let ((first (apply 'directory-files args)) 726 (let ((first (apply #'directory-files args))
727 (second (apply 'directory-files args))) 727 (second (apply #'directory-files args)))
728 (if (> (length first) (length second)) 728 (if (> (length first) (length second))
729 first 729 first
730 second))) 730 second)))
731 731
732(defun nnheader-directory-articles (dir) 732(defun nnheader-directory-articles (dir)
733 "Return a list of all article files in directory DIR." 733 "Return a list of all article files in directory DIR."
734 (mapcar 'nnheader-file-to-number 734 (mapcar #'nnheader-file-to-number
735 (if nnheader-directory-files-is-safe 735 (if nnheader-directory-files-is-safe
736 (directory-files 736 (directory-files
737 dir nil nnheader-numerical-short-files t) 737 dir nil nnheader-numerical-short-files t)
@@ -783,7 +783,7 @@ The first string in ARGS can be a format string."
783 (set (intern (format "%s-status-string" backend)) 783 (set (intern (format "%s-status-string" backend))
784 (if (< (length args) 2) 784 (if (< (length args) 2)
785 (car args) 785 (car args)
786 (apply 'format args))) 786 (apply #'format args)))
787 nil) 787 nil)
788 788
789(defun nnheader-get-report-string (backend) 789(defun nnheader-get-report-string (backend)
@@ -804,8 +804,8 @@ without formatting."
804 (with-current-buffer nntp-server-buffer 804 (with-current-buffer nntp-server-buffer
805 (erase-buffer) 805 (erase-buffer)
806 (if (string-match "%" format) 806 (if (string-match "%" format)
807 (insert (apply 'format format args)) 807 (insert (apply #'format format args))
808 (apply 'insert format args)) 808 (apply #'insert format args))
809 t)) 809 t))
810 810
811(defsubst nnheader-replace-chars-in-string (string from to) 811(defsubst nnheader-replace-chars-in-string (string from to)
@@ -841,12 +841,13 @@ without formatting."
841 841
842(defun nnheader-message (level &rest args) 842(defun nnheader-message (level &rest args)
843 "Message if the Gnus backends are talkative." 843 "Message if the Gnus backends are talkative."
844 (if (or (not (numberp gnus-verbose-backends)) 844 (apply (cond
845 (<= level gnus-verbose-backends)) 845 ((and (numberp gnus-verbose-backends)
846 (if gnus-add-timestamp-to-message 846 (> level gnus-verbose-backends))
847 (apply 'gnus-message-with-timestamp args) 847 #'format)
848 (apply 'message args)) 848 (gnus-add-timestamp-to-message #'gnus-message-with-timestamp)
849 (apply 'format args))) 849 (t #'message))
850 args))
850 851
851(defun nnheader-be-verbose (level) 852(defun nnheader-be-verbose (level)
852 "Return whether the backends should be verbose on LEVEL." 853 "Return whether the backends should be verbose on LEVEL."
@@ -877,7 +878,7 @@ without formatting."
877 878
878(defun nnheader-concat (dir &rest files) 879(defun nnheader-concat (dir &rest files)
879 "Concat DIR as directory to FILES." 880 "Concat DIR as directory to FILES."
880 (apply 'concat (file-name-as-directory dir) files)) 881 (apply #'concat (file-name-as-directory dir) files))
881 882
882(defun nnheader-ms-strip-cr () 883(defun nnheader-ms-strip-cr ()
883 "Strip ^M from the end of all lines." 884 "Strip ^M from the end of all lines."
@@ -915,7 +916,7 @@ first. Otherwise, find the newest one, though it may take a time."
915 (setq path (cdr path)))) 916 (setq path (cdr path))))
916 (if (or first (not (cdr results))) 917 (if (or first (not (cdr results)))
917 (car results) 918 (car results)
918 (car (sort results 'file-newer-than-file-p))))) 919 (car (sort results #'file-newer-than-file-p)))))
919 920
920(defvar ange-ftp-path-format) 921(defvar ange-ftp-path-format)
921(defvar efs-path-regexp) 922(defvar efs-path-regexp)
@@ -961,15 +962,15 @@ find-file-hook, etc.
961 "Open a file with some variables bound. 962 "Open a file with some variables bound.
962See `find-file-noselect' for the arguments." 963See `find-file-noselect' for the arguments."
963 (cl-letf* ((format-alist nil) 964 (cl-letf* ((format-alist nil)
964 (auto-mode-alist (mm-auto-mode-alist)) 965 (auto-mode-alist (mm-auto-mode-alist))
965 ((default-value 'major-mode) 'fundamental-mode) 966 ((default-value 'major-mode) 'fundamental-mode)
966 (enable-local-variables nil) 967 (enable-local-variables nil)
967 (after-insert-file-functions nil) 968 (after-insert-file-functions nil)
968 (enable-local-eval nil) 969 (enable-local-eval nil)
969 (coding-system-for-read nnheader-file-coding-system) 970 (coding-system-for-read nnheader-file-coding-system)
970 (version-control 'never) 971 (version-control 'never)
971 (find-file-hook nil)) 972 (find-file-hook nil))
972 (apply 'find-file-noselect args))) 973 (apply #'find-file-noselect args)))
973 974
974(defun nnheader-directory-regular-files (dir) 975(defun nnheader-directory-regular-files (dir)
975 "Return a list of all regular files in DIR." 976 "Return a list of all regular files in DIR."
@@ -983,7 +984,7 @@ See `find-file-noselect' for the arguments."
983 984
984(defun nnheader-directory-files (&rest args) 985(defun nnheader-directory-files (&rest args)
985 "Same as `directory-files', but prune \".\" and \"..\"." 986 "Same as `directory-files', but prune \".\" and \"..\"."
986 (let ((files (apply 'directory-files args)) 987 (let ((files (apply #'directory-files args))
987 out) 988 out)
988 (while files 989 (while files
989 (unless (member (file-name-nondirectory (car files)) '("." "..")) 990 (unless (member (file-name-nondirectory (car files)) '("." ".."))
@@ -1065,7 +1066,7 @@ See `find-file-noselect' for the arguments."
1065 (let ((now (current-time))) 1066 (let ((now (current-time)))
1066 (when (time-less-p 1 (time-subtract now nnheader-last-message-time)) 1067 (when (time-less-p 1 (time-subtract now nnheader-last-message-time))
1067 (setq nnheader-last-message-time now) 1068 (setq nnheader-last-message-time now)
1068 (apply 'nnheader-message args)))) 1069 (apply #'nnheader-message args))))
1069 1070
1070(make-obsolete-variable 'nnheader-load-hook 1071(make-obsolete-variable 'nnheader-load-hook
1071 "use `with-eval-after-load' instead." "28.1") 1072 "use `with-eval-after-load' instead." "28.1")
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index d043ae1b426..59d61379f14 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -1281,7 +1281,7 @@ Return the number of characters in the body."
1281 "Remove list identifiers from Subject headers." 1281 "Remove list identifiers from Subject headers."
1282 (let ((regexp 1282 (let ((regexp
1283 (if (consp nnmail-list-identifiers) 1283 (if (consp nnmail-list-identifiers)
1284 (mapconcat 'identity nnmail-list-identifiers " *\\|") 1284 (mapconcat #'identity nnmail-list-identifiers " *\\|")
1285 nnmail-list-identifiers))) 1285 nnmail-list-identifiers)))
1286 (when regexp 1286 (when regexp
1287 (goto-char (point-min)) 1287 (goto-char (point-min))
@@ -1321,8 +1321,8 @@ Eudora has a broken References line, but an OK In-Reply-To."
1321 (when (re-search-forward "^\\(In-Reply-To:[^\n]+\\)\n[ \t]+" nil t) 1321 (when (re-search-forward "^\\(In-Reply-To:[^\n]+\\)\n[ \t]+" nil t)
1322 (replace-match "\\1" t)))) 1322 (replace-match "\\1" t))))
1323 1323
1324(defalias 'nnmail-fix-eudora-headers 'nnmail-ignore-broken-references) 1324(defalias 'nnmail-fix-eudora-headers #'nnmail-ignore-broken-references)
1325(make-obsolete 'nnmail-fix-eudora-headers 'nnmail-ignore-broken-references "Emacs 23.1") 1325(make-obsolete 'nnmail-fix-eudora-headers #'nnmail-ignore-broken-references "Emacs 23.1")
1326 1326
1327(custom-add-option 'nnmail-prepare-incoming-header-hook 1327(custom-add-option 'nnmail-prepare-incoming-header-hook
1328 'nnmail-ignore-broken-references) 1328 'nnmail-ignore-broken-references)
@@ -1528,7 +1528,7 @@ See the documentation for the variable `nnmail-split-fancy' for details."
1528 expanded)))) 1528 expanded))))
1529 (setq pos (1+ pos))) 1529 (setq pos (1+ pos)))
1530 (if did-expand 1530 (if did-expand
1531 (apply 'concat (nreverse expanded)) 1531 (apply #'concat (nreverse expanded))
1532 newtext))) 1532 newtext)))
1533 1533
1534;; Activate a backend only if it isn't already activated. 1534;; Activate a backend only if it isn't already activated.
@@ -1623,7 +1623,7 @@ See the documentation for the variable `nnmail-split-fancy' for details."
1623 (gnus-methods-equal-p gnus-command-method 1623 (gnus-methods-equal-p gnus-command-method
1624 (nnmail-cache-primary-mail-backend))) 1624 (nnmail-cache-primary-mail-backend)))
1625 (let ((regexp (if (consp nnmail-cache-ignore-groups) 1625 (let ((regexp (if (consp nnmail-cache-ignore-groups)
1626 (mapconcat 'identity nnmail-cache-ignore-groups 1626 (mapconcat #'identity nnmail-cache-ignore-groups
1627 "\\|") 1627 "\\|")
1628 nnmail-cache-ignore-groups))) 1628 nnmail-cache-ignore-groups)))
1629 (unless (and regexp (string-match regexp grp)) 1629 (unless (and regexp (string-match regexp grp))
@@ -1766,7 +1766,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
1766(defvar nnmail-fetched-sources nil) 1766(defvar nnmail-fetched-sources nil)
1767 1767
1768(defun nnmail-get-value (&rest args) 1768(defun nnmail-get-value (&rest args)
1769 (let ((sym (intern (apply 'format args)))) 1769 (let ((sym (intern (apply #'format args))))
1770 (when (boundp sym) 1770 (when (boundp sym)
1771 (symbol-value sym)))) 1771 (symbol-value sym))))
1772 1772
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el
index 4179a2cc633..46691e3494b 100644
--- a/lisp/gnus/nnmaildir.el
+++ b/lisp/gnus/nnmaildir.el
@@ -101,7 +101,7 @@ SUFFIX should start with \":2,\"."
101 (new-flags 101 (new-flags
102 (concat (gnus-delete-duplicates 102 (concat (gnus-delete-duplicates
103 ;; maildir flags must be sorted 103 ;; maildir flags must be sorted
104 (sort (cons flag flags-as-list) '<))))) 104 (sort (cons flag flags-as-list) #'<)))))
105 (concat ":2," new-flags))) 105 (concat ":2," new-flags)))
106 106
107(defun nnmaildir--remove-flag (flag suffix) 107(defun nnmaildir--remove-flag (flag suffix)
@@ -292,7 +292,7 @@ This variable is set by `nnmaildir-request-article'.")
292 (write-region "" nil file nil 'no-message)) 292 (write-region "" nil file nil 'no-message))
293(defun nnmaildir--delete-dir-files (dir ls) 293(defun nnmaildir--delete-dir-files (dir ls)
294 (when (file-attributes dir) 294 (when (file-attributes dir)
295 (mapc 'delete-file (funcall ls dir 'full "\\`[^.]" 'nosort)) 295 (mapc #'delete-file (funcall ls dir 'full "\\`[^.]" 'nosort))
296 (delete-directory dir))) 296 (delete-directory dir)))
297 297
298(defun nnmaildir--group-maxnum (server group) 298(defun nnmaildir--group-maxnum (server group)
@@ -855,8 +855,8 @@ This variable is set by `nnmaildir-request-article'.")
855 file)) 855 file))
856 files) 856 files)
857 files (delq nil files) 857 files (delq nil files)
858 files (mapcar 'nnmaildir--parse-filename files) 858 files (mapcar #'nnmaildir--parse-filename files)
859 files (sort files 'nnmaildir--sort-files)) 859 files (sort files #'nnmaildir--sort-files))
860 (dolist (file files) 860 (dolist (file files)
861 (setq file (if (consp file) file (aref file 3)) 861 (setq file (if (consp file) file (aref file 3))
862 x (make-nnmaildir--art :prefix (car file) :suffix (cdr file))) 862 x (make-nnmaildir--art :prefix (car file) :suffix (cdr file)))
@@ -998,7 +998,7 @@ This variable is set by `nnmaildir-request-article'.")
998 always-marks (nnmaildir--param pgname 'always-marks) 998 always-marks (nnmaildir--param pgname 'always-marks)
999 never-marks (nnmaildir--param pgname 'never-marks) 999 never-marks (nnmaildir--param pgname 'never-marks)
1000 existing (nnmaildir--grp-nlist group) 1000 existing (nnmaildir--grp-nlist group)
1001 existing (mapcar 'car existing) 1001 existing (mapcar #'car existing)
1002 existing (nreverse existing) 1002 existing (nreverse existing)
1003 existing (gnus-compress-sequence existing 'always-list) 1003 existing (gnus-compress-sequence existing 'always-list)
1004 missing (list (cons 1 (nnmaildir--group-maxnum 1004 missing (list (cons 1 (nnmaildir--group-maxnum
@@ -1013,8 +1013,8 @@ This variable is set by `nnmaildir-request-article'.")
1013 ;; get mark names from mark dirs and from flag 1013 ;; get mark names from mark dirs and from flag
1014 ;; mappings 1014 ;; mappings
1015 (append 1015 (append
1016 (mapcar 'cdr nnmaildir-flag-mark-mapping) 1016 (mapcar #'cdr nnmaildir-flag-mark-mapping)
1017 (mapcar 'intern (funcall ls dir nil "\\`[^.]" 'nosort)))) 1017 (mapcar #'intern (funcall ls dir nil "\\`[^.]" 'nosort))))
1018 new-mmth (make-hash-table :size (length all-marks)) 1018 new-mmth (make-hash-table :size (length all-marks))
1019 old-mmth (nnmaildir--grp-mmth group)) 1019 old-mmth (nnmaildir--grp-mmth group))
1020 (dolist (mark all-marks) 1020 (dolist (mark all-marks)
@@ -1070,7 +1070,7 @@ This variable is set by `nnmaildir-request-article'.")
1070 (let ((article (nnmaildir--flist-art flist prefix))) 1070 (let ((article (nnmaildir--flist-art flist prefix)))
1071 (when article 1071 (when article
1072 (push (nnmaildir--art-num article) article-list)))))) 1072 (push (nnmaildir--art-num article) article-list))))))
1073 (setq ranges (gnus-add-to-range ranges (sort article-list '<))))) 1073 (setq ranges (gnus-add-to-range ranges (sort article-list #'<)))))
1074 (if (eq mark 'read) (setq read ranges) 1074 (if (eq mark 'read) (setq read ranges)
1075 (if ranges (setq marks (cons (cons mark ranges) marks))))) 1075 (if ranges (setq marks (cons (cons mark ranges) marks)))))
1076 (setf (gnus-info-read info) (gnus-range-add read missing)) 1076 (setf (gnus-info-read info) (gnus-range-add read missing))
@@ -1695,8 +1695,8 @@ This variable is set by `nnmaildir-request-article'.")
1695 ;; get mark names from mark dirs and from flag 1695 ;; get mark names from mark dirs and from flag
1696 ;; mappings 1696 ;; mappings
1697 (append 1697 (append
1698 (mapcar 'cdr nnmaildir-flag-mark-mapping) 1698 (mapcar #'cdr nnmaildir-flag-mark-mapping)
1699 (mapcar 'intern all-marks)))) 1699 (mapcar #'intern all-marks))))
1700 (dolist (action actions) 1700 (dolist (action actions)
1701 (setq ranges (car action) 1701 (setq ranges (car action)
1702 todo-marks (caddr action)) 1702 todo-marks (caddr action))
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el
index c061031b40a..54d6c5276e4 100644
--- a/lisp/gnus/nnmairix.el
+++ b/lisp/gnus/nnmairix.el
@@ -193,8 +193,8 @@
193 (define-key gnus-summary-mode-map 193 (define-key gnus-summary-mode-map
194 (kbd "G G u") 'nnmairix-remove-tick-mark-original-article)) 194 (kbd "G G u") 'nnmairix-remove-tick-mark-original-article))
195 195
196(add-hook 'gnus-group-mode-hook 'nnmairix-group-mode-hook) 196(add-hook 'gnus-group-mode-hook #'nnmairix-group-mode-hook)
197(add-hook 'gnus-summary-mode-hook 'nnmairix-summary-mode-hook) 197(add-hook 'gnus-summary-mode-hook #'nnmairix-summary-mode-hook)
198 198
199;; ;;;###autoload 199;; ;;;###autoload
200;; (defun nnmairix-initialize (&optional force) 200;; (defun nnmairix-initialize (&optional force)
@@ -202,8 +202,8 @@
202;; (if (not (or (file-readable-p "~/.mairixrc") 202;; (if (not (or (file-readable-p "~/.mairixrc")
203;; force)) 203;; force))
204;; (message "No file `~/.mairixrc', skipping nnmairix setup") 204;; (message "No file `~/.mairixrc', skipping nnmairix setup")
205;; (add-hook 'gnus-group-mode-hook 'nnmairix-group-mode-hook) 205;; (add-hook 'gnus-group-mode-hook #'nnmairix-group-mode-hook)
206;; (add-hook 'gnus-summary-mode-hook 'nnmairix-summary-mode-hook))) 206;; (add-hook 'gnus-summary-mode-hook #'nnmairix-summary-mode-hook)))
207 207
208;; Customizable stuff 208;; Customizable stuff
209 209
@@ -783,7 +783,7 @@ called interactively, user will be asked for parameters."
783 (setq finished (not (y-or-n-p "Add another search query? ")) 783 (setq finished (not (y-or-n-p "Add another search query? "))
784 achar nil)) 784 achar nil))
785 (nnmairix-search 785 (nnmairix-search
786 (mapconcat 'identity query " ") 786 (mapconcat #'identity query " ")
787 (car (nnmairix-get-server)) 787 (car (nnmairix-get-server))
788 (y-or-n-p "Include whole threads? ")))) 788 (y-or-n-p "Include whole threads? "))))
789 789
@@ -824,7 +824,7 @@ called interactively, user will be asked for parameters."
824 (setq group (read-string "Group name: ")) 824 (setq group (read-string "Group name: "))
825 (set-buffer gnus-summary-buffer) 825 (set-buffer gnus-summary-buffer)
826 (message "Creating group %s on server %s with query %s." group 826 (message "Creating group %s on server %s with query %s." group
827 (gnus-method-to-server server) (mapconcat 'identity query " ")) 827 (gnus-method-to-server server) (mapconcat #'identity query " "))
828 (nnmairix-create-search-group server group query threads))) 828 (nnmairix-create-search-group server group query threads)))
829 829
830(defun nnmairix-create-server-and-default-group () 830(defun nnmairix-create-server-and-default-group ()
@@ -866,7 +866,7 @@ All necessary information will be queried from the user."
866 (if (eq (car method) 'nnmairix) 866 (if (eq (car method) 'nnmairix)
867 (progn 867 (progn
868 (when (listp oldquery) 868 (when (listp oldquery)
869 (setq oldquery (mapconcat 'identity oldquery " "))) 869 (setq oldquery (mapconcat #'identity oldquery " ")))
870 (setq query (or query 870 (setq query (or query
871 (read-string "New query: " oldquery))) 871 (read-string "New query: " oldquery)))
872 (when (stringp query) 872 (when (stringp query)
@@ -1068,7 +1068,7 @@ with `nnmairix-mairix-update-options'."
1068 (if (> (length commandsplit) 1) 1068 (if (> (length commandsplit) 1)
1069 (setq args (append args (cdr commandsplit) nnmairix-mairix-update-options)) 1069 (setq args (append args (cdr commandsplit) nnmairix-mairix-update-options))
1070 (setq args (append args nnmairix-mairix-update-options))) 1070 (setq args (append args nnmairix-mairix-update-options)))
1071 (apply 'call-process args) 1071 (apply #'call-process args)
1072 (nnheader-message 7 "Updating mairix database for %s... done" cur)) 1072 (nnheader-message 7 "Updating mairix database for %s... done" cur))
1073 (progn 1073 (progn
1074 (setq args (append (list cur (get-buffer nnmairix-mairix-output-buffer) 1074 (setq args (append (list cur (get-buffer nnmairix-mairix-output-buffer)
@@ -1076,7 +1076,7 @@ with `nnmairix-mairix-update-options'."
1076 (if (> (length commandsplit) 1) 1076 (if (> (length commandsplit) 1)
1077 (setq args (append args (cdr commandsplit) nnmairix-mairix-update-options)) 1077 (setq args (append args (cdr commandsplit) nnmairix-mairix-update-options))
1078 (setq args (append args nnmairix-mairix-update-options))) 1078 (setq args (append args nnmairix-mairix-update-options)))
1079 (set-process-sentinel (apply 'start-process args) 1079 (set-process-sentinel (apply #'start-process args)
1080 'nnmairix-sentinel-mairix-update-finished)))))) 1080 'nnmairix-sentinel-mairix-update-finished))))))
1081 1081
1082(defun nnmairix-group-delete-recreate-this-group () 1082(defun nnmairix-group-delete-recreate-this-group ()
@@ -1260,7 +1260,7 @@ If THREADS is non-nil, enable full threads."
1260 (setq args (append args '("-c")))) 1260 (setq args (append args '("-c"))))
1261 (when threads 1261 (when threads
1262 (setq args (append args '("-t")))) 1262 (setq args (append args '("-t"))))
1263 (apply 'call-process 1263 (apply #'call-process
1264 (append args (list "-o" folder) searchquery))))) 1264 (append args (list "-o" folder) searchquery)))))
1265 1265
1266(defun nnmairix-call-mairix-binary-raw (command query) 1266(defun nnmairix-call-mairix-binary-raw (command query)
@@ -1272,7 +1272,7 @@ If THREADS is non-nil, enable full threads."
1272 (when (> (length command) 1) 1272 (when (> (length command) 1)
1273 (setq args (append args (cdr command)))) 1273 (setq args (append args (cdr command))))
1274 (setq args (append args '("-r"))) 1274 (setq args (append args '("-r")))
1275 (apply 'call-process 1275 (apply #'call-process
1276 (append args query))))) 1276 (append args query)))))
1277 1277
1278(defun nnmairix-get-server () 1278(defun nnmairix-get-server ()
@@ -1382,9 +1382,9 @@ This should correct problems of wrong article counts when using
1382nnmairix with nnml backends." 1382nnmairix with nnml backends."
1383 (let* ((files 1383 (let* ((files
1384 (sort 1384 (sort
1385 (mapcar 'string-to-number 1385 (mapcar #'string-to-number
1386 (directory-files path nil "[0-9]+" t)) 1386 (directory-files path nil "[0-9]+" t))
1387 '<)) 1387 #'<))
1388 (lastplusone (car files)) 1388 (lastplusone (car files))
1389 (path (file-name-as-directory path))) 1389 (path (file-name-as-directory path)))
1390 (dolist (cur files) 1390 (dolist (cur files)
@@ -1774,7 +1774,7 @@ If VERSION is a string: must be contained in mairix version output."
1774 (let* ((commandsplit (split-string nnmairix-mairix-command)) 1774 (let* ((commandsplit (split-string nnmairix-mairix-command))
1775 (args (append (list (car commandsplit)) 1775 (args (append (list (car commandsplit))
1776 '(nil t nil) (cdr commandsplit) '("-V")))) 1776 '(nil t nil) (cdr commandsplit) '("-V"))))
1777 (apply 'call-process args) 1777 (apply #'call-process args)
1778 (goto-char (point-min)) 1778 (goto-char (point-min))
1779 (re-search-forward "mairix.*") 1779 (re-search-forward "mairix.*")
1780 (match-string 0)))) 1780 (match-string 0))))
@@ -1920,7 +1920,7 @@ If WITHVALUES is t, query is based on current article."
1920 (when (not (zerop (length flag))) 1920 (when (not (zerop (length flag)))
1921 (push (concat "F:" flag) query))) 1921 (push (concat "F:" flag) query)))
1922 ;; return query string 1922 ;; return query string
1923 (mapconcat 'identity query " "))) 1923 (mapconcat #'identity query " ")))
1924 1924
1925 1925
1926(defun nnmairix-widget-create-query (&optional values) 1926(defun nnmairix-widget-create-query (&optional values)
@@ -1997,7 +1997,7 @@ VALUES may contain values for editable fields from current article."
1997 "Add a widget NAME with optional ARGS." 1997 "Add a widget NAME with optional ARGS."
1998 (push 1998 (push
1999 (list name 1999 (list name
2000 (apply 'widget-create args)) 2000 (apply #'widget-create args))
2001 nnmairix-widgets)) 2001 nnmairix-widgets))
2002 2002
2003(defun nnmairix-widget-toggle-activate (widget) 2003(defun nnmairix-widget-toggle-activate (widget)
diff --git a/lisp/gnus/nnmh.el b/lisp/gnus/nnmh.el
index 82ed091982e..46abf46ce75 100644
--- a/lisp/gnus/nnmh.el
+++ b/lisp/gnus/nnmh.el
@@ -171,9 +171,9 @@ as unread by Gnus.")
171 (nnheader-re-read-dir pathname) 171 (nnheader-re-read-dir pathname)
172 (setq dir 172 (setq dir
173 (sort 173 (sort
174 (mapcar 'string-to-number 174 (mapcar #'string-to-number
175 (directory-files pathname nil "\\`[0-9]+\\'" t)) 175 (directory-files pathname nil "\\`[0-9]+\\'" t))
176 '<)) 176 #'<))
177 (cond 177 (cond
178 (dir 178 (dir
179 (setq nnmh-group-alist 179 (setq nnmh-group-alist
@@ -358,12 +358,12 @@ as unread by Gnus.")
358 nnmh-group-alist) 358 nnmh-group-alist)
359 (nnmh-possibly-create-directory group) 359 (nnmh-possibly-create-directory group)
360 (nnmh-possibly-change-directory group server) 360 (nnmh-possibly-change-directory group server)
361 (let ((articles (mapcar 'string-to-number 361 (let ((articles (mapcar #'string-to-number
362 (directory-files 362 (directory-files
363 nnmh-current-directory nil "\\`[0-9]+\\'")))) 363 nnmh-current-directory nil "\\`[0-9]+\\'"))))
364 (when articles 364 (when articles
365 (setcar active (apply 'min articles)) 365 (setcar active (apply #'min articles))
366 (setcdr active (apply 'max articles)))))) 366 (setcdr active (apply #'max articles))))))
367 t) 367 t)
368 368
369(deffoo nnmh-request-delete-group (group &optional force server) 369(deffoo nnmh-request-delete-group (group &optional force server)
@@ -484,9 +484,9 @@ as unread by Gnus.")
484 (gnus-make-directory dir)) 484 (gnus-make-directory dir))
485 ;; Find the highest number in the group. 485 ;; Find the highest number in the group.
486 (let ((files (sort 486 (let ((files (sort
487 (mapcar 'string-to-number 487 (mapcar #'string-to-number
488 (directory-files dir nil "\\`[0-9]+\\'")) 488 (directory-files dir nil "\\`[0-9]+\\'"))
489 '>))) 489 #'>)))
490 (when files 490 (when files
491 (setcdr active (car files))))) 491 (setcdr active (car files)))))
492 (setcdr active (1+ (cdr active))) 492 (setcdr active (1+ (cdr active)))
@@ -507,10 +507,10 @@ as unread by Gnus.")
507 ;; articles in this folder. The articles that are "new" will be 507 ;; articles in this folder. The articles that are "new" will be
508 ;; marked as unread by Gnus. 508 ;; marked as unread by Gnus.
509 (let* ((dir nnmh-current-directory) 509 (let* ((dir nnmh-current-directory)
510 (files (sort (mapcar 'string-to-number 510 (files (sort (mapcar #'string-to-number
511 (directory-files nnmh-current-directory 511 (directory-files nnmh-current-directory
512 nil "\\`[0-9]+\\'" t)) 512 nil "\\`[0-9]+\\'" t))
513 '<)) 513 #'<))
514 (nnmh-file (concat dir ".nnmh-articles")) 514 (nnmh-file (concat dir ".nnmh-articles"))
515 new articles) 515 new articles)
516 ;; Load the .nnmh-articles file. 516 ;; Load the .nnmh-articles file.
@@ -557,7 +557,7 @@ as unread by Gnus.")
557 (when new 557 (when new
558 (gnus-make-articles-unread 558 (gnus-make-articles-unread
559 (gnus-group-prefixed-name group (list 'nnmh "")) 559 (gnus-group-prefixed-name group (list 'nnmh ""))
560 (setq new (sort new '<)))) 560 (setq new (sort new #'<))))
561 ;; Sort the article list with highest numbers first. 561 ;; Sort the article list with highest numbers first.
562 (setq articles (sort articles (lambda (art1 art2) 562 (setq articles (sort articles (lambda (art1 art2)
563 (> (car art1) (car art2))))) 563 (> (car art1) (car art2)))))
diff --git a/lisp/gnus/nnml.el b/lisp/gnus/nnml.el
index 3cdfc749703..eaa2004272f 100644
--- a/lisp/gnus/nnml.el
+++ b/lisp/gnus/nnml.el
@@ -278,8 +278,8 @@ non-nil.")
278 (let* ((file-name-coding-system nnmail-pathname-coding-system) 278 (let* ((file-name-coding-system nnmail-pathname-coding-system)
279 (articles (nnml-directory-articles nnml-current-directory))) 279 (articles (nnml-directory-articles nnml-current-directory)))
280 (when articles 280 (when articles
281 (setcar active (apply 'min articles)) 281 (setcar active (apply #'min articles))
282 (setcdr active (apply 'max articles)))) 282 (setcdr active (apply #'max articles))))
283 (nnmail-save-active nnml-group-alist nnml-active-file) 283 (nnmail-save-active nnml-group-alist nnml-active-file)
284 t)))) 284 t))))
285 285
@@ -307,7 +307,7 @@ non-nil.")
307 article rest mod-time number target) 307 article rest mod-time number target)
308 (nnmail-activate 'nnml) 308 (nnmail-activate 'nnml)
309 309
310 (setq active-articles (sort active-articles '<)) 310 (setq active-articles (sort active-articles #'<))
311 ;; Articles not listed in active-articles are already gone, 311 ;; Articles not listed in active-articles are already gone,
312 ;; so don't try to expire them. 312 ;; so don't try to expire them.
313 (setq articles (gnus-sorted-intersection articles active-articles)) 313 (setq articles (gnus-sorted-intersection articles active-articles))
@@ -353,7 +353,7 @@ non-nil.")
353 (let ((active (nth 1 (assoc-string group nnml-group-alist)))) 353 (let ((active (nth 1 (assoc-string group nnml-group-alist))))
354 (when active 354 (when active
355 (setcar active (or (and active-articles 355 (setcar active (or (and active-articles
356 (apply 'min active-articles)) 356 (apply #'min active-articles))
357 (1+ (cdr active))))) 357 (1+ (cdr active)))))
358 (nnmail-save-active nnml-group-alist nnml-active-file)) 358 (nnmail-save-active nnml-group-alist nnml-active-file))
359 (nnml-save-nov) 359 (nnml-save-nov)
@@ -705,7 +705,7 @@ article number. This function is called narrowed to an article."
705 (setq nnml-article-file-alist 705 (setq nnml-article-file-alist
706 (sort 706 (sort
707 (nnml-current-group-article-to-file-alist) 707 (nnml-current-group-article-to-file-alist)
708 'car-less-than-car))) 708 #'car-less-than-car)))
709 (setq active 709 (setq active
710 (if nnml-article-file-alist 710 (if nnml-article-file-alist
711 (cons (caar nnml-article-file-alist) 711 (cons (caar nnml-article-file-alist)
@@ -856,7 +856,7 @@ Unless no-active is non-nil, update the active file too."
856 (nnml-generate-nov-databases-directory dir seen))) 856 (nnml-generate-nov-databases-directory dir seen)))
857 ;; Do this directory. 857 ;; Do this directory.
858 (let ((nnml-files (sort (nnheader-article-to-file-alist dir) 858 (let ((nnml-files (sort (nnheader-article-to-file-alist dir)
859 'car-less-than-car))) 859 #'car-less-than-car)))
860 (if (not nnml-files) 860 (if (not nnml-files)
861 (let* ((group (nnheader-file-to-group 861 (let* ((group (nnheader-file-to-group
862 (directory-file-name dir) nnml-directory)) 862 (directory-file-name dir) nnml-directory))
@@ -1010,7 +1010,7 @@ Use the nov database for the current group if available."
1010 (unless nnml-article-file-alist 1010 (unless nnml-article-file-alist
1011 (setq nnml-article-file-alist 1011 (setq nnml-article-file-alist
1012 (sort (nnml-current-group-article-to-file-alist) 1012 (sort (nnml-current-group-article-to-file-alist)
1013 'car-less-than-car))) 1013 #'car-less-than-car)))
1014 (if (not nnml-article-file-alist) 1014 (if (not nnml-article-file-alist)
1015 ;; The group is empty: do nothing but return t 1015 ;; The group is empty: do nothing but return t
1016 t 1016 t
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el
index f9e0a08a06e..a340c9e2b8f 100644
--- a/lisp/gnus/nnrss.el
+++ b/lisp/gnus/nnrss.el
@@ -798,7 +798,7 @@ It is useful when `(setq nnrss-use-local t)'."
798 798
799(defun nnrss-node-just-text (node) 799(defun nnrss-node-just-text (node)
800 (if (and node (listp node)) 800 (if (and node (listp node))
801 (mapconcat 'nnrss-node-just-text (cddr node) " ") 801 (mapconcat #'nnrss-node-just-text (cddr node) " ")
802 node)) 802 node))
803 803
804(defun nnrss-find-el (tag data &optional found-list) 804(defun nnrss-find-el (tag data &optional found-list)
diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
index ba0e60a2673..fffa2d27312 100644
--- a/lisp/gnus/nnselect.el
+++ b/lisp/gnus/nnselect.el
@@ -81,12 +81,12 @@
81 "Compress ARTLIST." 81 "Compress ARTLIST."
82 (let (selection) 82 (let (selection)
83 (pcase-dolist (`(,artgroup . ,arts) 83 (pcase-dolist (`(,artgroup . ,arts)
84 (nnselect-categorize artlist 'nnselect-artitem-group)) 84 (nnselect-categorize artlist #'nnselect-artitem-group))
85 (let (list) 85 (let (list)
86 (pcase-dolist (`(,rsv . ,articles) 86 (pcase-dolist (`(,rsv . ,articles)
87 (nnselect-categorize 87 (nnselect-categorize
88 arts 'nnselect-artitem-rsv 'nnselect-artitem-number)) 88 arts #'nnselect-artitem-rsv #'nnselect-artitem-number))
89 (push (cons rsv (gnus-compress-sequence (sort articles '<))) 89 (push (cons rsv (gnus-compress-sequence (sort articles #'<)))
90 list)) 90 list))
91 (push (cons artgroup list) selection))) 91 (push (cons artgroup list) selection)))
92 selection)) 92 selection))
@@ -200,25 +200,27 @@ as `(keyfunc member)' and the corresponding element is just
200 200
201(define-inline ids-by-group (articles) 201(define-inline ids-by-group (articles)
202 (inline-quote 202 (inline-quote
203 (nnselect-categorize ,articles 'nnselect-article-group 203 (nnselect-categorize ,articles #'nnselect-article-group
204 'nnselect-article-id))) 204 #'nnselect-article-id)))
205 205
206(define-inline numbers-by-group (articles &optional type) 206(define-inline numbers-by-group (articles &optional type)
207 (inline-quote 207 (inline-quote
208 (cond 208 (cond
209 ((eq ,type 'range) 209 ((eq ,type 'range)
210 (nnselect-categorize (gnus-uncompress-range ,articles) 210 (nnselect-categorize (gnus-uncompress-range ,articles)
211 'nnselect-article-group 'nnselect-article-number)) 211 #'nnselect-article-group #'nnselect-article-number))
212 ((eq ,type 'tuple) 212 ((eq ,type 'tuple)
213 (nnselect-categorize ,articles 213 (nnselect-categorize ,articles
214 #'(lambda (elem) 214 #'(lambda (elem)
215 (nnselect-article-group (car elem))) 215 (nnselect-article-group (car elem)))
216 #'(lambda (elem) 216 #'(lambda (elem)
217 (cons (nnselect-article-number 217 (cons (nnselect-article-number
218 (car elem)) (cdr elem))))) 218 (car elem))
219 (cdr elem)))))
219 (t 220 (t
220 (nnselect-categorize ,articles 221 (nnselect-categorize ,articles
221 'nnselect-article-group 'nnselect-article-number))))) 222 #'nnselect-article-group
223 #'nnselect-article-number)))))
222 224
223(defmacro nnselect-add-prefix (group) 225(defmacro nnselect-add-prefix (group)
224 "Ensures that the GROUP has an nnselect prefix." 226 "Ensures that the GROUP has an nnselect prefix."
@@ -319,7 +321,7 @@ If this variable is nil, or if the provided function returns nil,
319 headers) 321 headers)
320 (with-current-buffer nntp-server-buffer 322 (with-current-buffer nntp-server-buffer
321 (pcase-dolist (`(,artgroup . ,artids) gartids) 323 (pcase-dolist (`(,artgroup . ,artids) gartids)
322 (let ((artlist (sort (mapcar 'cdr artids) '<)) 324 (let ((artlist (sort (mapcar #'cdr artids) #'<))
323 (gnus-override-method (gnus-find-method-for-group artgroup)) 325 (gnus-override-method (gnus-find-method-for-group artgroup))
324 (fetch-old 326 (fetch-old
325 (or 327 (or
@@ -385,7 +387,8 @@ If this variable is nil, or if the provided function returns nil,
385 (list 387 (list
386 (gnus-method-to-server 388 (gnus-method-to-server
387 (gnus-find-method-for-group 389 (gnus-find-method-for-group
388 (nnselect-article-group x)))) servers :test 'equal))) 390 (nnselect-article-group x))))
391 servers :test 'equal)))
389 (gnus-articles-in-thread thread))))) 392 (gnus-articles-in-thread thread)))))
390 (setq servers (list (list server)))) 393 (setq servers (list (list server))))
391 (setq artlist 394 (setq artlist
@@ -455,7 +458,7 @@ If this variable is nil, or if the provided function returns nil,
455 (if force 458 (if force
456 (let (not-expired) 459 (let (not-expired)
457 (pcase-dolist (`(,artgroup . ,artids) (ids-by-group articles)) 460 (pcase-dolist (`(,artgroup . ,artids) (ids-by-group articles))
458 (let ((artlist (sort (mapcar 'cdr artids) '<))) 461 (let ((artlist (sort (mapcar #'cdr artids) #'<)))
459 (unless (gnus-check-backend-function 'request-expire-articles 462 (unless (gnus-check-backend-function 'request-expire-articles
460 artgroup) 463 artgroup)
461 (error "Group %s does not support article expiration" artgroup)) 464 (error "Group %s does not support article expiration" artgroup))
@@ -467,7 +470,7 @@ If this variable is nil, or if the provided function returns nil,
467 (gnus-request-expire-articles 470 (gnus-request-expire-articles
468 artlist artgroup force))) 471 artlist artgroup force)))
469 not-expired))) 472 not-expired)))
470 (sort (delq nil not-expired) '<)) 473 (sort (delq nil not-expired) #'<))
471 articles)) 474 articles))
472 475
473 476
@@ -518,11 +521,11 @@ If this variable is nil, or if the provided function returns nil,
518 (mapcar 521 (mapcar
519 (lambda (artgroup) 522 (lambda (artgroup)
520 (list (car artgroup) 523 (list (car artgroup)
521 (gnus-compress-sequence (sort (cdr artgroup) '<)) 524 (gnus-compress-sequence (sort (cdr artgroup) #'<))
522 action marks)) 525 action marks))
523 (numbers-by-group range 'range)))) 526 (numbers-by-group range 'range))))
524 actions) 527 actions)
525 'car 'cdr))) 528 #'car #'cdr)))
526 529
527(deffoo nnselect-request-update-info (group info &optional _server) 530(deffoo nnselect-request-update-info (group info &optional _server)
528 (let* ((group (nnselect-add-prefix group)) 531 (let* ((group (nnselect-add-prefix group))
@@ -651,8 +654,9 @@ If this variable is nil, or if the provided function returns nil,
651 new-nnselect-artlist) 654 new-nnselect-artlist)
652 (setq headers 655 (setq headers
653 (gnus-fetch-headers 656 (gnus-fetch-headers
654 (append (sort old-arts '<) 657 (append (sort old-arts #'<)
655 (number-sequence first last)) nil t)) 658 (number-sequence first last))
659 nil t))
656 (gnus-group-set-parameter 660 (gnus-group-set-parameter
657 group 661 group
658 'nnselect-artlist 662 'nnselect-artlist
@@ -942,7 +946,7 @@ article came from is also searched."
942 (gnus-remove-from-range 946 (gnus-remove-from-range
943 old-unread 947 old-unread
944 (cdr (assoc artgroup select-reads))) 948 (cdr (assoc artgroup select-reads)))
945 (sort (cdr (assoc artgroup select-unreads)) '<)))) 949 (sort (cdr (assoc artgroup select-unreads)) #'<))))
946 (gnus-get-unread-articles-in-group 950 (gnus-get-unread-articles-in-group
947 group-info (gnus-active artgroup) t) 951 group-info (gnus-active artgroup) t)
948 (gnus-group-update-group artgroup t t))))))) 952 (gnus-group-update-group artgroup t t)))))))
diff --git a/lisp/gnus/nnspool.el b/lisp/gnus/nnspool.el
index 9de59d8631d..cb854178564 100644
--- a/lisp/gnus/nnspool.el
+++ b/lisp/gnus/nnspool.el
@@ -261,7 +261,7 @@ there.")
261 ;; Yes, completely empty spool directories *are* possible. 261 ;; Yes, completely empty spool directories *are* possible.
262 ;; Fix by Sudish Joseph <joseph@cis.ohio-state.edu> 262 ;; Fix by Sudish Joseph <joseph@cis.ohio-state.edu>
263 (when (setq dir (directory-files pathname nil "\\`[0-9]+\\'" t)) 263 (when (setq dir (directory-files pathname nil "\\`[0-9]+\\'" t))
264 (setq dir (sort (mapcar 'string-to-number dir) '<))) 264 (setq dir (sort (mapcar #'string-to-number dir) #'<)))
265 (if dir 265 (if dir
266 (nnheader-insert 266 (nnheader-insert
267 "211 %d %d %d %s\n" (length dir) (car dir) 267 "211 %d %d %d %s\n" (length dir) (car dir)
@@ -331,7 +331,7 @@ there.")
331 (buf (current-buffer)) 331 (buf (current-buffer))
332 (proc 332 (proc
333 (condition-case err 333 (condition-case err
334 (apply 'start-process "*nnspool inews*" inews-buffer 334 (apply #'start-process "*nnspool inews*" inews-buffer
335 nnspool-inews-program nnspool-inews-switches) 335 nnspool-inews-program nnspool-inews-switches)
336 (error 336 (error
337 (nnheader-report 'nnspool "inews error: %S" err))))) 337 (nnheader-report 'nnspool "inews error: %S" err)))))
@@ -409,7 +409,7 @@ there.")
409 (<= last (car arts))) 409 (<= last (car arts)))
410 (pop arts)) 410 (pop arts))
411 ;; The articles in `arts' are missing from the buffer. 411 ;; The articles in `arts' are missing from the buffer.
412 (mapc 'nnspool-insert-nov-head arts) 412 (mapc #'nnspool-insert-nov-head arts)
413 t)))))))))) 413 t))))))))))
414 414
415(defun nnspool-insert-nov-head (article) 415(defun nnspool-insert-nov-head (article)
diff --git a/lisp/gnus/nnvirtual.el b/lisp/gnus/nnvirtual.el
index 1e2feda6365..902df868f80 100644
--- a/lisp/gnus/nnvirtual.el
+++ b/lisp/gnus/nnvirtual.el
@@ -367,7 +367,7 @@ It is computed from the marks of individual component groups.")
367 group article)) 367 group article))
368 (gnus-uncompress-range 368 (gnus-uncompress-range
369 (gnus-group-expire-articles-1 group)))))) 369 (gnus-group-expire-articles-1 group))))))
370 (sort (delq nil unexpired) '<))) 370 (sort (delq nil unexpired) #'<)))
371 371
372 372
373;;; Internal functions. 373;;; Internal functions.
@@ -378,7 +378,7 @@ It is computed from the marks of individual component groups.")
378 (let* ((dependencies (make-hash-table :test #'equal)) 378 (let* ((dependencies (make-hash-table :test #'equal))
379 (headers (gnus-get-newsgroup-headers dependencies))) 379 (headers (gnus-get-newsgroup-headers dependencies)))
380 (erase-buffer) 380 (erase-buffer)
381 (mapc 'nnheader-insert-nov headers)))) 381 (mapc #'nnheader-insert-nov headers))))
382 382
383 383
384(defun nnvirtual-update-xref-header (group article prefix sysname) 384(defun nnvirtual-update-xref-header (group article prefix sysname)
@@ -502,7 +502,7 @@ If UPDATE-P is not nil, call gnus-group-update-group on the components."
502 "Merge many sorted lists of numbers." 502 "Merge many sorted lists of numbers."
503 (if (null (cdr lists)) 503 (if (null (cdr lists))
504 (car lists) 504 (car lists)
505 (sort (apply 'nconc lists) '<))) 505 (sort (apply #'nconc lists) #'<)))
506 506
507 507
508;; We map between virtual articles and real articles in a manner 508;; We map between virtual articles and real articles in a manner
@@ -648,7 +648,7 @@ numbers has no corresponding component article, then it is left out of
648the result." 648the result."
649 (when (numberp (cdr-safe articles)) 649 (when (numberp (cdr-safe articles))
650 (setq articles (list articles))) 650 (setq articles (list articles)))
651 (let ((carticles (mapcar 'list nnvirtual-component-groups)) 651 (let ((carticles (mapcar #'list nnvirtual-component-groups))
652 a i j article entry) 652 a i j article entry)
653 (while (setq a (pop articles)) 653 (while (setq a (pop articles))
654 (if (atom a) 654 (if (atom a)
@@ -750,7 +750,7 @@ based on the marks on the component groups."
750 ;; Now that the mapping tables are generated, we can convert 750 ;; Now that the mapping tables are generated, we can convert
751 ;; and combine the separate component unreads and marks lists 751 ;; and combine the separate component unreads and marks lists
752 ;; into single lists of virtual article numbers. 752 ;; into single lists of virtual article numbers.
753 (setq unreads (apply 'nnvirtual-merge-sorted-lists 753 (setq unreads (apply #'nnvirtual-merge-sorted-lists
754 (mapcar (lambda (x) 754 (mapcar (lambda (x)
755 (nnvirtual-reverse-map-sequence 755 (nnvirtual-reverse-map-sequence
756 (car x) (cdr x))) 756 (car x) (cdr x)))
@@ -760,7 +760,7 @@ based on the marks on the component groups."
760 (cons (cdr type) 760 (cons (cdr type)
761 (gnus-compress-sequence 761 (gnus-compress-sequence
762 (apply 762 (apply
763 'nnvirtual-merge-sorted-lists 763 #'nnvirtual-merge-sorted-lists
764 (mapcar (lambda (x) 764 (mapcar (lambda (x)
765 (nnvirtual-reverse-map-sequence 765 (nnvirtual-reverse-map-sequence
766 (car x) 766 (car x)
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el
index b8fb4a8373a..2a948254717 100644
--- a/lisp/gnus/nnweb.el
+++ b/lisp/gnus/nnweb.el
@@ -411,7 +411,7 @@ Valid types include `google', `dejanews', and `gmane'.")
411 ;; Return the articles in the right order. 411 ;; Return the articles in the right order.
412 (nnheader-message 7 "Searching google...done") 412 (nnheader-message 7 "Searching google...done")
413 (setq nnweb-articles 413 (setq nnweb-articles
414 (sort nnweb-articles 'car-less-than-car)))))) 414 (sort nnweb-articles #'car-less-than-car))))))
415 415
416(defun nnweb-google-search (search) 416(defun nnweb-google-search (search)
417 (mm-url-insert 417 (mm-url-insert
@@ -481,7 +481,7 @@ Valid types include `google', `dejanews', and `gmane'.")
481 (forward-line 1))) 481 (forward-line 1)))
482 (nnheader-message 7 "Searching Gmane...done") 482 (nnheader-message 7 "Searching Gmane...done")
483 (setq nnweb-articles 483 (setq nnweb-articles
484 (sort (nconc nnweb-articles map) 'car-less-than-car))))) 484 (sort (nconc nnweb-articles map) #'car-less-than-car)))))
485 485
486(defun nnweb-gmane-wash-article () 486(defun nnweb-gmane-wash-article ()
487 (let ((case-fold-search t)) 487 (let ((case-fold-search t))
@@ -534,7 +534,7 @@ Valid types include `google', `dejanews', and `gmane'.")
534 (nth 1 parse) 534 (nth 1 parse)
535 " ")) 535 " "))
536 (insert ">\n") 536 (insert ">\n")
537 (mapc 'nnweb-insert-html (nth 2 parse)) 537 (mapc #'nnweb-insert-html (nth 2 parse))
538 (insert "</" (symbol-name (car parse)) ">\n"))) 538 (insert "</" (symbol-name (car parse)) ">\n")))
539 539
540(defun nnweb-parse-find (type parse &optional maxdepth) 540(defun nnweb-parse-find (type parse &optional maxdepth)
diff --git a/lisp/gnus/smiley.el b/lisp/gnus/smiley.el
index d9e04f3b40c..9884bcc0752 100644
--- a/lisp/gnus/smiley.el
+++ b/lisp/gnus/smiley.el
@@ -71,9 +71,8 @@
71 (set-default symbol value) 71 (set-default symbol value)
72 (setq smiley-data-directory (smiley-directory)) 72 (setq smiley-data-directory (smiley-directory))
73 (smiley-update-cache)) 73 (smiley-update-cache))
74 :initialize 'custom-initialize-default 74 :initialize #'custom-initialize-default
75 :version "23.1" ;; No Gnus 75 :version "23.1") ;; No Gnus
76 :group 'smiley)
77 76
78;; For compatibility, honor the variable `smiley-data-directory' if the user 77;; For compatibility, honor the variable `smiley-data-directory' if the user
79;; has set it. 78;; has set it.
@@ -94,9 +93,8 @@ is nil, use `smiley-style'."
94 :set (lambda (symbol value) 93 :set (lambda (symbol value)
95 (set-default symbol value) 94 (set-default symbol value)
96 (smiley-update-cache)) 95 (smiley-update-cache))
97 :initialize 'custom-initialize-default 96 :initialize #'custom-initialize-default
98 :type 'directory 97 :type 'directory)
99 :group 'smiley)
100 98
101(defcustom smiley-emoji-regexp-alist 99(defcustom smiley-emoji-regexp-alist
102 '(("\\(;-)\\)\\W" 1 "😉") 100 '(("\\(;-)\\)\\W" 1 "😉")
@@ -124,8 +122,7 @@ regexp to replace with EMOJI."
124 :set (lambda (symbol value) 122 :set (lambda (symbol value)
125 (set-default symbol value) 123 (set-default symbol value)
126 (smiley-update-cache)) 124 (smiley-update-cache))
127 :initialize 'custom-initialize-default 125 :initialize #'custom-initialize-default)
128 :group 'smiley)
129 126
130;; The XEmacs version has a baroque, if not rococo, set of these. 127;; The XEmacs version has a baroque, if not rococo, set of these.
131(defcustom smiley-regexp-alist 128(defcustom smiley-regexp-alist
@@ -154,8 +151,7 @@ regexp to replace with IMAGE. IMAGE is the name of an image file in
154 :set (lambda (symbol value) 151 :set (lambda (symbol value)
155 (set-default symbol value) 152 (set-default symbol value)
156 (smiley-update-cache)) 153 (smiley-update-cache))
157 :initialize 'custom-initialize-default 154 :initialize #'custom-initialize-default)
158 :group 'smiley)
159 155
160(defcustom gnus-smiley-file-types 156(defcustom gnus-smiley-file-types
161 (let ((types (list "pbm"))) 157 (let ((types (list "pbm")))
@@ -166,8 +162,7 @@ regexp to replace with IMAGE. IMAGE is the name of an image file in
166 types) 162 types)
167 "List of suffixes on smiley file names to try." 163 "List of suffixes on smiley file names to try."
168 :version "24.1" 164 :version "24.1"
169 :type '(repeat string) 165 :type '(repeat string))
170 :group 'smiley)
171 166
172(defvar smiley-cached-regexp-alist nil) 167(defvar smiley-cached-regexp-alist nil)
173 168
diff --git a/lisp/gnus/smime.el b/lisp/gnus/smime.el
index ae5d171d871..147c51d89a6 100644
--- a/lisp/gnus/smime.el
+++ b/lisp/gnus/smime.el
@@ -282,7 +282,7 @@ key and certificate itself."
282 (setenv "GNUS_SMIME_PASSPHRASE" passphrase)) 282 (setenv "GNUS_SMIME_PASSPHRASE" passphrase))
283 (prog1 283 (prog1
284 (when (prog1 284 (when (prog1
285 (apply 'smime-call-openssl-region b e (list buffer tmpfile) 285 (apply #'smime-call-openssl-region b e (list buffer tmpfile)
286 "smime" "-sign" "-signer" (expand-file-name keyfile) 286 "smime" "-sign" "-signer" (expand-file-name keyfile)
287 (append 287 (append
288 (smime-make-certfiles certfiles) 288 (smime-make-certfiles certfiles)
@@ -314,9 +314,9 @@ is expected to contain of a PEM encoded certificate."
314 (tmpfile (make-temp-file "smime"))) 314 (tmpfile (make-temp-file "smime")))
315 (prog1 315 (prog1
316 (when (prog1 316 (when (prog1
317 (apply 'smime-call-openssl-region b e (list buffer tmpfile) 317 (apply #'smime-call-openssl-region b e (list buffer tmpfile)
318 "smime" "-encrypt" smime-encrypt-cipher 318 "smime" "-encrypt" smime-encrypt-cipher
319 (mapcar 'expand-file-name certfiles)) 319 (mapcar #'expand-file-name certfiles))
320 (with-current-buffer smime-details-buffer 320 (with-current-buffer smime-details-buffer
321 (insert-file-contents tmpfile) 321 (insert-file-contents tmpfile)
322 (delete-file tmpfile))) 322 (delete-file tmpfile)))
@@ -384,7 +384,7 @@ Any details (stdout and stderr) are left in the buffer specified by
384 (with-temp-buffer 384 (with-temp-buffer
385 (let ((result-buffer (current-buffer))) 385 (let ((result-buffer (current-buffer)))
386 (with-current-buffer input-buffer 386 (with-current-buffer input-buffer
387 (if (apply 'smime-call-openssl-region b e (list result-buffer 387 (if (apply #'smime-call-openssl-region b e (list result-buffer
388 smime-details-buffer) 388 smime-details-buffer)
389 "smime" "-verify" "-out" "-" CAs) 389 "smime" "-verify" "-out" "-" CAs)
390 (with-current-buffer result-buffer 390 (with-current-buffer result-buffer
@@ -397,7 +397,7 @@ Returns non-nil on success.
397Any details (stdout and stderr) are left in the buffer specified by 397Any details (stdout and stderr) are left in the buffer specified by
398`smime-details-buffer'." 398`smime-details-buffer'."
399 (smime-new-details-buffer) 399 (smime-new-details-buffer)
400 (if (apply 'smime-call-openssl-region b e (list smime-details-buffer t) 400 (if (apply #'smime-call-openssl-region b e (list smime-details-buffer t)
401 "smime" "-verify" "-noverify" "-out" `(,null-device)) 401 "smime" "-verify" "-noverify" "-out" `(,null-device))
402 t 402 t
403 (insert-buffer-substring smime-details-buffer) 403 (insert-buffer-substring smime-details-buffer)
@@ -416,7 +416,7 @@ in the buffer specified by `smime-details-buffer'."
416 (if passphrase 416 (if passphrase
417 (setenv "GNUS_SMIME_PASSPHRASE" passphrase)) 417 (setenv "GNUS_SMIME_PASSPHRASE" passphrase))
418 (if (prog1 418 (if (prog1
419 (apply 'smime-call-openssl-region b e 419 (apply #'smime-call-openssl-region b e
420 (list buffer tmpfile) 420 (list buffer tmpfile)
421 "smime" "-decrypt" "-recip" (expand-file-name keyfile) 421 "smime" "-decrypt" "-recip" (expand-file-name keyfile)
422 (if passphrase 422 (if passphrase
diff --git a/lisp/gnus/spam-report.el b/lisp/gnus/spam-report.el
index 8c148ce9d91..e2125563f2a 100644
--- a/lisp/gnus/spam-report.el
+++ b/lisp/gnus/spam-report.el
@@ -345,8 +345,8 @@ Spam reports will be queued with \\[spam-report-url-to-file] when
345the Agent is unplugged, and will be submitted in a batch when the 345the Agent is unplugged, and will be submitted in a batch when the
346Agent is plugged." 346Agent is plugged."
347 (interactive) 347 (interactive)
348 (add-hook 'gnus-agent-plugged-hook 'spam-report-plug-agent) 348 (add-hook 'gnus-agent-plugged-hook #'spam-report-plug-agent)
349 (add-hook 'gnus-agent-unplugged-hook 'spam-report-unplug-agent)) 349 (add-hook 'gnus-agent-unplugged-hook #'spam-report-unplug-agent))
350 350
351;;;###autoload 351;;;###autoload
352(defun spam-report-deagentize () 352(defun spam-report-deagentize ()
@@ -354,8 +354,8 @@ Agent is plugged."
354Spam reports will be queued with the method used when 354Spam reports will be queued with the method used when
355\\[spam-report-agentize] was run." 355\\[spam-report-agentize] was run."
356 (interactive) 356 (interactive)
357 (remove-hook 'gnus-agent-plugged-hook 'spam-report-plug-agent) 357 (remove-hook 'gnus-agent-plugged-hook #'spam-report-plug-agent)
358 (remove-hook 'gnus-agent-unplugged-hook 'spam-report-unplug-agent)) 358 (remove-hook 'gnus-agent-unplugged-hook #'spam-report-unplug-agent))
359 359
360(defun spam-report-plug-agent () 360(defun spam-report-plug-agent ()
361 "Adjust spam report settings for plugged state. 361 "Adjust spam report settings for plugged state.
diff --git a/lisp/gnus/spam-stat.el b/lisp/gnus/spam-stat.el
index 3662ade2663..89c2deb36f0 100644
--- a/lisp/gnus/spam-stat.el
+++ b/lisp/gnus/spam-stat.el
@@ -501,7 +501,7 @@ where DIFF is the difference between SCORE and 0.5."
501Add user supplied modifications if supplied." 501Add user supplied modifications if supplied."
502 (interactive) ; helps in debugging. 502 (interactive) ; helps in debugging.
503 (setq spam-stat-score-data (spam-stat-buffer-words-with-scores)) 503 (setq spam-stat-score-data (spam-stat-buffer-words-with-scores))
504 (let* ((probs (mapcar 'cadr spam-stat-score-data)) 504 (let* ((probs (mapcar #'cadr spam-stat-score-data))
505 (prod (apply #'* probs)) 505 (prod (apply #'* probs))
506 (score0 506 (score0
507 (/ prod (+ prod (apply #'* (mapcar #'(lambda (x) (- 1 x)) 507 (/ prod (+ prod (apply #'* (mapcar #'(lambda (x) (- 1 x))
@@ -652,19 +652,19 @@ COUNT defaults to 5"
652 "Install the spam-stat function hooks." 652 "Install the spam-stat function hooks."
653 (interactive) 653 (interactive)
654 (add-hook 'nnmail-prepare-incoming-message-hook 654 (add-hook 'nnmail-prepare-incoming-message-hook
655 'spam-stat-store-current-buffer) 655 #'spam-stat-store-current-buffer)
656 (add-hook 'gnus-select-article-hook 656 (add-hook 'gnus-select-article-hook
657 'spam-stat-store-gnus-article-buffer)) 657 #'spam-stat-store-gnus-article-buffer))
658 658
659(defun spam-stat-unload-hook () 659(defun spam-stat-unload-hook ()
660 "Uninstall the spam-stat function hooks." 660 "Uninstall the spam-stat function hooks."
661 (interactive) 661 (interactive)
662 (remove-hook 'nnmail-prepare-incoming-message-hook 662 (remove-hook 'nnmail-prepare-incoming-message-hook
663 'spam-stat-store-current-buffer) 663 #'spam-stat-store-current-buffer)
664 (remove-hook 'gnus-select-article-hook 664 (remove-hook 'gnus-select-article-hook
665 'spam-stat-store-gnus-article-buffer)) 665 #'spam-stat-store-gnus-article-buffer))
666 666
667(add-hook 'spam-stat-unload-hook 'spam-stat-unload-hook) 667(add-hook 'spam-stat-unload-hook #'spam-stat-unload-hook)
668 668
669(provide 'spam-stat) 669(provide 'spam-stat)
670 670
diff --git a/lisp/gnus/spam-wash.el b/lisp/gnus/spam-wash.el
index 1d00a39060d..1c755fb464e 100644
--- a/lisp/gnus/spam-wash.el
+++ b/lisp/gnus/spam-wash.el
@@ -57,7 +57,7 @@
57 57
58(defun spam-treat-parts (handle) 58(defun spam-treat-parts (handle)
59 (if (stringp (car handle)) 59 (if (stringp (car handle))
60 (mapcar 'spam-treat-parts (cdr handle)) 60 (mapcar #'spam-treat-parts (cdr handle))
61 (if (bufferp (car handle)) 61 (if (bufferp (car handle))
62 (save-restriction 62 (save-restriction
63 (narrow-to-region (point) (point)) 63 (narrow-to-region (point) (point))
@@ -65,7 +65,7 @@
65 (string-match "text" (car (mm-handle-type handle)))) 65 (string-match "text" (car (mm-handle-type handle))))
66 (mm-insert-part handle)) 66 (mm-insert-part handle))
67 (goto-char (point-max))) 67 (goto-char (point-max)))
68 (mapcar 'spam-treat-parts handle)))) 68 (mapcar #'spam-treat-parts handle))))
69 69
70(provide 'spam-wash) 70(provide 'spam-wash)
71 71
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el
index 22810332b65..3f4fd3614ee 100644
--- a/lisp/gnus/spam.el
+++ b/lisp/gnus/spam.el
@@ -705,7 +705,7 @@ finds ham or spam.")
705 "Clear the `spam-caches' entry for a check." 705 "Clear the `spam-caches' entry for a check."
706 (remhash symbol spam-caches)) 706 (remhash symbol spam-caches))
707 707
708(define-obsolete-function-alias 'spam-xor 'xor "27.1") 708(define-obsolete-function-alias 'spam-xor #'xor "27.1")
709 709
710(defun spam-set-difference (list1 list2) 710(defun spam-set-difference (list1 list2)
711 "Return a set difference of LIST1 and LIST2. 711 "Return a set difference of LIST1 and LIST2.
@@ -727,7 +727,7 @@ When either list is nil, the other is returned."
727 (let* ((marks (spam-group-ham-marks group spam)) 727 (let* ((marks (spam-group-ham-marks group spam))
728 (marks (if (symbolp mark) 728 (marks (if (symbolp mark)
729 marks 729 marks
730 (mapcar 'symbol-value marks)))) 730 (mapcar #'symbol-value marks))))
731 (memq mark marks)))) 731 (memq mark marks))))
732 732
733(defun spam-group-spam-mark-p (group mark) 733(defun spam-group-spam-mark-p (group mark)
@@ -1014,28 +1014,28 @@ backends)."
1014 1014
1015;;{{{ backend installations 1015;;{{{ backend installations
1016(spam-install-checkonly-backend 'spam-use-blackholes 1016(spam-install-checkonly-backend 'spam-use-blackholes
1017 'spam-check-blackholes) 1017 #'spam-check-blackholes)
1018 1018
1019(spam-install-checkonly-backend 'spam-use-hashcash 1019(spam-install-checkonly-backend 'spam-use-hashcash
1020 'spam-check-hashcash) 1020 #'spam-check-hashcash)
1021 1021
1022(spam-install-checkonly-backend 'spam-use-spamassassin-headers 1022(spam-install-checkonly-backend 'spam-use-spamassassin-headers
1023 'spam-check-spamassassin-headers) 1023 #'spam-check-spamassassin-headers)
1024 1024
1025(spam-install-checkonly-backend 'spam-use-bogofilter-headers 1025(spam-install-checkonly-backend 'spam-use-bogofilter-headers
1026 'spam-check-bogofilter-headers) 1026 #'spam-check-bogofilter-headers)
1027 1027
1028(spam-install-checkonly-backend 'spam-use-bsfilter-headers 1028(spam-install-checkonly-backend 'spam-use-bsfilter-headers
1029 'spam-check-bsfilter-headers) 1029 #'spam-check-bsfilter-headers)
1030 1030
1031(spam-install-checkonly-backend 'spam-use-gmane-xref 1031(spam-install-checkonly-backend 'spam-use-gmane-xref
1032 'spam-check-gmane-xref) 1032 #'spam-check-gmane-xref)
1033 1033
1034(spam-install-checkonly-backend 'spam-use-regex-headers 1034(spam-install-checkonly-backend 'spam-use-regex-headers
1035 'spam-check-regex-headers) 1035 #'spam-check-regex-headers)
1036 1036
1037(spam-install-statistical-checkonly-backend 'spam-use-regex-body 1037(spam-install-statistical-checkonly-backend 'spam-use-regex-body
1038 'spam-check-regex-body) 1038 #'spam-check-regex-body)
1039 1039
1040;; TODO: NOTE: spam-use-ham-copy is now obsolete, use (ham spam-use-copy) 1040;; TODO: NOTE: spam-use-ham-copy is now obsolete, use (ham spam-use-copy)
1041(spam-install-mover-backend 'spam-use-move 1041(spam-install-mover-backend 'spam-use-move
@@ -1045,94 +1045,94 @@ backends)."
1045 nil) 1045 nil)
1046 1046
1047(spam-install-nocheck-backend 'spam-use-copy 1047(spam-install-nocheck-backend 'spam-use-copy
1048 'spam-copy-ham-routine 1048 #'spam-copy-ham-routine
1049 'spam-copy-spam-routine 1049 #'spam-copy-spam-routine
1050 nil 1050 nil
1051 nil) 1051 nil)
1052 1052
1053(spam-install-nocheck-backend 'spam-use-gmane 1053(spam-install-nocheck-backend 'spam-use-gmane
1054 'spam-report-gmane-unregister-routine 1054 #'spam-report-gmane-unregister-routine
1055 'spam-report-gmane-register-routine 1055 #'spam-report-gmane-register-routine
1056 'spam-report-gmane-register-routine 1056 #'spam-report-gmane-register-routine
1057 'spam-report-gmane-unregister-routine) 1057 #'spam-report-gmane-unregister-routine)
1058 1058
1059(spam-install-nocheck-backend 'spam-use-resend 1059(spam-install-nocheck-backend 'spam-use-resend
1060 'spam-report-resend-register-ham-routine 1060 #'spam-report-resend-register-ham-routine
1061 'spam-report-resend-register-routine 1061 #'spam-report-resend-register-routine
1062 nil 1062 nil
1063 nil) 1063 nil)
1064 1064
1065(spam-install-backend 'spam-use-BBDB 1065(spam-install-backend 'spam-use-BBDB
1066 'spam-check-BBDB 1066 #'spam-check-BBDB
1067 'spam-BBDB-register-routine 1067 #'spam-BBDB-register-routine
1068 nil 1068 nil
1069 'spam-BBDB-unregister-routine 1069 #'spam-BBDB-unregister-routine
1070 nil) 1070 nil)
1071 1071
1072(spam-install-backend-alias 'spam-use-BBDB 'spam-use-BBDB-exclusive) 1072(spam-install-backend-alias 'spam-use-BBDB 'spam-use-BBDB-exclusive)
1073 1073
1074(spam-install-backend 'spam-use-blacklist 1074(spam-install-backend 'spam-use-blacklist
1075 'spam-check-blacklist 1075 #'spam-check-blacklist
1076 nil 1076 nil
1077 'spam-blacklist-register-routine 1077 #'spam-blacklist-register-routine
1078 nil 1078 nil
1079 'spam-blacklist-unregister-routine) 1079 #'spam-blacklist-unregister-routine)
1080 1080
1081(spam-install-backend 'spam-use-whitelist 1081(spam-install-backend 'spam-use-whitelist
1082 'spam-check-whitelist 1082 #'spam-check-whitelist
1083 'spam-whitelist-register-routine 1083 #'spam-whitelist-register-routine
1084 nil 1084 nil
1085 'spam-whitelist-unregister-routine 1085 #'spam-whitelist-unregister-routine
1086 nil) 1086 nil)
1087 1087
1088(spam-install-statistical-backend 'spam-use-ifile 1088(spam-install-statistical-backend 'spam-use-ifile
1089 'spam-check-ifile 1089 #'spam-check-ifile
1090 'spam-ifile-register-ham-routine 1090 #'spam-ifile-register-ham-routine
1091 'spam-ifile-register-spam-routine 1091 #'spam-ifile-register-spam-routine
1092 'spam-ifile-unregister-ham-routine 1092 #'spam-ifile-unregister-ham-routine
1093 'spam-ifile-unregister-spam-routine) 1093 #'spam-ifile-unregister-spam-routine)
1094 1094
1095(spam-install-statistical-backend 'spam-use-spamoracle 1095(spam-install-statistical-backend 'spam-use-spamoracle
1096 'spam-check-spamoracle 1096 #'spam-check-spamoracle
1097 'spam-spamoracle-learn-ham 1097 #'spam-spamoracle-learn-ham
1098 'spam-spamoracle-learn-spam 1098 #'spam-spamoracle-learn-spam
1099 'spam-spamoracle-unlearn-ham 1099 #'spam-spamoracle-unlearn-ham
1100 'spam-spamoracle-unlearn-spam) 1100 #'spam-spamoracle-unlearn-spam)
1101 1101
1102(spam-install-statistical-backend 'spam-use-stat 1102(spam-install-statistical-backend 'spam-use-stat
1103 'spam-check-stat 1103 #'spam-check-stat
1104 'spam-stat-register-ham-routine 1104 #'spam-stat-register-ham-routine
1105 'spam-stat-register-spam-routine 1105 #'spam-stat-register-spam-routine
1106 'spam-stat-unregister-ham-routine 1106 #'spam-stat-unregister-ham-routine
1107 'spam-stat-unregister-spam-routine) 1107 #'spam-stat-unregister-spam-routine)
1108 1108
1109(spam-install-statistical-backend 'spam-use-spamassassin 1109(spam-install-statistical-backend 'spam-use-spamassassin
1110 'spam-check-spamassassin 1110 #'spam-check-spamassassin
1111 'spam-spamassassin-register-ham-routine 1111 #'spam-spamassassin-register-ham-routine
1112 'spam-spamassassin-register-spam-routine 1112 #'spam-spamassassin-register-spam-routine
1113 'spam-spamassassin-unregister-ham-routine 1113 #'spam-spamassassin-unregister-ham-routine
1114 'spam-spamassassin-unregister-spam-routine) 1114 #'spam-spamassassin-unregister-spam-routine)
1115 1115
1116(spam-install-statistical-backend 'spam-use-bogofilter 1116(spam-install-statistical-backend 'spam-use-bogofilter
1117 'spam-check-bogofilter 1117 #'spam-check-bogofilter
1118 'spam-bogofilter-register-ham-routine 1118 #'spam-bogofilter-register-ham-routine
1119 'spam-bogofilter-register-spam-routine 1119 #'spam-bogofilter-register-spam-routine
1120 'spam-bogofilter-unregister-ham-routine 1120 #'spam-bogofilter-unregister-ham-routine
1121 'spam-bogofilter-unregister-spam-routine) 1121 #'spam-bogofilter-unregister-spam-routine)
1122 1122
1123(spam-install-statistical-backend 'spam-use-bsfilter 1123(spam-install-statistical-backend 'spam-use-bsfilter
1124 'spam-check-bsfilter 1124 #'spam-check-bsfilter
1125 'spam-bsfilter-register-ham-routine 1125 #'spam-bsfilter-register-ham-routine
1126 'spam-bsfilter-register-spam-routine 1126 #'spam-bsfilter-register-spam-routine
1127 'spam-bsfilter-unregister-ham-routine 1127 #'spam-bsfilter-unregister-ham-routine
1128 'spam-bsfilter-unregister-spam-routine) 1128 #'spam-bsfilter-unregister-spam-routine)
1129 1129
1130(spam-install-statistical-backend 'spam-use-crm114 1130(spam-install-statistical-backend 'spam-use-crm114
1131 'spam-check-crm114 1131 #'spam-check-crm114
1132 'spam-crm114-register-ham-routine 1132 #'spam-crm114-register-ham-routine
1133 'spam-crm114-register-spam-routine 1133 #'spam-crm114-register-spam-routine
1134 'spam-crm114-unregister-ham-routine 1134 #'spam-crm114-unregister-ham-routine
1135 'spam-crm114-unregister-spam-routine) 1135 #'spam-crm114-unregister-spam-routine)
1136;;}}} 1136;;}}}
1137 1137
1138;;{{{ scoring and summary formatting 1138;;{{{ scoring and summary formatting
@@ -1709,7 +1709,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
1709 (if (or (null first-method) 1709 (if (or (null first-method)
1710 (equal first-method 'default)) 1710 (equal first-method 'default))
1711 (spam-split) 1711 (spam-split)
1712 (apply 'spam-split methods)))))) 1712 (apply #'spam-split methods))))))
1713 (if (equal split-return 'spam) 1713 (if (equal split-return 'spam)
1714 (gnus-summary-mark-article article gnus-spam-mark)) 1714 (gnus-summary-mark-article article gnus-spam-mark))
1715 1715
@@ -1981,7 +1981,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
1981 1981
1982(defun spam-reverse-ip-string (ip) 1982(defun spam-reverse-ip-string (ip)
1983 (when (stringp ip) 1983 (when (stringp ip)
1984 (mapconcat 'identity 1984 (mapconcat #'identity
1985 (nreverse (split-string ip "\\.")) 1985 (nreverse (split-string ip "\\."))
1986 "."))) 1986 ".")))
1987 1987
@@ -2139,7 +2139,7 @@ See `spam-ifile-database'."
2139 (let ((temp-buffer-name (buffer-name)) 2139 (let ((temp-buffer-name (buffer-name))
2140 (db-param (spam-get-ifile-database-parameter))) 2140 (db-param (spam-get-ifile-database-parameter)))
2141 (with-current-buffer article-buffer-name 2141 (with-current-buffer article-buffer-name
2142 (apply 'call-process-region 2142 (apply #'call-process-region
2143 (point-min) (point-max) spam-ifile-program 2143 (point-min) (point-max) spam-ifile-program
2144 nil temp-buffer-name nil "-c" 2144 nil temp-buffer-name nil "-c"
2145 (if db-param `(,db-param "-q") '("-q")))) 2145 (if db-param `(,db-param "-q") '("-q"))))
@@ -2167,7 +2167,7 @@ Uses `gnus-newsgroup-name' if category is nil (for ham registration)."
2167 (let ((article-string (spam-get-article-as-string article))) 2167 (let ((article-string (spam-get-article-as-string article)))
2168 (when (stringp article-string) 2168 (when (stringp article-string)
2169 (insert article-string)))) 2169 (insert article-string))))
2170 (apply 'call-process-region 2170 (apply #'call-process-region
2171 (point-min) (point-max) spam-ifile-program 2171 (point-min) (point-max) spam-ifile-program
2172 nil nil nil 2172 nil nil nil
2173 add-or-delete-option category 2173 add-or-delete-option category
@@ -2406,11 +2406,11 @@ With a non-nil REMOVE, remove the ADDRESSES."
2406;;{{{ Spam-report glue (gmane and resend reporting) 2406;;{{{ Spam-report glue (gmane and resend reporting)
2407(defun spam-report-gmane-register-routine (articles) 2407(defun spam-report-gmane-register-routine (articles)
2408 (when articles 2408 (when articles
2409 (apply 'spam-report-gmane-spam articles))) 2409 (apply #'spam-report-gmane-spam articles)))
2410 2410
2411(defun spam-report-gmane-unregister-routine (articles) 2411(defun spam-report-gmane-unregister-routine (articles)
2412 (when articles 2412 (when articles
2413 (apply 'spam-report-gmane-ham articles))) 2413 (apply #'spam-report-gmane-ham articles)))
2414 2414
2415(defun spam-report-resend-register-ham-routine (articles) 2415(defun spam-report-resend-register-ham-routine (articles)
2416 (spam-report-resend-register-routine articles t)) 2416 (spam-report-resend-register-routine articles t))
@@ -2474,7 +2474,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2474 (with-temp-buffer 2474 (with-temp-buffer
2475 (let ((temp-buffer-name (buffer-name))) 2475 (let ((temp-buffer-name (buffer-name)))
2476 (with-current-buffer article-buffer-name 2476 (with-current-buffer article-buffer-name
2477 (apply 'call-process-region 2477 (apply #'call-process-region
2478 (point-min) (point-max) 2478 (point-min) (point-max)
2479 spam-bogofilter-program 2479 spam-bogofilter-program
2480 nil temp-buffer-name nil 2480 nil temp-buffer-name nil
@@ -2502,7 +2502,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2502 (with-temp-buffer 2502 (with-temp-buffer
2503 (insert article-string) 2503 (insert article-string)
2504 2504
2505 (apply 'call-process-region 2505 (apply #'call-process-region
2506 (point-min) (point-max) 2506 (point-min) (point-max)
2507 spam-bogofilter-program 2507 spam-bogofilter-program
2508 nil nil nil switch 2508 nil nil nil switch
@@ -2532,7 +2532,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2532 (let ((temp-buffer-name (buffer-name))) 2532 (let ((temp-buffer-name (buffer-name)))
2533 (with-current-buffer article-buffer-name 2533 (with-current-buffer article-buffer-name
2534 (let ((status 2534 (let ((status
2535 (apply 'call-process-region 2535 (apply #'call-process-region
2536 (point-min) (point-max) 2536 (point-min) (point-max)
2537 spam-spamoracle-binary 2537 spam-spamoracle-binary
2538 nil temp-buffer-name nil 2538 nil temp-buffer-name nil
@@ -2559,7 +2559,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2559 "-spam" 2559 "-spam"
2560 "-good")) 2560 "-good"))
2561 (status 2561 (status
2562 (apply 'call-process-region 2562 (apply #'call-process-region
2563 (point-min) (point-max) 2563 (point-min) (point-max)
2564 spam-spamoracle-binary 2564 spam-spamoracle-binary
2565 nil temp-buffer-name nil 2565 nil temp-buffer-name nil
@@ -2607,7 +2607,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2607 (with-temp-buffer 2607 (with-temp-buffer
2608 (let ((temp-buffer-name (buffer-name))) 2608 (let ((temp-buffer-name (buffer-name)))
2609 (with-current-buffer article-buffer-name 2609 (with-current-buffer article-buffer-name
2610 (apply 'call-process-region 2610 (apply #'call-process-region
2611 (point-min) (point-max) spam-assassin-program 2611 (point-min) (point-max) spam-assassin-program
2612 nil temp-buffer-name nil spam-spamassassin-arguments)) 2612 nil temp-buffer-name nil spam-spamassassin-arguments))
2613 ;; check the return now (we're back in the temp buffer) 2613 ;; check the return now (we're back in the temp buffer)
@@ -2648,7 +2648,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2648 (insert article-string) 2648 (insert article-string)
2649 (insert "\n")))) 2649 (insert "\n"))))
2650 ;; call sa-learn on all messages at the same time 2650 ;; call sa-learn on all messages at the same time
2651 (apply 'call-process-region 2651 (apply #'call-process-region
2652 (point-min) (point-max) 2652 (point-min) (point-max)
2653 spam-sa-learn-program 2653 spam-sa-learn-program
2654 nil nil nil "--mbox" 2654 nil nil nil "--mbox"
@@ -2703,7 +2703,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2703 (with-temp-buffer 2703 (with-temp-buffer
2704 (let ((temp-buffer-name (buffer-name))) 2704 (let ((temp-buffer-name (buffer-name)))
2705 (with-current-buffer article-buffer-name 2705 (with-current-buffer article-buffer-name
2706 (apply 'call-process-region 2706 (apply #'call-process-region
2707 (point-min) (point-max) 2707 (point-min) (point-max)
2708 spam-bsfilter-program 2708 spam-bsfilter-program
2709 nil temp-buffer-name nil 2709 nil temp-buffer-name nil
@@ -2731,7 +2731,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2731 (when (stringp article-string) 2731 (when (stringp article-string)
2732 (with-temp-buffer 2732 (with-temp-buffer
2733 (insert article-string) 2733 (insert article-string)
2734 (apply 'call-process-region 2734 (apply #'call-process-region
2735 (point-min) (point-max) 2735 (point-min) (point-max)
2736 spam-bsfilter-program 2736 spam-bsfilter-program
2737 nil nil nil switch 2737 nil nil nil switch
@@ -2788,7 +2788,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2788 (with-temp-buffer 2788 (with-temp-buffer
2789 (let ((temp-buffer-name (buffer-name))) 2789 (let ((temp-buffer-name (buffer-name)))
2790 (with-current-buffer article-buffer-name 2790 (with-current-buffer article-buffer-name
2791 (apply 'call-process-region 2791 (apply #'call-process-region
2792 (point-min) (point-max) 2792 (point-min) (point-max)
2793 spam-crm114-program 2793 spam-crm114-program
2794 nil temp-buffer-name nil 2794 nil temp-buffer-name nil
@@ -2814,7 +2814,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
2814 (with-temp-buffer 2814 (with-temp-buffer
2815 (insert article-string) 2815 (insert article-string)
2816 2816
2817 (apply 'call-process-region 2817 (apply #'call-process-region
2818 (point-min) (point-max) 2818 (point-min) (point-max)
2819 spam-crm114-program 2819 spam-crm114-program
2820 nil nil nil 2820 nil nil nil
@@ -2859,13 +2859,13 @@ installed through `spam-necessary-extra-headers'."
2859 (push '((eq mark gnus-spam-mark) . spam) 2859 (push '((eq mark gnus-spam-mark) . spam)
2860 gnus-summary-highlight) 2860 gnus-summary-highlight)
2861 ;; Add hooks for loading and saving the spam stats 2861 ;; Add hooks for loading and saving the spam stats
2862 (add-hook 'gnus-save-newsrc-hook 'spam-maybe-spam-stat-save) 2862 (add-hook 'gnus-save-newsrc-hook #'spam-maybe-spam-stat-save)
2863 (add-hook 'gnus-get-top-new-news-hook 'spam-maybe-spam-stat-load) 2863 (add-hook 'gnus-get-top-new-news-hook #'spam-maybe-spam-stat-load)
2864 (add-hook 'gnus-startup-hook 'spam-maybe-spam-stat-load) 2864 (add-hook 'gnus-startup-hook #'spam-maybe-spam-stat-load)
2865 (add-hook 'gnus-summary-prepare-exit-hook 'spam-summary-prepare-exit) 2865 (add-hook 'gnus-summary-prepare-exit-hook #'spam-summary-prepare-exit)
2866 (add-hook 'gnus-summary-prepare-hook 'spam-summary-prepare) 2866 (add-hook 'gnus-summary-prepare-hook #'spam-summary-prepare)
2867 (add-hook 'gnus-get-new-news-hook 'spam-setup-widening) 2867 (add-hook 'gnus-get-new-news-hook #'spam-setup-widening)
2868 (add-hook 'gnus-summary-prepared-hook 'spam-find-spam) 2868 (add-hook 'gnus-summary-prepared-hook #'spam-find-spam)
2869 ;; Don't install things more than once. 2869 ;; Don't install things more than once.
2870 (setq spam-install-hooks nil))) 2870 (setq spam-install-hooks nil)))
2871 2871
@@ -2873,15 +2873,15 @@ installed through `spam-necessary-extra-headers'."
2873 "Uninstall the spam.el hooks." 2873 "Uninstall the spam.el hooks."
2874 (interactive) 2874 (interactive)
2875 (spam-teardown-widening) 2875 (spam-teardown-widening)
2876 (remove-hook 'gnus-save-newsrc-hook 'spam-maybe-spam-stat-save) 2876 (remove-hook 'gnus-save-newsrc-hook #'spam-maybe-spam-stat-save)
2877 (remove-hook 'gnus-get-top-new-news-hook 'spam-maybe-spam-stat-load) 2877 (remove-hook 'gnus-get-top-new-news-hook #'spam-maybe-spam-stat-load)
2878 (remove-hook 'gnus-startup-hook 'spam-maybe-spam-stat-load) 2878 (remove-hook 'gnus-startup-hook #'spam-maybe-spam-stat-load)
2879 (remove-hook 'gnus-summary-prepare-exit-hook 'spam-summary-prepare-exit) 2879 (remove-hook 'gnus-summary-prepare-exit-hook #'spam-summary-prepare-exit)
2880 (remove-hook 'gnus-summary-prepare-hook 'spam-summary-prepare) 2880 (remove-hook 'gnus-summary-prepare-hook #'spam-summary-prepare)
2881 (remove-hook 'gnus-get-new-news-hook 'spam-setup-widening) 2881 (remove-hook 'gnus-get-new-news-hook #'spam-setup-widening)
2882 (remove-hook 'gnus-summary-prepare-hook 'spam-find-spam)) 2882 (remove-hook 'gnus-summary-prepare-hook #'spam-find-spam))
2883 2883
2884(add-hook 'spam-unload-hook 'spam-unload-hook) 2884(add-hook 'spam-unload-hook #'spam-unload-hook)
2885 2885
2886;;}}} 2886;;}}}
2887 2887