From: Eric Marsden <emarsden@laas.fr>
Subject: patch for "/ *"
Date: Thu, 11 Oct 2001 14:43:48 +0200 [thread overview]
Message-ID: <wzid73u4a9n.fsf@laas.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 252 bytes --]
Hi,
Most of the limiting commands work by filtering out articles from the
summary buffer. The "/ *" (limit-to-cache) command is different, since
it is aliased to "Y c" (insert-cached-articles). The attached patch
makes "/ *" as I would expect it to.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: make \"/ *\" operate like other limiting commands --]
[-- Type: text/x-patch, Size: 706 bytes --]
--- gnus-cache.el.orig Thu Oct 11 11:29:32 2001
+++ gnus-cache.el Thu Oct 11 11:31:45 2001
@@ -370,8 +370,16 @@
(while cached
(gnus-summary-goto-subject (pop cached) t))))
-(defalias 'gnus-summary-limit-include-cached
- 'gnus-summary-insert-cached-articles)
+(defun gnus-summary-limit-include-cached ()
+ "Limit the summary buffer to articles that are cached."
+ (interactive)
+ (let ((cached (sort (copy-sequence gnus-newsgroup-cached) '>))
+ (gnus-verbose (max 6 gnus-verbose)))
+ (if cached
+ (progn
+ (gnus-summary-limit cached)
+ (gnus-summary-position-point))
+ (gnus-message 3 "No cached articles for this group"))))
;;; Internal functions.
[-- Attachment #3: Type: text/plain, Size: 79 bytes --]
--
Eric Marsden <URL:http://www.laas.fr/~emarsden/>
next reply other threads:[~2001-10-11 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-11 12:43 Eric Marsden [this message]
2001-10-12 15:41 ` Simon Josefsson
2001-10-12 18:00 ` Eric Marsden
2001-10-12 18:08 ` Simon Josefsson
2001-10-12 18:53 ` ShengHuo ZHU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wzid73u4a9n.fsf@laas.fr \
--to=emarsden@laas.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).