Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc+news@uwo.ca>
Subject: Re: Like (display . all) but hide expirable messages
Date: Wed, 22 Aug 2001 02:40:37 -0400	[thread overview]
Message-ID: <87k7zwlhqy.fsf@uwo.ca> (raw)
In-Reply-To: <m3zo8yv8bf.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Fri, 17 Aug 2001 20:40:36 +0200")

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
>>> Ah.  (display . [not read expirable])
>>
>> That's a syntax.
>
> Which has now been implemented and documented.  (And even tested!)  In
> CVS in a few jiffies.

Excellent, that's great news.  Things work fine for me with

  (display . [not expire])

Here are some problems/suggestions, though.

1. The docs mention both expire and expirable, but only expire works
   for me.  Both should probably be permitted.

2. The docs should say this feature is implemented by limiting the
   summary buffer, and that this means that `/ w' can be used to
   reveal the hidden articles.

3. Would it be reasonable to have a command and keystroke that applies
   the group's (display . foo) setting to the summary buffer as it
   now stands?  For example, if while reading a group some of
   the articles become marked expirable, I sometimes want to
   hide them to get rid of clutter.

4. Searching the index for the word display doesn't turn up the
   Group Parameters node.

5. While in the group parameters editing screen (`G p'),
   `C-c C-i' doesn't take you to the Group Parameters node.

6. The info page includes three empty predicates:

     `read', `dormant', `', `', `', `expire', `reply', `killed',

7. I can't get (display . [and (not expire) (not read)]) or
   (display . [and (not expire) unread]) to work for me.  With
   the former I get prompted to input a Lisp Expression when I
   enter a group.  With the latter I get the following error when 
   entering a group:

Debugger entered--Lisp error: (void-function unread)
  unread()
  #[nil "ÀÁ!?…	\0Â ‡" [gnus-article-marked-p expire unread] 2]()
  funcall(#[nil "ÀÁ!?…	\0Â ‡" [gnus-article-marked-p expire unread] 2])
  (not (funcall gnus-newsgroup-display))
  (and gnus-newsgroup-display (not (eq gnus-newsgroup-display ...)) (not (funcall gnus-newsgroup-display)))
  (or (and (memq number gnus-newsgroup-dormant) (zerop children)) (and (or ... ...) (gnus-summary-article-ancient-p number) (zerop children)) (and (eq gnus-fetch-old-headers ...) (gnus-summary-article-ancient-p number)) (and (eq gnus-build-sparse-threads ...) (gnus-summary-article-sparse-p number) (zerop children)) (when (and gnus-summary-expunge-below ...) (incf gnus-newsgroup-expunged-tally) (when ... ... ...) t) (and gnus-newsgroup-display (not ...) (not ...)) (if (and gnus-use-nocem ...) (progn ... t)))
  (and (not (memq number gnus-newsgroup-marked)) (or (and ... ...) (and ... ... ...) (and ... ...) (and ... ... ...) (when ... ... ... t) (and gnus-newsgroup-display ... ...) (if ... ...)))
  (if (and (not ...) (or ... ... ... ... ... ... ...)) 0 (push number gnus-newsgroup-limit) 1)
  (let ((children ...) (number ...) score) (if (and ... ...) 0 (push number gnus-newsgroup-limit) 1))
  (progn (let (... ... score) (if ... 0 ... 1)))
  (if thread (progn (let ... ...)))
  (when thread (let (... ... score) (if ... 0 ... 1)))
  gnus-summary-limit-children(([9758 "SHARCNET at UWO" "Allan B MacIsaac <allanb@cmrg.apmaths.uwo.ca>" "Mon, 30 Jul 2001 10:38:44 -0400 (EDT)" "<Pine.LNX.4.10.10107301011230.9162-100000@cmrg.apmaths.uwo.ca>" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" 4444 42 "scratchy generic:9758" (...)]))
  mapcar(gnus-summary-limit-children (([9758 "SHARCNET at UWO" "Allan B MacIsaac <allanb@cmrg.apmaths.uwo.ca>" "Mon, 30 Jul 2001 10:38:44 -0400 (EDT)" "<Pine.LNX.4.10.10107301011230.9162-100000@cmrg.apmaths.uwo.ca>" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" 4444 42 "scratchy generic:9758" ...])))
  (apply (quote +) (mapcar (quote gnus-summary-limit-children) (cdr thread)))
  (if (cdr thread) (apply (quote +) (mapcar ... ...)) 0)
  (let ((children ...) (number ...) score) (if (and ... ...) 0 (push number gnus-newsgroup-limit) 1))
  (progn (let (... ... score) (if ... 0 ... 1)))
  (if thread (progn (let ... ...)))
  (when thread (let (... ... score) (if ... 0 ... 1)))
  gnus-summary-limit-children(([9757 "Re: SHARCNET Fellowships: Call for proposals" "Cindy Munro <cindy@uwo.ca>" "Mon, 30 Jul 2001 10:07:05 -0400 (EDT)" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" "<3B6067CD.4E37C10A@cmrg.apmaths.uwo.ca>" 4777 64 "scratchy generic:9757" (...)] ([9758 "SHARCNET at UWO" "Allan B MacIsaac <allanb@cmrg.apmaths.uwo.ca>" "Mon, 30 Jul 2001 10:38:44 -0400 (EDT)" "<Pine.LNX.4.10.10107301011230.9162-100000@cmrg.apmaths.uwo.ca>" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" 4444 42 "scratchy generic:9758" ...])))
  mapcar(gnus-summary-limit-children (([9757 "Re: SHARCNET Fellowships: Call for proposals" "Cindy Munro <cindy@uwo.ca>" "Mon, 30 Jul 2001 10:07:05 -0400 (EDT)" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" "<3B6067CD.4E37C10A@cmrg.apmaths.uwo.ca>" 4777 64 "scratchy generic:9757" ...] ([9758 "SHARCNET at UWO" "Allan B MacIsaac <allanb@cmrg.apmaths.uwo.ca>" "Mon, 30 Jul 2001 10:38:44 -0400 (EDT)" "<Pine.LNX.4.10.10107301011230.9162-100000@cmrg.apmaths.uwo.ca>" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" 4444 42 "scratchy generic:9758" ...]))))
  (apply (quote +) (mapcar (quote gnus-summary-limit-children) (cdr thread)))
  (if (cdr thread) (apply (quote +) (mapcar ... ...)) 0)
  (let ((children ...) (number ...) score) (if (and ... ...) 0 (push number gnus-newsgroup-limit) 1))
  (progn (let (... ... score) (if ... 0 ... 1)))
  (if thread (progn (let ... ...)))
  (when thread (let (... ... score) (if ... 0 ... 1)))
  gnus-summary-limit-children(([9710 "SHARCNET Fellowships: Call for proposals" "\"Peter H. Poole\" <poole@cmrg.apmaths.uwo.ca>" "Thu, 26 Jul 2001 14:56:13 -0400" "<3B6067CD.4E37C10A@cmrg.apmaths.uwo.ca>" "<382B7631.C041AD59@cmrg.apmaths.uwo.ca> <3B49C29F.D31A0D51@cmrg.apmaths.uwo.ca>" 168256 2309 "scratchy generic:9710" (...)] ([9757 "Re: SHARCNET Fellowships: Call for proposals" "Cindy Munro <cindy@uwo.ca>" "Mon, 30 Jul 2001 10:07:05 -0400 (EDT)" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" "<3B6067CD.4E37C10A@cmrg.apmaths.uwo.ca>" 4777 64 "scratchy generic:9757" ...] ([9758 "SHARCNET at UWO" "Allan B MacIsaac <allanb@cmrg.apmaths.uwo.ca>" "Mon, 30 Jul 2001 10:38:44 -0400 (EDT)" "<Pine.LNX.4.10.10107301011230.9162-100000@cmrg.apmaths.uwo.ca>" "<Pine.SOL.4.21.0107301003180.10716-100000@panther.uwo.ca>" 4444 42 "scratchy generic:9758" ...]))))
  (if (and gnus-thread-expunge-below (< ... gnus-thread-expunge-below)) (gnus-expunge-thread (pop nodes)) (setq thread (pop nodes)) (gnus-summary-limit-children thread))
  (while nodes (if (and gnus-thread-expunge-below ...) (gnus-expunge-thread ...) (setq thread ...) (gnus-summary-limit-children thread)))
  (let ((nodes ...) thread) (while nodes (if ... ... ... ...)))
  (if (car (symbol-value node)) nil (let (... thread) (while nodes ...)))
  (unless (car (symbol-value node)) (let (... thread) (while nodes ...)))
  (lambda (node) (unless (car ...) (let ... ...)))(<3B49C29F\.D31A0D51@cmrg\.apmaths\.uwo\.ca>)
  mapatoms((lambda (node) (unless (car ...) (let ... ...))) [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <3206878724608364@naggum\.net> <200108170928\.DAA14434@xxx\.lanl\.gov> 0 0 <0997629519\.0750506837@inbound\.canada\.com\.criticalpath\.net> 0 0 0 0 <Pine\.GSO\.4\.21\.0108151213470\.389-100000@Zathras\.Stanford\.EDU> 0 0 <5bbslmradh\.fsf@lister\.idonex\.se> 0 0 0 0 0 0 0 0 0 <vafsneojiah\.fsf@INBOX\.auto\.emacs\.pretesters\.tok\.lucy\.cs\.uni-dortmund\.de> 0 0 0 0 <15229\.29817\.637021\.918722@eps\.austin\.ibm\.com> 0 none 0 0 0 0 ...])
  (if (or gnus-inhibit-limiting (and ... ... ... ... ... ... ... ... ... ...)) nil (push gnus-newsgroup-limit gnus-newsgroup-limits) (setq gnus-newsgroup-limit nil) (mapatoms (lambda ... ...) gnus-newsgroup-dependencies) (when (and ... show-if-empty) (setq gnus-newsgroup-limit ...)) gnus-newsgroup-limit)
  gnus-summary-initial-limit(200)
  (let ((gnus-newsgroup-dormant nil)) (gnus-summary-initial-limit show-all))
  (if show-all (let (...) (gnus-summary-initial-limit show-all)) (gnus-summary-initial-limit show-all))
  (if gnus-show-threads (if show-all (let ... ...) (gnus-summary-initial-limit show-all)) (setq gnus-newsgroup-limit (mapcar ... gnus-newsgroup-headers)))
  (cond ((not new-group) (gnus-set-global-variables) (when kill-buffer ...) (gnus-configure-windows ... ...) (gnus-set-mode-line ...) (gnus-summary-position-point) (message "") t) ((null did-select) (when ... ... ...) (let ... ...) nil) ((eq did-select ...) (and ... ... ...) (when kill-buffer ...) (if ... ... ...) (signal ... nil)) (t (gnus-set-global-variables) (setq gnus-newsgroup-active ...) (gnus-run-hooks ...) (gnus-update-format-specifications nil ... ... ...) (gnus-update-summary-mark-positions) (when gnus-use-scoring ...) (when gnus-build-sparse-threads ...) (if gnus-show-threads ... ...) (unless no-display ...) (when gnus-use-trees ... ...) (when ... ...) (gnus-run-hooks ...) (if ... ... ... ... ... ... ... ... t)))
  (let* ((new-group ...) (quit-config ...) (did-select ...)) (cond (... ... ... ... ... ... ... t) (... ... ... nil) (... ... ... ... ...) (t ... ... ... ... ... ... ... ... ... ... ... ... ...)))
  gnus-summary-read-group-1("nnfolder:generic" 200 nil nil nil nil)
  (or (gnus-summary-read-group-1 group show-all no-article kill-buffer no-display select-articles) (setq show-all nil select-articles nil))
  (let ((gnus-auto-select-next nil)) (or (gnus-summary-read-group-1 group show-all no-article kill-buffer no-display select-articles) (setq show-all nil select-articles nil)))
  (setq result (let (...) (or ... ...)))
  (null (setq result (let ... ...)))
  (and group (null (setq result ...)) (eq gnus-auto-select-next (quote quietly)))
  (while (and group (null ...) (eq gnus-auto-select-next ...)) (set-buffer gnus-group-buffer) (when backward (gnus-group-prev-unread-group 2)) (if (not ...) (setq group ...) (setq group nil)))
  (let (result) (while (and group ... ...) (set-buffer gnus-group-buffer) (when backward ...) (if ... ... ...)) result)
  gnus-summary-read-group("nnfolder:generic" 200 nil nil nil nil nil)
  gnus-group-read-group(200 nil nil)
  gnus-topic-read-group(200)
  call-interactively(gnus-topic-read-group)

-- 
Dan Christensen
jdc+news@uwo.ca


  reply	other threads:[~2001-08-22  6:40 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-09 16:49 Kai Großjohann
2001-08-09 16:57 ` Jody Klymak
2001-08-09 20:38 ` Nuutti Kotivuori
2001-08-09 21:18 ` Leonard Stiles
2001-08-09 21:28   ` Paul Jarc
2001-08-17 16:56     ` Lars Magne Ingebrigtsen
2001-08-17 17:24       ` Kai Großjohann
2001-08-17 17:36         ` Lars Magne Ingebrigtsen
2001-08-09 22:41   ` Kai Großjohann
2001-08-17 16:48   ` Lars Magne Ingebrigtsen
2001-08-17 17:24     ` Kai Großjohann
2001-08-17 17:36       ` Lars Magne Ingebrigtsen
2001-08-17 18:40         ` Lars Magne Ingebrigtsen
2001-08-22  6:40           ` Dan Christensen [this message]
2001-08-23 18:00             ` Lars Magne Ingebrigtsen
2001-08-24  2:02               ` Dan Christensen
2001-08-24  4:43                 ` ShengHuo ZHU
2001-08-24 14:03                 ` Lars Magne Ingebrigtsen
2001-08-24 17:33                   ` Dan Christensen
2001-08-24 21:52                     ` Björn Torkelsson
2002-02-11  4:29               ` Dan Christensen
2002-02-13  3:27                 ` ShengHuo ZHU
2002-02-13 15:57                   ` Dan Christensen
2002-02-13 16:43                     ` ShengHuo ZHU
2002-02-13 22:30                       ` Dan Christensen
2002-02-13 22:48                         ` ShengHuo ZHU
2002-02-15 20:06                           ` Dan Christensen
2001-08-17 19:13     ` Leonard Stiles
2001-08-17 19:29       ` Lars Magne Ingebrigtsen
2001-08-14 21:28 ` Wes Hardaker
2001-08-15  2:07 ` Dan Christensen

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=87k7zwlhqy.fsf@uwo.ca \
    --to=jdc+news@uwo.ca \
    /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).