diff options
| author | Katsumi Yamaoka | 2015-07-15 23:06:57 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2015-07-15 23:06:57 +0000 |
| commit | f90fe8e76fd3ee8115db8b2ddc7b820267bf1bf9 (patch) | |
| tree | 6bab16318b154893731e139aad6cb031f5e0fc3d | |
| parent | c40ea1328bb33abaec14f1fc92ac2349b5ee2715 (diff) | |
| download | emacs-f90fe8e76fd3ee8115db8b2ddc7b820267bf1bf9.tar.gz emacs-f90fe8e76fd3ee8115db8b2ddc7b820267bf1bf9.zip | |
* lisp/gnus/nnimap.el: Fix my last bogus change
Reinstall Stefan Monnier's change that was made in
<83d824bc4041332f338ad7e5e830f443535aa300>.
| -rw-r--r-- | lisp/gnus/nnimap.el | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 70480ad04ae..161a6b49ea7 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -182,7 +182,7 @@ textual parts.") | |||
| 182 | params) | 182 | params) |
| 183 | (format "%s" (nreverse params)))) | 183 | (format "%s" (nreverse params)))) |
| 184 | 184 | ||
| 185 | (deffoo nnimap-retrieve-headers (articles &optional group server fetch-old) | 185 | (deffoo nnimap-retrieve-headers (articles &optional group server _fetch-old) |
| 186 | (when group | 186 | (when group |
| 187 | (setq group (nnimap-decode-gnus-group group))) | 187 | (setq group (nnimap-decode-gnus-group group))) |
| 188 | (with-current-buffer nntp-server-buffer | 188 | (with-current-buffer nntp-server-buffer |
| @@ -331,6 +331,8 @@ textual parts.") | |||
| 331 | (push (current-buffer) nnimap-process-buffers) | 331 | (push (current-buffer) nnimap-process-buffers) |
| 332 | (current-buffer))) | 332 | (current-buffer))) |
| 333 | 333 | ||
| 334 | (defvar auth-source-creation-prompts) | ||
| 335 | |||
| 334 | (defun nnimap-credentials (address ports user) | 336 | (defun nnimap-credentials (address ports user) |
| 335 | (let* ((auth-source-creation-prompts | 337 | (let* ((auth-source-creation-prompts |
| 336 | '((user . "IMAP user at %h: ") | 338 | '((user . "IMAP user at %h: ") |
| @@ -586,7 +588,7 @@ textual parts.") | |||
| 586 | (gnus-buffer-live-p nntp-server-buffer) | 588 | (gnus-buffer-live-p nntp-server-buffer) |
| 587 | (nnimap-find-connection nntp-server-buffer))) | 589 | (nnimap-find-connection nntp-server-buffer))) |
| 588 | 590 | ||
| 589 | (deffoo nnimap-status-message (&optional server) | 591 | (deffoo nnimap-status-message (&optional _server) |
| 590 | nnimap-status-string) | 592 | nnimap-status-string) |
| 591 | 593 | ||
| 592 | (deffoo nnimap-request-article (article &optional group server to-buffer) | 594 | (deffoo nnimap-request-article (article &optional group server to-buffer) |
| @@ -859,13 +861,13 @@ textual parts.") | |||
| 859 | "211 %d %d %d %S\n" (1+ (- high low)) low high group)) | 861 | "211 %d %d %d %S\n" (1+ (- high low)) low high group)) |
| 860 | t)))) | 862 | t)))) |
| 861 | 863 | ||
| 862 | (deffoo nnimap-request-create-group (group &optional server args) | 864 | (deffoo nnimap-request-create-group (group &optional server _args) |
| 863 | (setq group (nnimap-decode-gnus-group group)) | 865 | (setq group (nnimap-decode-gnus-group group)) |
| 864 | (when (nnimap-change-group nil server) | 866 | (when (nnimap-change-group nil server) |
| 865 | (with-current-buffer (nnimap-buffer) | 867 | (with-current-buffer (nnimap-buffer) |
| 866 | (car (nnimap-command "CREATE %S" (utf7-encode group t)))))) | 868 | (car (nnimap-command "CREATE %S" (utf7-encode group t)))))) |
| 867 | 869 | ||
| 868 | (deffoo nnimap-request-delete-group (group &optional force server) | 870 | (deffoo nnimap-request-delete-group (group &optional _force server) |
| 869 | (setq group (nnimap-decode-gnus-group group)) | 871 | (setq group (nnimap-decode-gnus-group group)) |
| 870 | (when (nnimap-change-group nil server) | 872 | (when (nnimap-change-group nil server) |
| 871 | (with-current-buffer (nnimap-buffer) | 873 | (with-current-buffer (nnimap-buffer) |
| @@ -910,11 +912,11 @@ textual parts.") | |||
| 910 | articles))) | 912 | articles))) |
| 911 | (nreverse articles))) | 913 | (nreverse articles))) |
| 912 | 914 | ||
| 913 | (deffoo nnimap-close-group (group &optional server) | 915 | (deffoo nnimap-close-group (_group &optional _server) |
| 914 | t) | 916 | t) |
| 915 | 917 | ||
| 916 | (deffoo nnimap-request-move-article (article group server accept-form | 918 | (deffoo nnimap-request-move-article (article group server accept-form |
| 917 | &optional last internal-move-group) | 919 | &optional _last internal-move-group) |
| 918 | (setq group (nnimap-decode-gnus-group group)) | 920 | (setq group (nnimap-decode-gnus-group group)) |
| 919 | (when internal-move-group | 921 | (when internal-move-group |
| 920 | (setq internal-move-group (nnimap-decode-gnus-group internal-move-group))) | 922 | (setq internal-move-group (nnimap-decode-gnus-group internal-move-group))) |
| @@ -1145,7 +1147,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1145 | (when sequence | 1147 | (when sequence |
| 1146 | (nnimap-wait-for-response sequence)))))) | 1148 | (nnimap-wait-for-response sequence)))))) |
| 1147 | 1149 | ||
| 1148 | (deffoo nnimap-request-accept-article (group &optional server last) | 1150 | (deffoo nnimap-request-accept-article (group &optional server _last) |
| 1149 | (unless group | 1151 | (unless group |
| 1150 | ;; We're respooling. Find out where mail splitting would place | 1152 | ;; We're respooling. Find out where mail splitting would place |
| 1151 | ;; this article. | 1153 | ;; this article. |
| @@ -1263,7 +1265,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1263 | (goto-char (point-min)) | 1265 | (goto-char (point-min)) |
| 1264 | (while (search-forward "* LIST " nil t) | 1266 | (while (search-forward "* LIST " nil t) |
| 1265 | (let ((flags (read (current-buffer))) | 1267 | (let ((flags (read (current-buffer))) |
| 1266 | (separator (read (current-buffer))) | 1268 | (_separator (read (current-buffer))) |
| 1267 | (group (buffer-substring-no-properties | 1269 | (group (buffer-substring-no-properties |
| 1268 | (progn (skip-chars-forward " \"") | 1270 | (progn (skip-chars-forward " \"") |
| 1269 | (point)) | 1271 | (point)) |
| @@ -1273,7 +1275,8 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1273 | (unless (member '%NoSelect flags) | 1275 | (unless (member '%NoSelect flags) |
| 1274 | (push (utf7-decode (if (stringp group) | 1276 | (push (utf7-decode (if (stringp group) |
| 1275 | group | 1277 | group |
| 1276 | (format "%s" group)) t) | 1278 | (format "%s" group)) |
| 1279 | t) | ||
| 1277 | groups)))) | 1280 | groups)))) |
| 1278 | (nreverse groups))) | 1281 | (nreverse groups))) |
| 1279 | 1282 | ||
| @@ -1333,7 +1336,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1333 | (or highest exists))))))))) | 1336 | (or highest exists))))))))) |
| 1334 | t))))) | 1337 | t))))) |
| 1335 | 1338 | ||
| 1336 | (deffoo nnimap-request-newgroups (date &optional server) | 1339 | (deffoo nnimap-request-newgroups (_date &optional server) |
| 1337 | (when (nnimap-change-group nil server) | 1340 | (when (nnimap-change-group nil server) |
| 1338 | (with-current-buffer nntp-server-buffer | 1341 | (with-current-buffer nntp-server-buffer |
| 1339 | (erase-buffer) | 1342 | (erase-buffer) |
| @@ -1352,7 +1355,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1352 | (setf (nnimap-group nnimap-object) nil) | 1355 | (setf (nnimap-group nnimap-object) nil) |
| 1353 | (setf (nnimap-initial-resync nnimap-object) 0) | 1356 | (setf (nnimap-initial-resync nnimap-object) 0) |
| 1354 | (let ((qresyncp (nnimap-capability "QRESYNC")) | 1357 | (let ((qresyncp (nnimap-capability "QRESYNC")) |
| 1355 | params groups sequences active uidvalidity modseq group | 1358 | params sequences active uidvalidity modseq group |
| 1356 | unexist) | 1359 | unexist) |
| 1357 | ;; Go through the infos and gather the data needed to know | 1360 | ;; Go through the infos and gather the data needed to know |
| 1358 | ;; what and how to request the data. | 1361 | ;; what and how to request the data. |
| @@ -1666,7 +1669,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1666 | (push (list group info active) nnimap-current-infos)))) | 1669 | (push (list group info active) nnimap-current-infos)))) |
| 1667 | 1670 | ||
| 1668 | (defun nnimap-flags-to-marks (groups) | 1671 | (defun nnimap-flags-to-marks (groups) |
| 1669 | (let (data group totalp uidnext articles start-article mark permanent-flags | 1672 | (let (data group uidnext articles start-article mark permanent-flags |
| 1670 | uidvalidity vanished highestmodseq) | 1673 | uidvalidity vanished highestmodseq) |
| 1671 | (dolist (elem groups) | 1674 | (dolist (elem groups) |
| 1672 | (setq group (car elem) | 1675 | (setq group (car elem) |
| @@ -1757,7 +1760,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1757 | (setq start (point)) | 1760 | (setq start (point)) |
| 1758 | (goto-char end)) | 1761 | (goto-char end)) |
| 1759 | (while (re-search-forward "^\\* [0-9]+ FETCH " start t) | 1762 | (while (re-search-forward "^\\* [0-9]+ FETCH " start t) |
| 1760 | (let ((p (point))) | 1763 | (progn |
| 1761 | (setq elems (read (current-buffer))) | 1764 | (setq elems (read (current-buffer))) |
| 1762 | (push (cons (cadr (memq 'UID elems)) | 1765 | (push (cons (cadr (memq 'UID elems)) |
| 1763 | (cadr (memq 'FLAGS elems))) | 1766 | (cadr (memq 'FLAGS elems))) |
| @@ -1775,7 +1778,7 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1775 | (defun nnimap-find-process-buffer (buffer) | 1778 | (defun nnimap-find-process-buffer (buffer) |
| 1776 | (cadr (assoc buffer nnimap-connection-alist))) | 1779 | (cadr (assoc buffer nnimap-connection-alist))) |
| 1777 | 1780 | ||
| 1778 | (deffoo nnimap-request-post (&optional server) | 1781 | (deffoo nnimap-request-post (&optional _server) |
| 1779 | (setq nnimap-status-string "Read-only server") | 1782 | (setq nnimap-status-string "Read-only server") |
| 1780 | nil) | 1783 | nil) |
| 1781 | 1784 | ||
| @@ -2177,10 +2180,10 @@ Return the server's response to the SELECT or EXAMINE command." | |||
| 2177 | (forward-char (1+ bytes)) | 2180 | (forward-char (1+ bytes)) |
| 2178 | (delete-region (line-beginning-position) (line-end-position))))))) | 2181 | (delete-region (line-beginning-position) (line-end-position))))))) |
| 2179 | 2182 | ||
| 2180 | (defun nnimap-dummy-active-number (group &optional server) | 2183 | (defun nnimap-dummy-active-number (_group &optional _server) |
| 2181 | 1) | 2184 | 1) |
| 2182 | 2185 | ||
| 2183 | (defun nnimap-save-mail-spec (group-art &optional server full-nov) | 2186 | (defun nnimap-save-mail-spec (group-art &optional _server _full-nov) |
| 2184 | (let (article) | 2187 | (let (article) |
| 2185 | (goto-char (point-min)) | 2188 | (goto-char (point-min)) |
| 2186 | (if (not (re-search-forward "X-nnimap-article: \\([0-9]+\\)" nil t)) | 2189 | (if (not (re-search-forward "X-nnimap-article: \\([0-9]+\\)" nil t)) |