From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Minshall Newsgroups: gmane.emacs.bugs Subject: bug#72652: sentinel Date: Fri, 16 Aug 2024 09:11:00 +0300 Message-ID: <507460.1723788660@archlinux> References: <504501.1723782848@archlinux> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24985"; mail-complaints-to="usenet@ciao.gmane.io" To: 72652@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 16 08:11:50 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1seqBh-0006N1-48 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Aug 2024 08:11:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seqBN-0007XI-ME; Fri, 16 Aug 2024 02:11:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seqBL-0007Wy-9A for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2024 02:11:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seqBJ-0002tS-Ky for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2024 02:11:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:From:To:In-Reply-To:References:Subject; bh=hRxM1BYx31+iTzpGiDkdA7Fo3AL2EVW857wvmnhHtLs=; b=BFlxCnj9O/jB5b3pjE4oLeC9O+dwmktUQArVMTmEP7l1zBBOTLKOmM2epUDJexI5fN5GCLB3X1UGy0IxUhiOR487zQZTQ5mWKOvV6FY6D9K48pp3xTNuFsGOCZ/5w1Hra/AroexDqZ0c8rv1MUWT8YwMW595Zec0apy/RYb43jDpJEWZFYxNgkX6/qYNm8d0iPW46kZIRibGooBbsqU7gxK+n7LBvIYVvEa65FMJLbTifxEM2tAzeXlvclXi5lUCUrascHANJmReUnSiXhdimRe0+nNQM3+Bmn152L5d02kCfMhVoRAwFJfNz6MHNp3LqVKI2Xtq3v3IR+jPUTMZmA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1seqBu-0008FT-D2 for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2024 02:12:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <504501.1723782848@archlinux> Resent-From: Greg Minshall Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Aug 2024 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72652 X-GNU-PR-Package: emacs Original-Received: via spool by 72652-submit@debbugs.gnu.org id=B72652.172378871431691 (code B ref 72652); Fri, 16 Aug 2024 06:12:02 +0000 Original-Received: (at 72652) by debbugs.gnu.org; 16 Aug 2024 06:11:54 +0000 Original-Received: from localhost ([127.0.0.1]:50212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seqBl-0008F5-L4 for submit@debbugs.gnu.org; Fri, 16 Aug 2024 02:11:53 -0400 Original-Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.216.144.57]:46974 helo=intrepid-branwen.relay-egress.a.mail.umich.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seqBi-0008Em-Uo for 72652@debbugs.gnu.org; Fri, 16 Aug 2024 02:11:51 -0400 Original-Received: from giddy-banshee.authn-relay.a.mail.umich.edu (ip-10-0-73-23.us-east-2.compute.internal [10.0.73.23]) by intrepid-branwen.relay-egress.a.mail.umich.edu with ESMTPS id 66BEED7B.4E1B6B7.7F9A7175.983277; Fri, 16 Aug 2024 02:11:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-0; t=1723788666; bh=hRxM1BYx31+iTzpGiDkdA7Fo3AL2EVW857wvmnhHtLs=; h=From:To:Subject:Date; b=F9q87dELuTyDpbzytJAh7SLXUWlGi6l19evfkM+JivCRJbPtQAAM/ksQvA+eQlQjM dkwavLKitRK5TQeOwbijjgaKkOcX30kbCFWa6wT8SNj68xHgti4k+CeBBAJbjiXJQG OM6S8RFZx3tL2P/JPDXjOA+iKTrwmfqbTCKBJYla7CuCi/O7vbck/7/89kefzISB/+ QZMx5593jpDL1MmfE+5bMENFbhmoVY6OSmh8aFR4mKWr0EH3A+8HU+HmAzmvnGrm8X zu4Qjr7P1lEnTA80LiWYb+nT8/eir7oj0zaRbvTp/KGY1oGyqpyMuUnUzDI0bvZVz7 5Oe7cZcm9dToA== Authentication-Results: giddy-banshee.authn-relay.a.mail.umich.edu; iprev=fail policy.iprev=85.108.143.146 (Mismatch); auth=pass smtp.auth=minshall Original-Received: from localhost (Mismatch [85.108.143.146]) by giddy-banshee.authn-relay.a.mail.umich.edu with ESMTPSA id 66BEED79.35D5C550.BC7E15B.61083; Fri, 16 Aug 2024 02:11:06 -0400 X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 31.0.50 Content-ID: <507459.1723788660.1@archlinux> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290193 Archived-At: i guess one can get some notification from a sentinel, though finding the process itself is a bit kludgy: ```` (defun msg-me (process event) (princ (format "Process: %s had the event '%s'" process event))) (let ((uproc (url-retrieve "https://y.example.com/index.html" (lambda (x) (message "callback called: %s" x))))) (with-current-buffer uproc (set-process-sentinel url-http-process 'msg-me))) ```` gives output ```` Contacting host: y.example.com:443 Process: example.com had the event 'connection broken by remote peer ' ```` the message ("broken by remote peer") isn't as helpful as a "host does not exist" message might be. i guess to distinguish a name lookup failure, one could then (or before) use, e.g., `dns-query-asynchronous`: ```` (dns-query-asynchronous "x.example.com" (lambda (x) (message "dns callback: %s" x))) ```` gives ```` dns callback: nil ```` (hope this formatting comes through reasonably...)