Gnus development mailing list
 help / color / mirror / Atom feed
* patch for "/ *"
@ 2001-10-11 12:43 Eric Marsden
  2001-10-12 15:41 ` Simon Josefsson
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Marsden @ 2001-10-11 12:43 UTC (permalink / 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/>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-10-12 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-11 12:43 patch for "/ *" Eric Marsden
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

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).