From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [disumu@x3y2z1.net: URL not following some 302 redirects after recent changes] Date: Mon, 25 Dec 2006 21:25:36 -0500 Message-ID: References: <87tzzksp8l.fsf@freemail.hu> Reply-To: rms@gnu.org NNTP-Posting-Host: dough.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1167100000 24759 80.91.229.10 (26 Dec 2006 02:26:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 02:26:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 26 03:26:39 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gz21W-00079d-PZ for ged-emacs-devel@m.gmane.org; Tue, 26 Dec 2006 03:26:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gz21W-0004jd-2d for ged-emacs-devel@m.gmane.org; Mon, 25 Dec 2006 21:26:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gz20h-0003vz-7S for emacs-devel@gnu.org; Mon, 25 Dec 2006 21:25:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gz20f-0003ue-RQ for emacs-devel@gnu.org; Mon, 25 Dec 2006 21:25:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gz20f-0003uI-K7 for emacs-devel@gnu.org; Mon, 25 Dec 2006 21:25:45 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gz20f-0008Am-Bi for emacs-devel@gnu.org; Mon, 25 Dec 2006 21:25:45 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Gz20W-0003co-B2; Mon, 25 Dec 2006 21:25:36 -0500 Original-To: Magnus Henoch In-reply-to: <87tzzksp8l.fsf@freemail.hu> (message from Magnus Henoch on Mon, 25 Dec 2006 03:06:50 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64281 Archived-At: The problem is that url-http-async-sentinel tries to change the sentinel, which fails since the sentinel of a process is "bound" to nil during sentinel execution (which I had forgotten when I wrote this function in the first place). The technique of changing the sentinel from within the sentinel seems somewhat kludgy. So here is another idea. url-http-async-sentinel could instead set a flag, so that when it is called again and sees that flag set, it will call url-http-end-of-document-sentinel. Would that work?