Gnus development mailing list
 help / color / mirror / Atom feed
From: <jari.aalto@poboxes.com>
Subject: Re: # # # A P
Date: 22 Dec 1997 10:42:23 +0200	[thread overview]
Message-ID: <tbg1nln500.fsf@pegasus.tele.nokia.fi> (raw)
In-Reply-To: Michael R Cook's message of "21 Dec 1997 16:35:50 -0500"

 97-12-21 Michael R Cook <mcook@cognex.com> list.ding
| >>>>> "LBR" == Lars Balker Rasmussen <lbr@image.dk> writes:
|
| If someone could give us a quick tutorial on how to convert a
| typical #-oblivious function to be #-aware, we could send
| patches, rather than just asking Lars to do the work.

The framework goes something like this, this is excerpt from my TinyGnus.el
package. Notice that I reset some hooks in #-processing functions.

jari

(put 'tign-summary-map-articles-macro 'lisp-indent-function 0)
(defmacro tign-summary-map-articles-macro (&rest body)
  "Map through marked articles in Summary buffer.
The variable `nbr' has the current article number. Use command
 (return) to stop the loop."
  (`
   (let* ((articles (gnus-summary-work-articles nil))
          gnus-article-display-hook     ;Do not run this
          gnus-article-prepare-hook
          gnus-select-article-hook
          gnus-article-mode-hook
          gnus-visual-mark-article-hook
          )
     ;; (gnus-summary-save-process-mark)
     (dolist (nbr articles)
       (,@ body)
       ))))


    (tign-summary-map-articles-macro
      (gnus-summary-select-article 'all nil 'pseudo nbr)
      ...Do action...
      )


  reply	other threads:[~1997-12-22  8:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-20 20:29 Michael R Cook
1997-12-20 23:13 ` Lars Balker Rasmussen
1997-12-21 11:58   ` Lars Balker Rasmussen
1998-01-04  9:28     ` Lars Magne Ingebrigtsen
1997-12-21 21:35   ` Michael R Cook
1997-12-22  8:42     ` jari.aalto [this message]
1997-12-24 19:54       ` Michael R Cook
1997-12-22 14:49   ` Justin Sheehy

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=tbg1nln500.fsf@pegasus.tele.nokia.fi \
    --to=jari.aalto@poboxes.com \
    --cc=jari.aalto@ntc.nokia.com \
    /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).