Gnus development mailing list
 help / color / mirror / Atom feed
* Process-marking all unread articles
@ 1999-07-17 17:29 Hrvoje Niksic
  1999-07-17 22:50 ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Hrvoje Niksic @ 1999-07-17 17:29 UTC (permalink / raw)


I have a group with a bunch of ticked articles.  I'd like to create a
(keyboard) macro that tics all the new unread articles in the group.
That's not hard in itself -- just process-mark the unread articles,
then press `M-& !'.

However, I don't know how to do the "process-mark the unread articles"
bit.  I know I can process-mark and tick *all* the articles with
`M P b M-& !', but I'd like to avoid that because it would be quite
slow in a group with several hundred articles.

Any idea how to iterate over unread articles?


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

* Re: Process-marking all unread articles
  1999-07-17 17:29 Process-marking all unread articles Hrvoje Niksic
@ 1999-07-17 22:50 ` Kai Großjohann
  1999-07-18 20:12   ` Hrvoje Niksic
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 1999-07-17 22:50 UTC (permalink / raw)


Does it work to narrow the buffer to the articles marked with SPC
first?

/ m SPC RET

kai
-- 
Life is hard and then you die.


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

* Re: Process-marking all unread articles
  1999-07-17 22:50 ` Kai Großjohann
@ 1999-07-18 20:12   ` Hrvoje Niksic
  1999-07-19  0:57     ` Harry Putnam
  1999-08-27 19:56     ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Hrvoje Niksic @ 1999-07-18 20:12 UTC (permalink / raw)


Kai Gro^[-Aß^[-Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:

> Does it work to narrow the buffer to the articles marked with SPC
> first?
> 
> / m SPC RET

This helps, thanks.  Now I can do the required operation with
something like `/m SPC RET M P b M-& !' optionally followed by `/w' to 
pop the process mark set.

But now I've gotten all cocky and would like to make the thing be a
Lisp function rather than a keyboard macro.  In that case `/m SPC RET' 
is replaced with a simple (gnus-summary-limit-to-marks " "), and `M P
b' with (gnus-uu-mark-buffer).  However, I don't know how to emulate
M-& followed by a command.

Is there a way to do what M-& does, but from Lisp, i.e. iterate
through process-marked articles in a way?


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

* Re: Process-marking all unread articles
  1999-07-18 20:12   ` Hrvoje Niksic
@ 1999-07-19  0:57     ` Harry Putnam
  1999-08-27 19:56     ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Harry Putnam @ 1999-07-19  0:57 UTC (permalink / raw)


Hrvoje Niksic <hniksic@srce.hr> writes:

> Kai Gro^[-Aß^[-Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:
> 
> > Does it work to narrow the buffer to the articles marked with SPC
> > first?
> > 
> > / m SPC RET
> 
> This helps, thanks.  Now I can do the required operation with
> something like `/m SPC RET M P b M-& !' optionally followed by `/w' to 
> pop the process mark set.
> 
> But now I've gotten all cocky and would like to make the thing be a
> Lisp function rather than a keyboard macro.  In that case `/m SPC RET' 
> is replaced with a simple (gnus-summary-limit-to-marks " "), and `M P
> b' with (gnus-uu-mark-buffer).  However, I don't know how to emulate
> M-& followed by a command.
> 
> Is there a way to do what M-& does, but from Lisp, i.e. iterate
> through process-marked articles in a way?

But you've forgotten to use Kai's patented `C-u 1000 !'  : )


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

* Re: Process-marking all unread articles
  1999-07-18 20:12   ` Hrvoje Niksic
  1999-07-19  0:57     ` Harry Putnam
@ 1999-08-27 19:56     ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-08-27 19:56 UTC (permalink / raw)


Hrvoje Niksic <hniksic@srce.hr> writes:

> Is there a way to do what M-& does, but from Lisp, i.e. iterate
> through process-marked articles in a way?

The `gnus-summary-iterate' macro iterates over the process/prefixed
articles and executes a form:

(gnus-summary-iterate arg
  (stuff)
  (more stuff))

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

end of thread, other threads:[~1999-08-27 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-17 17:29 Process-marking all unread articles Hrvoje Niksic
1999-07-17 22:50 ` Kai Großjohann
1999-07-18 20:12   ` Hrvoje Niksic
1999-07-19  0:57     ` Harry Putnam
1999-08-27 19:56     ` Lars Magne Ingebrigtsen

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