diff options
| author | Dave Abrahams | 2013-08-05 14:15:37 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-08-05 14:15:37 +0000 |
| commit | b27a1bd53ac62bad378cbafcfb594ac37357bbc6 (patch) | |
| tree | d6ce8bfa1f8a695d3b4b876e5ec8ab3c8ce0fde3 | |
| parent | 57fedd9fe118489c8dfa3a4d3baee1b9a7a6fad0 (diff) | |
| download | emacs-b27a1bd53ac62bad378cbafcfb594ac37357bbc6.tar.gz emacs-b27a1bd53ac62bad378cbafcfb594ac37357bbc6.zip | |
gnus-int.el (gnus-warp-to-article): Allow warping in all groups so that we can create nndoc groups that excerpt other groups
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-int.el | 22 |
2 files changed, 16 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2164fd96b46..2ae70791c16 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-08-05 Dave Abrahams <dave@boostpro.com> | ||
| 2 | |||
| 3 | * gnus-int.el (gnus-warp-to-article): Allow warping in all groups so | ||
| 4 | that we can create nndoc groups that excerpt other groups. | ||
| 5 | |||
| 1 | 2013-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2013-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * gnus-delay.el (gnus-delay-article): Fix typo. | 8 | * gnus-delay.el (gnus-delay-article): Fix typo. |
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el index 6aa874f0347..f0cf0daed01 100644 --- a/lisp/gnus/gnus-int.el +++ b/lisp/gnus/gnus-int.el | |||
| @@ -582,18 +582,18 @@ This is the string that Gnus uses to identify the group." | |||
| 582 | (gnus-group-method group))) | 582 | (gnus-group-method group))) |
| 583 | 583 | ||
| 584 | (defun gnus-warp-to-article () | 584 | (defun gnus-warp-to-article () |
| 585 | "Jump from an article in a virtual group to the article in its real group. | 585 | "Look up the current article in the group where it originated. |
| 586 | Does nothing in a real group." | 586 | This command only makes sense for groups shows articles gathered |
| 587 | from other groups -- for instance, search results and the like." | ||
| 587 | (interactive) | 588 | (interactive) |
| 588 | (when (gnus-virtual-group-p gnus-newsgroup-name) | 589 | (let ((gnus-command-method |
| 589 | (let ((gnus-command-method | 590 | (gnus-find-method-for-group gnus-newsgroup-name))) |
| 590 | (gnus-find-method-for-group gnus-newsgroup-name))) | 591 | (or |
| 591 | (or | 592 | (when (gnus-check-backend-function |
| 592 | (when (gnus-check-backend-function | 593 | 'warp-to-article (car gnus-command-method)) |
| 593 | 'warp-to-article (car gnus-command-method)) | 594 | (funcall (gnus-get-function gnus-command-method 'warp-to-article))) |
| 594 | (funcall (gnus-get-function gnus-command-method 'warp-to-article))) | 595 | (and (bound-and-true-p gnus-registry-enabled) |
| 595 | (and (bound-and-true-p gnus-registry-enabled) | 596 | (gnus-try-warping-via-registry))))) |
| 596 | (gnus-try-warping-via-registry)))))) | ||
| 597 | 597 | ||
| 598 | (defun gnus-request-head (article group) | 598 | (defun gnus-request-head (article group) |
| 599 | "Request the head of ARTICLE in GROUP." | 599 | "Request the head of ARTICLE in GROUP." |