info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fetch an article from another package


From: Leo
Subject: Fetch an article from another package
Date: Sun, 25 Mar 2007 10:25:51 +0100
User-agent: No Gnus v0.6, Emacs/22.0.95.6 (2007-03-18), Fedora 6 gnu/linux

Hi all,

Org¹ mode uses the following function to open a Gnus link. However,
the downside it has when entering a large group is that Gnus will
prompt for how many articles to read. I'd like this function to just
get the article with minimal user interaction. It seems by changing
(gnus-group-read-group 0 nil group) to (gnus-group-read-group 1 nil
group) can solve this issue.

I am wondering is this the recommended way? Any comments?

,----
| (defun org-follow-gnus-link (&optional group article)
|   "Follow a Gnus link to GROUP and ARTICLE."
|   (require 'gnus)
|   (funcall (cdr (assq 'gnus org-link-frame-setup)))
|   (if gnus-other-frame-object (select-frame gnus-other-frame-object))
|   (cond ((and group article)
|        (gnus-group-read-group 0 nil group)
|        (gnus-summary-goto-article (string-to-number article) nil t))
|       (group (gnus-group-jump-to-group group))))
`----

Footnotes: 
¹  http://staff.science.uva.nl/~dominik/Tools/org/
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]