Gnus development mailing list
 help / color / mirror / Atom feed
From: Steve Youngs <sryoungs@bigpond.net.au>
Subject: Re: No Gnus on Sunday
Date: Sat, 03 Jan 2004 07:23:51 +1000	[thread overview]
Message-ID: <microsoft-free.877k0akpso.fsf@eicq.dnsalias.org> (raw)
In-Reply-To: <m34qve9jfv.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Fri, 02 Jan 2004 21:36:36 +0100")

[-- Attachment #1: Type: text/plain, Size: 1905 bytes --]

|--==> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

  LMI> So if y'all have any last-minute bug fixes for Gnus 5.10,
  LMI> please get them in during the next 36 hours...

Quick!  Somebody give me a way of implementing `with-timeout' in
XEmacs _without_ relying on timer.el.

In mm-url.el there is...

(defun mm-url-insert (url &optional follow-refresh)
  "Insert the contents from an URL in the current buffer.
If FOLLOW-REFRESH is non-nil, redirect refresh url in META."
  (let ((times mm-url-retries)
	(done nil)
	(first t)
	result)
    (while (and (not (zerop (decf times)))
		(not done))
      (with-timeout (mm-url-timeout)
	(unless first
	  (message "Trying again (%s)..." (- mm-url-retries times)))
	(setq first nil)
	(if follow-refresh
	    (save-restriction
	      (narrow-to-region (point) (point))
	      (mm-url-insert-file-contents url)
	      (goto-char (point-min))
	      (when (re-search-forward
		     "<meta[ \t\r\n]*http-equiv=\"Refresh\"[^>]*URL=\\([^\"]+\\)\"" nil t)
		(let ((url (match-string 1)))
		  (delete-region (point-min) (point-max))
		  (setq result (mm-url-insert url t)))))
	  (setq result (mm-url-insert-file-contents url)))
	(setq done t)))
    result))

It's the _only_ timing related thing in Gnus that XEmacs can't seem to
do with itimer.  Because of this single form the XEmacs Gnus package
must require the "fsf-compat" package to get `with-timeout' from
timer.el.

This obviously isn't a show-stopper, or even a bug for that matter,
but I'd be one happy camper if someone could help me with this.  I'd
_*REALLY REALLY*_ like the XEmacs Gnus package to _*NOT*_ need the
fsf-compat package.

Thanks!

-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|              Ashes to ashes, dust to dust.               |
|      The proof of the pudding, is under the crust.       |
|------------------------------<sryoungs@bigpond.net.au>---|

[-- Attachment #2: Type: application/pgp-signature, Size: 256 bytes --]

  reply	other threads:[~2004-01-02 21:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-02 20:36 Lars Magne Ingebrigtsen
2004-01-02 21:23 ` Steve Youngs [this message]
2004-01-03 16:30   ` Kai Grossjohann
2004-01-03 20:19     ` Steve Youngs
2004-01-03 22:44       ` Kai Grossjohann
2004-01-18  2:37         ` Steve Youngs
2004-01-18 18:01           ` Kai Grossjohann
2004-01-03  1:52 ` Xavier Maillard
2004-01-04 12:17 ` Frank Schmitt
2004-01-04 20:49   ` Lars Magne Ingebrigtsen
2004-01-04 21:03     ` Frank Schmitt
2004-01-04 21:07       ` Lars Magne Ingebrigtsen
2004-01-05 10:34         ` Frank Schmitt

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=microsoft-free.877k0akpso.fsf@eicq.dnsalias.org \
    --to=sryoungs@bigpond.net.au \
    /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).