diff options
| author | Glenn Morris | 2008-02-27 09:19:28 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-02-27 09:19:28 +0000 |
| commit | be021c015f9c56f67a1f399f8105f5a5a0306554 (patch) | |
| tree | f52205bf75d9322746804d51057f3ea03278ad60 | |
| parent | e80c716461624ed8e22b8254fa0f16a19a3ae49e (diff) | |
| download | emacs-be021c015f9c56f67a1f399f8105f5a5a0306554.tar.gz emacs-be021c015f9c56f67a1f399f8105f5a5a0306554.zip | |
(nnmairix-request-group): Bind nnmairix-fast and nnmairix-group around
nnmairix-request-group-with-article-number-correction call.
(nnmairix-fast, nnmairix-group): New, less general names, for free
variables passed from nnmairix-request-group to
nnmairix-request-group-with-article-number-correction. Declare.
(nnmairix-request-group-with-article-number-correction):
Use nnmairix-fast, nnmairix-group rather than fast, group.
| -rw-r--r-- | lisp/gnus/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/gnus/nnmairix.el | 16 |
2 files changed, 28 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 798064a35d7..d7f16a7c610 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,6 +1,21 @@ | |||
| 1 | 2008-02-27 Glenn Morris <rgm@gnu.org> | 1 | 2008-02-27 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * nnmairix.el: Change defcustom :version from 23.0 to 23.1. | 3 | * nnmairix.el: Change defcustom :version from 23.0 to 23.1. |
| 4 | (nnmairix-group-regexp, nnmairix-valid-backends): Convert from free | ||
| 5 | variables to defconsts. Convert comments to doc-strings. | ||
| 6 | (nnmairix-last-server, nnmairix-current-server): Convert from free | ||
| 7 | variables to defvars. Convert comments to doc-strings. | ||
| 8 | (gnus-registry-fetch-group): Autoload. | ||
| 9 | (nnmairix-replace-group-and-numbers): Use mapc rather than mapcar. | ||
| 10 | (nnmairix-widget-get-values, nnmairix-widget-make-query-from-widgets) | ||
| 11 | (nnmairix-widget-build-editable-fields): Use car cddr rather than caddr. | ||
| 12 | (nnmairix-request-group): Bind nnmairix-fast and nnmairix-group around | ||
| 13 | nnmairix-request-group-with-article-number-correction call. | ||
| 14 | (nnmairix-fast, nnmairix-group): New, less general names, for free | ||
| 15 | variables passed from nnmairix-request-group to | ||
| 16 | nnmairix-request-group-with-article-number-correction. Declare. | ||
| 17 | (nnmairix-request-group-with-article-number-correction): | ||
| 18 | Use nnmairix-fast, nnmairix-group rather than fast, group. | ||
| 4 | 19 | ||
| 5 | 2008-02-26 David Engster <dengste@eml.cc> | 20 | 2008-02-26 David Engster <dengste@eml.cc> |
| 6 | 21 | ||
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el index aa635b2d99c..27f8fa035d7 100644 --- a/lisp/gnus/nnmairix.el +++ b/lisp/gnus/nnmairix.el | |||
| @@ -434,7 +434,10 @@ Other backends might or might not work.") | |||
| 434 | "request-scan" folder nnmairix-backend-server) | 434 | "request-scan" folder nnmairix-backend-server) |
| 435 | (if fast | 435 | (if fast |
| 436 | t | 436 | t |
| 437 | (nnmairix-request-group-with-article-number-correction folder qualgroup))) | 437 | (let ((nnmairix-fast fast) |
| 438 | (nnmairix-group group)) | ||
| 439 | (nnmairix-request-group-with-article-number-correction | ||
| 440 | folder qualgroup)))) | ||
| 438 | ((and (= rval 1) | 441 | ((and (= rval 1) |
| 439 | (save-excursion (set-buffer nnmairix-mairix-output-buffer) | 442 | (save-excursion (set-buffer nnmairix-mairix-output-buffer) |
| 440 | (goto-char (point-min)) | 443 | (goto-char (point-min)) |
| @@ -975,11 +978,17 @@ search in raw mode." | |||
| 975 | 978 | ||
| 976 | ;;; ==== Helper functions | 979 | ;;; ==== Helper functions |
| 977 | 980 | ||
| 981 | ;; Set locally in nnmairix-request-group, which is the only caller of | ||
| 982 | ;; this function. | ||
| 983 | (defvar nnmairix-fast) | ||
| 984 | (defvar nnmairix-group) | ||
| 985 | |||
| 978 | (defun nnmairix-request-group-with-article-number-correction (folder qualgroup) | 986 | (defun nnmairix-request-group-with-article-number-correction (folder qualgroup) |
| 979 | "Request FOLDER on backend for nnmairix QUALGROUP and article number correction." | 987 | "Request FOLDER on backend for nnmairix QUALGROUP and article number correction." |
| 980 | (save-excursion | 988 | (save-excursion |
| 989 | ;; FIXME nnmairix-request-group only calls this when fast is nil (?). | ||
| 981 | (nnmairix-call-backend | 990 | (nnmairix-call-backend |
| 982 | "request-group" folder nnmairix-backend-server fast) | 991 | "request-group" folder nnmairix-backend-server nnmairix-fast) |
| 983 | (set-buffer nnmairix-mairix-output-buffer) | 992 | (set-buffer nnmairix-mairix-output-buffer) |
| 984 | (goto-char (point-min)) | 993 | (goto-char (point-min)) |
| 985 | (re-search-forward "^Matched.*messages") | 994 | (re-search-forward "^Matched.*messages") |
| @@ -1011,7 +1020,8 @@ search in raw mode." | |||
| 1011 | (gnus-group-set-parameter | 1020 | (gnus-group-set-parameter |
| 1012 | qualgroup 'numcorr (list nil 0 high)))) | 1021 | qualgroup 'numcorr (list nil 0 high)))) |
| 1013 | (erase-buffer) | 1022 | (erase-buffer) |
| 1014 | (insert (format "%d %d %d %d %s" status total low high group)) | 1023 | (insert (format "%d %d %d %d %s" status total low high |
| 1024 | nnmairix-group)) | ||
| 1015 | t) | 1025 | t) |
| 1016 | (progn | 1026 | (progn |
| 1017 | (nnheader-report | 1027 | (nnheader-report |