aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-14 17:07:48 +1100
committerLars Ingebrigtsen2016-02-14 17:07:48 +1100
commit66d9ef95c0f9407d2a6d26bcd7ed84a303294b53 (patch)
tree163a6dea8e393ae4856a155374c8829b4af08855
parent9de3de8cbf0e63de7e11d6f2051fc3ad891c613c (diff)
downloademacs-66d9ef95c0f9407d2a6d26bcd7ed84a303294b53.tar.gz
emacs-66d9ef95c0f9407d2a6d26bcd7ed84a303294b53.zip
Remove compat code for older Emacsen
* lisp/gnus/gnus-art.el (gnus-button-url-regexp): Remove XEmacs compat code. * lisp/gnus/gnus-sync.el (gnus-sync-json-alist-p): Remove unused compat function. (gnus-sync-json-plist-p): Ditto. * lisp/gnus/message.el (message-default-charset): Make obsolete. (message-info): Remove compat code. (message-setup-fill-variables): Remove kludge needed earlier to not overwrite `normal-auto-fill-function'. (message-split-line): Remove compat code. * lisp/gnus/mm-view.el (mm-display-inline-fontify): Remove compat code.
-rw-r--r--lisp/gnus/gnus-art.el38
-rw-r--r--lisp/gnus/gnus-int.el6
-rw-r--r--lisp/gnus/gnus-msg.el3
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/gnus/gnus-sync.el21
-rw-r--r--lisp/gnus/gnus-util.el2
-rw-r--r--lisp/gnus/mail-source.el1
-rw-r--r--lisp/gnus/message.el38
-rw-r--r--lisp/gnus/mm-view.el9
-rw-r--r--lisp/gnus/nnmail.el14
10 files changed, 41 insertions, 93 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index a2dc82e6ff7..c66ca535998 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -2283,8 +2283,6 @@ long lines if and only if arg is positive."
2283 (setq truncate-lines nil)) 2283 (setq truncate-lines nil))
2284 ((numberp arg) 2284 ((numberp arg)
2285 (setq truncate-lines t))) 2285 (setq truncate-lines t)))
2286 ;; In versions of Emacs 22 (CVS) before 2006-05-26,
2287 ;; `toggle-truncate-lines' needs an argument.
2288 (toggle-truncate-lines))) 2286 (toggle-truncate-lines)))
2289 2287
2290(defun gnus-article-treat-body-boundary () 2288(defun gnus-article-treat-body-boundary ()
@@ -4481,8 +4479,8 @@ commands:
4481 (make-local-variable 'gnus-article-ignored-charsets) 4479 (make-local-variable 'gnus-article-ignored-charsets)
4482 (set (make-local-variable 'bookmark-make-record-function) 4480 (set (make-local-variable 'bookmark-make-record-function)
4483 'gnus-summary-bookmark-make-record) 4481 'gnus-summary-bookmark-make-record)
4484 ;; Prevent Emacs 22 from displaying non-break space with `nobreak-space' 4482 ;; Prevent Emacs from displaying non-break space with
4485 ;; face. 4483 ;; `nobreak-space' face.
4486 (set (make-local-variable 'nobreak-char-display) nil) 4484 (set (make-local-variable 'nobreak-char-display) nil)
4487 ;; Enable `gnus-article-remove-images' to delete images shr.el renders. 4485 ;; Enable `gnus-article-remove-images' to delete images shr.el renders.
4488 (set (make-local-variable 'shr-put-image-function) 'gnus-shr-put-image) 4486 (set (make-local-variable 'shr-put-image-function) 'gnus-shr-put-image)
@@ -6567,7 +6565,7 @@ Argument LINES specifies lines to be scrolled up."
6567 6565
6568(defun gnus-article-beginning-of-window () 6566(defun gnus-article-beginning-of-window ()
6569 "Move point to the beginning of the window. 6567 "Move point to the beginning of the window.
6570In Emacs, the point is placed at the line number which `scroll-margin' 6568The point is placed at the line number which `scroll-margin'
6571specifies." 6569specifies."
6572 ;; There is an obscure bug in Emacs that makes it impossible to 6570 ;; There is an obscure bug in Emacs that makes it impossible to
6573 ;; scroll past big pictures in the article buffer. Try to fix 6571 ;; scroll past big pictures in the article buffer. Try to fix
@@ -6793,7 +6791,7 @@ not have a face in `gnus-article-boring-faces'."
6793(defun gnus-article-describe-key (key) 6791(defun gnus-article-describe-key (key)
6794 "Display documentation of the function invoked by KEY. 6792 "Display documentation of the function invoked by KEY.
6795KEY is a string or a vector." 6793KEY is a string or a vector."
6796 (interactive (list (let ((cursor-in-echo-area t)) ;; better for XEmacs. 6794 (interactive (list (let ((cursor-in-echo-area t))
6797 (read-key-sequence "Describe key: ")))) 6795 (read-key-sequence "Describe key: "))))
6798 (gnus-article-check-buffer) 6796 (gnus-article-check-buffer)
6799 (if (memq (key-binding key t) '(gnus-article-read-summary-keys 6797 (if (memq (key-binding key t) '(gnus-article-read-summary-keys
@@ -6814,7 +6812,7 @@ KEY is a string or a vector."
6814(defun gnus-article-describe-key-briefly (key &optional insert) 6812(defun gnus-article-describe-key-briefly (key &optional insert)
6815 "Display documentation of the function invoked by KEY. 6813 "Display documentation of the function invoked by KEY.
6816KEY is a string or a vector." 6814KEY is a string or a vector."
6817 (interactive (list (let ((cursor-in-echo-area t)) ;; better for XEmacs. 6815 (interactive (list (let ((cursor-in-echo-area t))
6818 (read-key-sequence "Describe key: ")) 6816 (read-key-sequence "Describe key: "))
6819 current-prefix-arg)) 6817 current-prefix-arg))
6820 (gnus-article-check-buffer) 6818 (gnus-article-check-buffer)
@@ -7355,21 +7353,17 @@ groups."
7355 "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|" 7353 "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|"
7356 "nntp\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)" 7354 "nntp\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)"
7357 "\\(//[-a-z0-9_.]+:[0-9]*\\)?" 7355 "\\(//[-a-z0-9_.]+:[0-9]*\\)?"
7358 (if (string-match "[[:digit:]]" "1") ;; Support POSIX? 7356 (let ((chars "-a-z0-9_=#$@~%&*+\\/[:word:]")
7359 (let ((chars "-a-z0-9_=#$@~%&*+\\/[:word:]") 7357 (punct "!?:;.,"))
7360 (punct "!?:;.,")) 7358 (concat
7361 (concat 7359 "\\(?:"
7362 "\\(?:" 7360 ;; Match paired parentheses, e.g. in Wikipedia URLs:
7363 ;; Match paired parentheses, e.g. in Wikipedia URLs: 7361 ;; http://thread.gmane.org/47B4E3B2.3050402@gmail.com
7364 ;; http://thread.gmane.org/47B4E3B2.3050402@gmail.com 7362 "[" chars punct "]+" "(" "[" chars punct "]+" "[" chars "]*)"
7365 "[" chars punct "]+" "(" "[" chars punct "]+" "[" chars "]*)" 7363 "\\(?:" "[" chars punct "]+" "[" chars "]" "\\)?"
7366 "\\(?:" "[" chars punct "]+" "[" chars "]" "\\)?" 7364 "\\|"
7367 "\\|" 7365 "[" chars punct "]+" "[" chars "]"
7368 "[" chars punct "]+" "[" chars "]" 7366 "\\)"))
7369 "\\)"))
7370 (concat ;; XEmacs 21.4 doesn't support POSIX.
7371 "\\([-a-z0-9_=!?#$@~%&*+\\/:;.,]\\|\\w\\)+"
7372 "\\([-a-z0-9_=#$@~%&*+\\/]\\|\\w\\)"))
7373 "\\)") 7367 "\\)")
7374 "Regular expression that matches URLs." 7368 "Regular expression that matches URLs."
7375 :version "24.4" 7369 :version "24.4"
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el
index 38cfa4409e0..93545ff39bc 100644
--- a/lisp/gnus/gnus-int.el
+++ b/lisp/gnus/gnus-int.el
@@ -777,8 +777,7 @@ If GROUP is nil, all groups on GNUS-COMMAND-METHOD are scanned."
777 (message-options-set-recipient) 777 (message-options-set-recipient)
778 (save-restriction 778 (save-restriction
779 (message-narrow-to-head) 779 (message-narrow-to-head)
780 (let ((mail-parse-charset message-default-charset)) 780 (mail-encode-encoded-word-buffer))
781 (mail-encode-encoded-word-buffer)))
782 (message-encode-message-body))) 781 (message-encode-message-body)))
783 (let ((gnus-command-method (or gnus-command-method 782 (let ((gnus-command-method (or gnus-command-method
784 (gnus-find-method-for-group group))) 783 (gnus-find-method-for-group group)))
@@ -800,8 +799,7 @@ If GROUP is nil, all groups on GNUS-COMMAND-METHOD are scanned."
800 (message-options-set-recipient) 799 (message-options-set-recipient)
801 (save-restriction 800 (save-restriction
802 (message-narrow-to-head) 801 (message-narrow-to-head)
803 (let ((mail-parse-charset message-default-charset)) 802 (mail-encode-encoded-word-buffer))
804 (mail-encode-encoded-word-buffer)))
805 (message-encode-message-body))) 803 (message-encode-message-body)))
806 (let* ((func (car (gnus-group-name-to-method group))) 804 (let* ((func (car (gnus-group-name-to-method group)))
807 (result (funcall (intern (format "%s-request-replace-article" func)) 805 (result (funcall (intern (format "%s-request-replace-article" func))
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 5859fba568d..8cabe01168b 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -1658,8 +1658,7 @@ this is a reply."
1658 (run-hooks 'gnus-gcc-post-body-encode-hook) 1658 (run-hooks 'gnus-gcc-post-body-encode-hook)
1659 (save-restriction 1659 (save-restriction
1660 (message-narrow-to-headers) 1660 (message-narrow-to-headers)
1661 (let* ((mail-parse-charset message-default-charset) 1661 (let* ((newsgroups-field (save-restriction
1662 (newsgroups-field (save-restriction
1663 (message-narrow-to-headers-or-head) 1662 (message-narrow-to-headers-or-head)
1664 (message-fetch-field "Newsgroups"))) 1663 (message-fetch-field "Newsgroups")))
1665 (followup-field (save-restriction 1664 (followup-field (save-restriction
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index e651c050feb..6b3add2cddf 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -2562,7 +2562,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2562 (easy-menu-define 2562 (easy-menu-define
2563 gnus-article-commands-menu gnus-article-mode-map "" 2563 gnus-article-commands-menu gnus-article-mode-map ""
2564 (cons "Commands" innards)) 2564 (cons "Commands" innards))
2565 ;; in Emacs, don't share menu. 2565 ;; Don't share the menu.
2566 (setq gnus-article-commands-menu 2566 (setq gnus-article-commands-menu
2567 (copy-keymap gnus-summary-article-menu)) 2567 (copy-keymap gnus-summary-article-menu))
2568 (define-key gnus-article-mode-map [menu-bar commands] 2568 (define-key gnus-article-mode-map [menu-bar commands]
diff --git a/lisp/gnus/gnus-sync.el b/lisp/gnus/gnus-sync.el
index cd8a753607a..249eb087b0b 100644
--- a/lisp/gnus/gnus-sync.el
+++ b/lisp/gnus/gnus-sync.el
@@ -201,27 +201,6 @@ KVDATA must be an alist."
201(defun gnus-sync-lesync-DELETE (url headers &optional data) 201(defun gnus-sync-lesync-DELETE (url headers &optional data)
202 (gnus-sync-lesync-call url "DELETE" headers data)) 202 (gnus-sync-lesync-call url "DELETE" headers data))
203 203
204;; this is not necessary with newer versions of json.el but 1.2 or older
205;; (which are in Emacs 24.1 and earlier) need it
206(defun gnus-sync-json-alist-p (list)
207 "Non-null if and only if LIST is an alist."
208 (while (consp list)
209 (setq list (if (consp (car list))
210 (cdr list)
211 'not-alist)))
212 (null list))
213
214;; this is not necessary with newer versions of json.el but 1.2 or older
215;; (which are in Emacs 24.1 and earlier) need it
216(defun gnus-sync-json-plist-p (list)
217 "Non-null if and only if LIST is a plist."
218 (while (consp list)
219 (setq list (if (and (keywordp (car list))
220 (consp (cdr list)))
221 (cddr list)
222 'not-plist)))
223 (null list))
224
225; (gnus-sync-lesync-setup "http://lesync.info:5984/tzz" "tzzadmin" "mypassword" "mysalt" t t) 204; (gnus-sync-lesync-setup "http://lesync.info:5984/tzz" "tzzadmin" "mypassword" "mysalt" t t)
226; (gnus-sync-lesync-setup "http://lesync.info:5984/tzz") 205; (gnus-sync-lesync-setup "http://lesync.info:5984/tzz")
227 206
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index d9ea50b5bb8..7d3c7089225 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1503,7 +1503,7 @@ CHOICE is a list of the choice char and help message at IDX."
1503 (setq tchar nil) 1503 (setq tchar nil)
1504 (setq buf (get-buffer-create "*Gnus Help*")) 1504 (setq buf (get-buffer-create "*Gnus Help*"))
1505 (pop-to-buffer buf) 1505 (pop-to-buffer buf)
1506 (fundamental-mode) ; for Emacs 20.4+ 1506 (fundamental-mode)
1507 (buffer-disable-undo) 1507 (buffer-disable-undo)
1508 (erase-buffer) 1508 (erase-buffer)
1509 (insert prompt ":\n\n") 1509 (insert prompt ":\n\n")
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index 21398d18684..ebc9c97b656 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -995,7 +995,6 @@ This only works when `display-time' is enabled."
995 (if on 995 (if on
996 (progn 996 (progn
997 (require 'time) 997 (require 'time)
998 ;; display-time-mail-function is an Emacs feature.
999 (setq display-time-mail-function #'mail-source-new-mail-p) 998 (setq display-time-mail-function #'mail-source-new-mail-p)
1000 ;; Set up the main timer. 999 ;; Set up the main timer.
1001 (setq mail-source-report-new-mail-timer 1000 (setq mail-source-report-new-mail-timer
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 51b6c93783d..cc147b3a8f3 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -49,7 +49,7 @@
49(require 'mm-util) 49(require 'mm-util)
50(require 'rfc2047) 50(require 'rfc2047)
51 51
52(autoload 'mailclient-send-it "mailclient") ;; Emacs 22 or contrib/ 52(autoload 'mailclient-send-it "mailclient")
53 53
54(defvar gnus-message-group-art) 54(defvar gnus-message-group-art)
55(defvar gnus-list-identifiers) ; gnus-sum is required where necessary 55(defvar gnus-list-identifiers) ; gnus-sum is required where necessary
@@ -1342,14 +1342,16 @@ If nil, Message won't auto-save."
1342 :link '(custom-manual "(message)Various Message Variables") 1342 :link '(custom-manual "(message)Various Message Variables")
1343 :type '(choice directory (const :tag "Don't auto-save" nil))) 1343 :type '(choice directory (const :tag "Don't auto-save" nil)))
1344 1344
1345(defcustom message-default-charset 1345(defcustom message-default-charset (and (not (mm-multibyte-p)) 'iso-8859-1)
1346 (and (not (mm-multibyte-p)) 'iso-8859-1)
1347 "Default charset used in non-MULE Emacsen. 1346 "Default charset used in non-MULE Emacsen.
1348If nil, you might be asked to input the charset." 1347If nil, you might be asked to input the charset."
1349 :version "21.1" 1348 :version "21.1"
1350 :group 'message 1349 :group 'message
1351 :link '(custom-manual "(message)Various Message Variables") 1350 :link '(custom-manual "(message)Various Message Variables")
1352 :type 'symbol) 1351 :type 'symbol)
1352(make-obsolete-variable
1353 'message-default-charset
1354 "The default charset comes from the language environment" "25.2")
1353 1355
1354(defcustom message-dont-reply-to-names mail-dont-reply-to-names 1356(defcustom message-dont-reply-to-names mail-dont-reply-to-names
1355 "Addresses to prune when doing wide replies. 1357 "Addresses to prune when doing wide replies.
@@ -2625,8 +2627,7 @@ PGG manual, depending on the value of `mml2015-use'."
2625 (require 'mml2015) 2627 (require 'mml2015)
2626 mml2015-use) 2628 mml2015-use)
2627 ((eq arg 4) 'emacs-mime) 2629 ((eq arg 4) 'emacs-mime)
2628 ;; `booleanp' only available in Emacs 22+ 2630 ((and (not (booleanp arg))
2629 ((and (not (memq arg '(nil t)))
2630 (symbolp arg)) 2631 (symbolp arg))
2631 arg) 2632 arg)
2632 (t 2633 (t
@@ -2873,8 +2874,6 @@ See also `message-forbidden-properties'."
2873 (inhibit-read-only t)) 2874 (inhibit-read-only t))
2874 (remove-text-properties begin end message-forbidden-properties)))) 2875 (remove-text-properties begin end message-forbidden-properties))))
2875 2876
2876(autoload 'ecomplete-setup "ecomplete") ;; for Emacs <23.
2877
2878(defvar message-smileys '(":-)" ":)" 2877(defvar message-smileys '(":-)" ":)"
2879 ":-(" ":(" 2878 ":-(" ":("
2880 ";-)" ";)") 2879 ";-)" ";)")
@@ -3032,20 +3031,8 @@ M-RET `message-newline-and-reformat' (break the line and reformat)."
3032 (setq adaptive-fill-first-line-regexp 3031 (setq adaptive-fill-first-line-regexp
3033 (concat quote-prefix-regexp "\\|" 3032 (concat quote-prefix-regexp "\\|"
3034 adaptive-fill-first-line-regexp))) 3033 adaptive-fill-first-line-regexp)))
3035 (make-local-variable 'auto-fill-inhibit-regexp) 3034 (setq-default auto-fill-inhibit-regexp nil)
3036 ;;(setq auto-fill-inhibit-regexp "^[A-Z][^: \n\t]+:") 3035 (setq-default normal-auto-fill-function 'message-do-auto-fill))
3037 (setq auto-fill-inhibit-regexp nil)
3038 (make-local-variable 'normal-auto-fill-function)
3039 (setq normal-auto-fill-function 'message-do-auto-fill)
3040 ;; KLUDGE: auto fill might already be turned on in `text-mode-hook'.
3041 ;; In that case, ensure that it uses the right function. The real
3042 ;; solution would be not to use `define-derived-mode', and run
3043 ;; `text-mode-hook' ourself at the end of the mode.
3044 ;; -- Per Abrahamsen <abraham@dina.kvl.dk> Date: 2001-10-19.
3045 ;; This kludge is unneeded in Emacs>=21 since define-derived-mode is
3046 ;; now careful to run parent hooks after the body. --Stef
3047 (when auto-fill-function
3048 (setq auto-fill-function normal-auto-fill-function)))
3049 3036
3050 3037
3051 3038
@@ -6118,10 +6105,7 @@ Headers already prepared in the buffer are not modified."
6118 "Split current line, moving portion beyond point vertically down. 6105 "Split current line, moving portion beyond point vertically down.
6119If the current line has `message-yank-prefix', insert it on the new line." 6106If the current line has `message-yank-prefix', insert it on the new line."
6120 (interactive "*") 6107 (interactive "*")
6121 (condition-case nil 6108 (split-line message-yank-prefix))
6122 (split-line message-yank-prefix) ;; Emacs 22.1+ supports arg.
6123 (error
6124 (split-line))))
6125 6109
6126(defun message-insert-header (header value) 6110(defun message-insert-header (header value)
6127 (insert (capitalize (symbol-name header)) 6111 (insert (capitalize (symbol-name header))
@@ -7239,7 +7223,7 @@ header line with the old Message-ID."
7239 (cond ((save-window-excursion 7223 (cond ((save-window-excursion
7240 (with-output-to-temp-buffer "*Directory*" 7224 (with-output-to-temp-buffer "*Directory*"
7241 (with-current-buffer standard-output 7225 (with-current-buffer standard-output
7242 (fundamental-mode)) ; for Emacs 20.4+ 7226 (fundamental-mode))
7243 (buffer-disable-undo standard-output) 7227 (buffer-disable-undo standard-output)
7244 (let ((default-directory "/")) 7228 (let ((default-directory "/"))
7245 (call-process 7229 (call-process
@@ -8031,7 +8015,7 @@ The following arguments may contain lists of values."
8031 (save-window-excursion 8015 (save-window-excursion
8032 (with-output-to-temp-buffer " *MESSAGE information message*" 8016 (with-output-to-temp-buffer " *MESSAGE information message*"
8033 (with-current-buffer " *MESSAGE information message*" 8017 (with-current-buffer " *MESSAGE information message*"
8034 (fundamental-mode) ; for Emacs 20.4+ 8018 (fundamental-mode)
8035 (mapc 'princ text) 8019 (mapc 'princ text)
8036 (goto-char (point-min)))) 8020 (goto-char (point-min))))
8037 (funcall ask question)) 8021 (funcall ask question))
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index 31c8cceda71..c62ea958da6 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -458,11 +458,7 @@ If MODE is not set, try to find mode automatically."
458 (unless charset 458 (unless charset
459 (setq coding-system (mm-find-buffer-file-coding-system))) 459 (setq coding-system (mm-find-buffer-file-coding-system)))
460 (setq text (buffer-string)))) 460 (setq text (buffer-string))))
461 ;; XEmacs @#$@ version of font-lock refuses to fully turn itself 461 (with-temp-buffer
462 ;; on for buffers whose name begins with " ". That's why we use
463 ;; `with-current-buffer'/`generate-new-buffer' rather than
464 ;; `with-temp-buffer'.
465 (with-current-buffer (generate-new-buffer "*fontification*")
466 (buffer-disable-undo) 462 (buffer-disable-undo)
467 (mm-enable-multibyte) 463 (mm-enable-multibyte)
468 (insert (cond ((eq charset 'gnus-decoded) 464 (insert (cond ((eq charset 'gnus-decoded)
@@ -500,8 +496,7 @@ If MODE is not set, try to find mode automatically."
500 (setq text (buffer-string)) 496 (setq text (buffer-string))
501 ;; Set buffer unmodified to avoid confirmation when killing the 497 ;; Set buffer unmodified to avoid confirmation when killing the
502 ;; buffer. 498 ;; buffer.
503 (set-buffer-modified-p nil) 499 (set-buffer-modified-p nil))
504 (kill-buffer (current-buffer)))
505 (mm-insert-inline handle text))) 500 (mm-insert-inline handle text)))
506 501
507;; Shouldn't these functions check whether the user even wants to use 502;; Shouldn't these functions check whether the user even wants to use
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index 52a9db20b84..1af04fd3543 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -2018,13 +2018,13 @@ If TIME is nil, then return the cutoff time for oldness instead."
2018 (error "No current split history")) 2018 (error "No current split history"))
2019 (with-output-to-temp-buffer "*nnmail split history*" 2019 (with-output-to-temp-buffer "*nnmail split history*"
2020 (with-current-buffer standard-output 2020 (with-current-buffer standard-output
2021 (fundamental-mode)) ; for Emacs 20.4+ 2021 (fundamental-mode))
2022 (dolist (elem nnmail-split-history) 2022 (dolist (elem nnmail-split-history)
2023 (princ (mapconcat (lambda (ga) 2023 (princ (mapconcat (lambda (ga)
2024 (concat (car ga) ":" (int-to-string (cdr ga)))) 2024 (concat (car ga) ":" (int-to-string (cdr ga))))
2025 elem 2025 elem
2026 ", ")) 2026 ", "))
2027 (princ "\n")))) 2027 (princ "\n"))))
2028 2028
2029(defun nnmail-purge-split-history (group) 2029(defun nnmail-purge-split-history (group)
2030 "Remove all instances of GROUP from `nnmail-split-history'." 2030 "Remove all instances of GROUP from `nnmail-split-history'."