From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#20159: 24.4; url-retrieve invokes same callback twice with kill-buffer Date: Fri, 25 Dec 2015 19:30:23 +0100 Message-ID: <87si2qxtxc.fsf@gnus.org> References: <87k2ya3wpz.fsf@wellocc1-ld2.jhuapl.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451068283 15836 80.91.229.3 (25 Dec 2015 18:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2015 18:31:23 +0000 (UTC) Cc: 20159@debbugs.gnu.org To: Christopher Wellons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 25 19:31:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aCX8w-0005TI-02 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 19:31:10 +0100 Original-Received: from localhost ([::1]:36123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCX8v-0004zd-9V for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 13:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCX8r-0004yW-Tn for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 13:31:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCX8o-0000ux-MQ for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 13:31:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCX8o-0000ur-J6 for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 13:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aCX8o-0000rp-78 for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 13:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Dec 2015 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20159-submit@debbugs.gnu.org id=B20159.14510682482409 (code B ref 20159); Fri, 25 Dec 2015 18:31:02 +0000 Original-Received: (at 20159) by debbugs.gnu.org; 25 Dec 2015 18:30:48 +0000 Original-Received: from localhost ([127.0.0.1]:35283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCX8a-0000cT-Bj for submit@debbugs.gnu.org; Fri, 25 Dec 2015 13:30:48 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:53572) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCX8Y-0000ZR-Bq for 20159@debbugs.gnu.org; Fri, 25 Dec 2015 13:30:46 -0500 Original-Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCX8B-0002Ys-T1; Fri, 25 Dec 2015 19:30:24 +0100 In-Reply-To: <87k2ya3wpz.fsf@wellocc1-ld2.jhuapl.edu> (Christopher Wellons's message of "Sat, 21 Mar 2015 16:46:16 -0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aCX8B-0002Ys-T1 MailScanner-NULL-Check: 1451673024.443@MwUJrRq2JmpCLs8Pb9ocUg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110410 Archived-At: Christopher Wellons writes: > ;;; -*- lexical-binding: t; -*- > (let ((calls 0)) > (url-retrieve "http://localhost:1/" > (lambda (_) > (assert (=3D 1 (cl-incf calls))) > (kill-buffer)))) > > When I eval the above expression, the assertion fails asynchronously. > > error in process sentinel: Assertion failed: (=3D 1 (cl-incf calls)) Eli fixed something related to this, but the bug still remains. I used this version: ;;; -*- lexical-binding: t; -*- (let ((calls 0)) (url-retrieve "http://localhost:1/" (lambda (status) (message "%s '%s'" calls status) (assert (=3D 1 (cl-incf calls))) (kill-buffer)))) These are the messages: Contacting host: localhost:1 # 0 =92(:error (error connection-failed failed with code 111 :host localhost :service 1))=92 1 =92(:error (error connection-failed deleted :host localhost :service 1) :error (error connection-failed failed with co= de 111 :host localhost :service 1))=92 The second message is... pretty weird... Anybody have a guess why this happens? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no