diff options
| author | Gnus developers | 2010-11-21 22:46:16 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-21 22:46:16 +0000 |
| commit | 59e75882626e69dfe0db3578558a012a4e8227a2 (patch) | |
| tree | fe3ee7f7d875fefafe996baff6ac3f249543002f | |
| parent | d74cba8fb800c343abae3fa57364a14c8d84f3d8 (diff) | |
| download | emacs-59e75882626e69dfe0db3578558a012a4e8227a2.tar.gz emacs-59e75882626e69dfe0db3578558a012a4e8227a2.zip | |
Merge changes made in Gnus trunk.
nnir.el: Fix typo in comments.
(nnir-run-imap): Simplify code. No need to reverse artlist.
(nnir-run-gmane): Use nnir-tmp-buffer for web results.
gnus-srvr.el (gnus-server-show-server): New command and keystroke.
nnimap.el (nnimap-get-capabilities): Refactor out.
(nnimap-open-connection): Re-request capabilities after STARTTLS.
gnus.texi (Server Commands): Document gnus-server-show-server.
| -rw-r--r-- | doc/misc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 5 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/gnus/gnus-srvr.el | 14 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 19 | ||||
| -rw-r--r-- | lisp/gnus/nnir.el | 11 |
6 files changed, 53 insertions, 13 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index d94044d5b80..38671f1410c 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-11-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus.texi (Server Commands): Document gnus-server-show-server. | ||
| 4 | |||
| 1 | 2010-11-20 Michael Albinus <michael.albinus@gmx.de> | 5 | 2010-11-20 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | Sync with Tramp 2.2.0. | 7 | Sync with Tramp 2.2.0. |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 5ce214a6912..ad9be300a1d 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -13840,6 +13840,11 @@ Add a new server (@code{gnus-server-add-server}). | |||
| 13840 | @findex gnus-server-edit-server | 13840 | @findex gnus-server-edit-server |
| 13841 | Edit a server (@code{gnus-server-edit-server}). | 13841 | Edit a server (@code{gnus-server-edit-server}). |
| 13842 | 13842 | ||
| 13843 | @item S | ||
| 13844 | @kindex S (Server) | ||
| 13845 | @findex gnus-server-show-server | ||
| 13846 | Show the definition of a server (@code{gnus-server-show-server}). | ||
| 13847 | |||
| 13843 | @item SPACE | 13848 | @item SPACE |
| 13844 | @kindex SPACE (Server) | 13849 | @kindex SPACE (Server) |
| 13845 | @findex gnus-server-read-server | 13850 | @findex gnus-server-read-server |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 73a4a746b0c..365e49bf367 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2010-11-21 Andrew Cohen <cohen@andy.bu.edu> | ||
| 2 | |||
| 3 | * nnir.el: Fix typo in comments. | ||
| 4 | (nnir-run-imap): Simplify code. No need to reverse artlist. | ||
| 5 | (nnir-run-gmane): Use nnir-tmp-buffer for web results. | ||
| 6 | |||
| 7 | 2010-11-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 8 | |||
| 9 | * gnus-srvr.el (gnus-server-show-server): New command and keystroke. | ||
| 10 | |||
| 11 | * nnimap.el (nnimap-get-capabilities): Refactor out. | ||
| 12 | (nnimap-open-connection): Re-request capabilities after STARTTLS. | ||
| 13 | |||
| 1 | 2010-11-21 Ralf Angeli <angeli@caeruleus.net> | 14 | 2010-11-21 Ralf Angeli <angeli@caeruleus.net> |
| 2 | 15 | ||
| 3 | * mm-uu.el (mm-uu-type-alist): Prevent spurious empty line from | 16 | * mm-uu.el (mm-uu-type-alist): Prevent spurious empty line from |
diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el index ae773657d24..19fd5fe6636 100644 --- a/lisp/gnus/gnus-srvr.el +++ b/lisp/gnus/gnus-srvr.el | |||
| @@ -115,6 +115,7 @@ If nil, a faster, but more primitive, buffer is used instead." | |||
| 115 | ["Kill" gnus-server-kill-server t] | 115 | ["Kill" gnus-server-kill-server t] |
| 116 | ["Yank" gnus-server-yank-server t] | 116 | ["Yank" gnus-server-yank-server t] |
| 117 | ["Copy" gnus-server-copy-server t] | 117 | ["Copy" gnus-server-copy-server t] |
| 118 | ["Show" gnus-server-show-server t] | ||
| 118 | ["Edit" gnus-server-edit-server t] | 119 | ["Edit" gnus-server-edit-server t] |
| 119 | ["Regenerate" gnus-server-regenerate-server t] | 120 | ["Regenerate" gnus-server-regenerate-server t] |
| 120 | ["Compact" gnus-server-compact-server t] | 121 | ["Compact" gnus-server-compact-server t] |
| @@ -152,6 +153,7 @@ If nil, a faster, but more primitive, buffer is used instead." | |||
| 152 | "c" gnus-server-copy-server | 153 | "c" gnus-server-copy-server |
| 153 | "a" gnus-server-add-server | 154 | "a" gnus-server-add-server |
| 154 | "e" gnus-server-edit-server | 155 | "e" gnus-server-edit-server |
| 156 | "S" gnus-server-show-server | ||
| 155 | "s" gnus-server-scan-server | 157 | "s" gnus-server-scan-server |
| 156 | 158 | ||
| 157 | "O" gnus-server-open-server | 159 | "O" gnus-server-open-server |
| @@ -609,6 +611,18 @@ The following commands are available: | |||
| 609 | (gnus-server-position-point)) | 611 | (gnus-server-position-point)) |
| 610 | 'edit-server))) | 612 | 'edit-server))) |
| 611 | 613 | ||
| 614 | (defun gnus-server-show-server (server) | ||
| 615 | "Show the definition of the server on the current line." | ||
| 616 | (interactive (list (gnus-server-server-name))) | ||
| 617 | (unless server | ||
| 618 | (error "No server on current line")) | ||
| 619 | (let ((info (gnus-server-to-method server))) | ||
| 620 | (gnus-edit-form | ||
| 621 | info "Showing the server." | ||
| 622 | `(lambda (form) | ||
| 623 | (gnus-server-position-point)) | ||
| 624 | 'edit-server))) | ||
| 625 | |||
| 612 | (defun gnus-server-scan-server (server) | 626 | (defun gnus-server-scan-server (server) |
| 613 | "Request a scan from the current server." | 627 | "Request a scan from the current server." |
| 614 | (interactive (list (gnus-server-server-name))) | 628 | (interactive (list (gnus-server-server-name))) |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index af58ce2468d..f6315a5aab7 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -375,12 +375,7 @@ textual parts.") | |||
| 375 | (setf (nnimap-greeting nnimap-object) | 375 | (setf (nnimap-greeting nnimap-object) |
| 376 | (buffer-substring (line-beginning-position) | 376 | (buffer-substring (line-beginning-position) |
| 377 | (line-end-position))) | 377 | (line-end-position))) |
| 378 | ;; Store the capabilities. | 378 | (nnimap-get-capabilities) |
| 379 | (setf (nnimap-capabilities nnimap-object) | ||
| 380 | (mapcar | ||
| 381 | #'upcase | ||
| 382 | (nnimap-find-parameter | ||
| 383 | "CAPABILITY" (cdr (nnimap-command "CAPABILITY"))))) | ||
| 384 | (when nnimap-server-port | 379 | (when nnimap-server-port |
| 385 | (push (format "%s" nnimap-server-port) ports)) | 380 | (push (format "%s" nnimap-server-port) ports)) |
| 386 | ;; If this is a STARTTLS-capable server, then sever the | 381 | ;; If this is a STARTTLS-capable server, then sever the |
| @@ -391,7 +386,10 @@ textual parts.") | |||
| 391 | (eq nnimap-stream 'starttls)) | 386 | (eq nnimap-stream 'starttls)) |
| 392 | (fboundp 'open-gnutls-stream)) | 387 | (fboundp 'open-gnutls-stream)) |
| 393 | (nnimap-command "STARTTLS") | 388 | (nnimap-command "STARTTLS") |
| 394 | (gnutls-negotiate (nnimap-process nnimap-object) nil)) | 389 | (gnutls-negotiate (nnimap-process nnimap-object) nil) |
| 390 | ;; Get the capabilities again -- they may have changed | ||
| 391 | ;; after doing STARTTLS. | ||
| 392 | (nnimap-get-capabilities)) | ||
| 395 | ((and (eq nnimap-stream 'network) | 393 | ((and (eq nnimap-stream 'network) |
| 396 | (nnimap-capability "STARTTLS")) | 394 | (nnimap-capability "STARTTLS")) |
| 397 | (let ((nnimap-stream 'starttls)) | 395 | (let ((nnimap-stream 'starttls)) |
| @@ -447,6 +445,13 @@ textual parts.") | |||
| 447 | (nnimap-command "ENABLE QRESYNC")) | 445 | (nnimap-command "ENABLE QRESYNC")) |
| 448 | (nnimap-process nnimap-object)))))))) | 446 | (nnimap-process nnimap-object)))))))) |
| 449 | 447 | ||
| 448 | (defun nnimap-get-capabilities () | ||
| 449 | (setf (nnimap-capabilities nnimap-object) | ||
| 450 | (mapcar | ||
| 451 | #'upcase | ||
| 452 | (nnimap-find-parameter | ||
| 453 | "CAPABILITY" (cdr (nnimap-command "CAPABILITY")))))) | ||
| 454 | |||
| 450 | (defun nnimap-quote-specials (string) | 455 | (defun nnimap-quote-specials (string) |
| 451 | (with-temp-buffer | 456 | (with-temp-buffer |
| 452 | (insert string) | 457 | (insert string) |
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index 1983a0a5cbd..e5ba3c60620 100644 --- a/lisp/gnus/nnir.el +++ b/lisp/gnus/nnir.el | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | ;; Retrieval Status Value (score). | 41 | ;; Retrieval Status Value (score). |
| 42 | 42 | ||
| 43 | ;; When looking at the retrieval result (in the Summary buffer) you | 43 | ;; When looking at the retrieval result (in the Summary buffer) you |
| 44 | ;; can type `A W' (aka M-x gnus-warp-article RET) on an article. You | 44 | ;; can type `A W' (aka M-x gnus-warp-to-article RET) on an article. You |
| 45 | ;; will be warped into the group this article came from. Typing `A W' | 45 | ;; will be warped into the group this article came from. Typing `A W' |
| 46 | ;; (aka M-x gnus-summary-refer-thread RET) will warp to the group and | 46 | ;; (aka M-x gnus-summary-refer-thread RET) will warp to the group and |
| 47 | ;; also show the thread this article is part of. | 47 | ;; also show the thread this article is part of. |
| @@ -682,9 +682,8 @@ details on the language and supported extensions" | |||
| 682 | (apply | 682 | (apply |
| 683 | 'vconcat | 683 | 'vconcat |
| 684 | (mapcar | 684 | (mapcar |
| 685 | (lambda (x) | 685 | (lambda (group) |
| 686 | (let ((group x) | 686 | (let (artlist) |
| 687 | artlist) | ||
| 688 | (condition-case () | 687 | (condition-case () |
| 689 | (when (nnimap-possibly-change-group | 688 | (when (nnimap-possibly-change-group |
| 690 | (gnus-group-short-name group) server) | 689 | (gnus-group-short-name group) server) |
| @@ -706,7 +705,7 @@ details on the language and supported extensions" | |||
| 706 | (message "Searching %s... %d matches" group arts))) | 705 | (message "Searching %s... %d matches" group arts))) |
| 707 | (message "Searching %s...done" group)) | 706 | (message "Searching %s...done" group)) |
| 708 | (quit nil)) | 707 | (quit nil)) |
| 709 | (reverse artlist))) | 708 | artlist)) |
| 710 | groups))))) | 709 | groups))))) |
| 711 | 710 | ||
| 712 | (defun nnir-imap-make-query (criteria qstring) | 711 | (defun nnir-imap-make-query (criteria qstring) |
| @@ -1316,7 +1315,7 @@ Tested with Namazu 2.0.6 on a GNU/Linux system." | |||
| 1316 | (gnus-inhibit-demon t) | 1315 | (gnus-inhibit-demon t) |
| 1317 | artlist) | 1316 | artlist) |
| 1318 | (require 'mm-url) | 1317 | (require 'mm-url) |
| 1319 | (with-current-buffer nntp-server-buffer | 1318 | (with-current-buffer (get-buffer-create nnir-tmp-buffer) |
| 1320 | (erase-buffer) | 1319 | (erase-buffer) |
| 1321 | (mm-url-insert | 1320 | (mm-url-insert |
| 1322 | (concat | 1321 | (concat |