From: Bill White <billw@wolfram.com>
Cc: ding@gnus.org
Subject: Re: continue automatically despite y/n prompt?
Date: 22 Jun 2001 08:19:28 -0500 [thread overview]
Message-ID: <ruo66do1wkf.fsf@g.wolfram.com> (raw)
In-Reply-To: <868zilptog.fsf@hel.bp.aventail.com> (wmperry@gnu.org's message of "21 Jun 2001 13:35:43 -0500")
On Thu Jun 21 2001 at 13:35, wmperry@gnu.org (William M. Perry) said:
> Bill White <billw@wolfram.com> writes:
>
>> When I'm out of the office for the day I like to do this:
>>
>> (gnus-demon-add-handler 'gnus-demon-scan-mail 5 1)
>>
>> which automatically retrieves email from various pop accounts,
>> which are set up like this:
>
> What about something like:
>
> (defun ignore-prompts-scan-mail ()
> (let ((orig-ynp (symbol-function 'y-or-n-p)))
> (unwind-protect
> (progn
> (fset 'y-or-n-p (lambda (&rest args) t))
> (gnus-demon-scan-mail))
> (fset 'y-or-n-p orig-ynp))))
>
> And use that as your handler?
Well that looks cool - I'll give it a try over the weekend.
Thanks!
bw
--
Bill White Office: 5E-Z15
Documentation Programmer Phone: 217-398-0700 x 234
Wolfram Research Fax: 217-398-0747
http://members.wri.com/billw nunc scripsi totum da mihi potum
prev parent reply other threads:[~2001-06-22 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-21 16:55 Bill White
2001-06-21 18:35 ` William M. Perry
2001-06-22 13:19 ` Bill White [this message]
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=ruo66do1wkf.fsf@g.wolfram.com \
--to=billw@wolfram.com \
--cc=ding@gnus.org \
/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).