From unknown Sun Jun 22 07:57:57 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#33782: 27.0.50; Emacsclient ignores errors when its frame is deleted
Resent-From: Philipp
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Mon, 17 Dec 2018 21:53:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 33782
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 33782@debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.154508353614220
(code B ref -1); Mon, 17 Dec 2018 21:53:01 +0000
Received: (at submit) by debbugs.gnu.org; 17 Dec 2018 21:52:16 +0000
Received: from localhost ([127.0.0.1]:52311 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1gZ0oC-0003hH-4X
for submit@debbugs.gnu.org; Mon, 17 Dec 2018 16:52:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39019)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1gZ0oA-0003h5-5n
for submit@debbugs.gnu.org; Mon, 17 Dec 2018 16:52:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1gZ0o4-0001hh-1u
for submit@debbugs.gnu.org; Mon, 17 Dec 2018 16:52:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37839)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1gZ0o3-0001hO-1C
for submit@debbugs.gnu.org; Mon, 17 Dec 2018 16:52:07 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48619)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1gZ0o1-0005Th-To
for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 16:52:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1gZ0o0-0001fv-Nz
for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 16:52:05 -0500
Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:51109)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1gZ0o0-0001fa-Ff
for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 16:52:04 -0500
Received: by mail-wm1-x329.google.com with SMTP id n190so715362wmd.0
for ; Mon, 17 Dec 2018 13:52:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=O1Ly3JPMr64jkF4y8SugpsvENEyW/Wj6AbWGsLg1A9k=;
b=VQslmq5UrApXLrTbxHBpLuTOXC5iYu+toNS2vCy7iCwk0wLwh9UI4MwxNMimyHyiNr
XhxtEzBBOmoaIybSomb1niiqmLNxcQvK6wax2eq5o7ENboLi8u+nCKVnOlh0zAvclZu8
ZwMc886pWQ/hOudC7SyOba0aAdUmXN1VatoNlu15sIt1D+gsauBXsetZZ6hCgd6ssGqb
kp5Rsq3C8N2cyDHSutt0t/WYJyjHls3o/kVuwIHb8s03Rmk+79575jdTQ5YEtDEhnOkk
AHTAaiwQcu57Ts2vrPn7lj62ZPvp2LPtUxCm+3kASiXkeSpVD3cqYwpP3qUPG3s7iAyF
8rPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=O1Ly3JPMr64jkF4y8SugpsvENEyW/Wj6AbWGsLg1A9k=;
b=i8LMkkAxmOURXoPqVGUq2VxCnLB930Fe1Y4IWpqA4E7bElJ5KkWTkMkpdL8gSWJHPD
oXjuLnltgNMWQ8EFr7ll/xFnkXKwgUpcj/MQXEwwC+ERTvPTWR8qG5oFxuvn7jbGvAHN
uYrP8/q5/KgznSJPhR8WqtIV6bkBieiGL9vMfi0Iytjql8Pnej2PxsT3mQHwLHNp708a
OZyb0C2B6uzUFsmhIYx0TsLFyVoiHqQ8A2Vc2jL8toHdAWrzXxdQYDTUKnM+HoV7IqCx
9MXfAHQha4JUW/e3trrz95sCbwDPX98TMz6kq1UHxRDAI1XwrXqL9LfRXjxBSVqM319Y
msUw==
X-Gm-Message-State: AA+aEWbaTiBDjBmhhU7ei1sRKzPH8HSQ5YNUfTAKjzpjP2ePbGfOoY/y
nSwX6LqMbtWBA0IQSVTiwhhnc+lg
X-Google-Smtp-Source: AFSGD/V2TGF7dhmzdSZMsNg5Ci90FBPPNMfIr2ifJKF4HeaiLHCfd7JUhvpXnBFyQmRpcYZmVIvKgA==
X-Received: by 2002:a1c:85d2:: with SMTP id h201mr626521wmd.151.1545083522949;
Mon, 17 Dec 2018 13:52:02 -0800 (PST)
Received: from phst-glaptop ([2001:4c50:25a:f300:2a16:adff:fe49:52c8])
by smtp.gmail.com with ESMTPSA id n20sm254964wmi.11.2018.12.17.13.52.02
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Mon, 17 Dec 2018 13:52:02 -0800 (PST)
From: Philipp
Date: Mon, 17 Dec 2018 22:52:00 +0100
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -4.8 (----)
Assuming an Emacs server is running:
$ emacsclient --create-frame --eval '(unwind-protect (error "foo") (delete-=
frame))' ; echo $?
0
This means that if the frame created by Emacsclient is deleted, errors
are ignored. This seems like a bug; I wouldn't expect errors to be
ignored in this case, because they should bubble up through the
`unwind-protect' form.
In GNU Emacs 27.0.50 (build 70, x86_64-pc-linux-gnu, GTK+ Version 3.22.24)
of 2018-12-17
Repository revision: 55838e4e6a176317367c6759e0520395e80c856f
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --enable-gtk-deprecation-warnings
--enable-gcc-warnings=3Dwarn-only --with-modules --without-pop
--with-mailutils --enable-checking --enable-check-lisp-object-type
'CFLAGS=3D-O0 -ggdb3''
Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS
FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS
JSON GMP
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec epa derived epg epg-config
gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils phst pcase ffap
thingatpt url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map url-vars subr-x rx gnutls puny
seq byte-opt gv bytecomp byte-compile cconv dbus xml cl-loaddefs cl-lib
elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)
Memory information:
((conses 16 109268 7603)
(symbols 48 21807 1)
(strings 32 32891 1767)
(string-bytes 1 890386)
(vectors 16 16545)
(vector-slots 8 535263 7864)
(floats 8 51 66)
(intervals 56 224 0)
(buffers 992 12))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado
If you received this communication by mistake, please don=E2=80=99t forward=
it to
anyone else (it may contain confidential or privileged information), please
erase all copies of it, including all attachments, and please let the sender
know it went to the wrong person. Thanks.
From unknown Sun Jun 22 07:57:57 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#33782: 27.0.50; Emacsclient ignores errors when its frame is deleted
Resent-From: Lars Ingebrigtsen
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Tue, 09 Jul 2019 23:34:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 33782
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Philipp
Cc: 33782@debbugs.gnu.org
Received: via spool by 33782-submit@debbugs.gnu.org id=B33782.156271518417608
(code B ref 33782); Tue, 09 Jul 2019 23:34:02 +0000
Received: (at 33782) by debbugs.gnu.org; 9 Jul 2019 23:33:04 +0000
Received: from localhost ([127.0.0.1]:34531 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hkzbc-0004Zw-6K
for submit@debbugs.gnu.org; Tue, 09 Jul 2019 19:33:04 -0400
Received: from quimby.gnus.org ([80.91.231.51]:55726)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1hkzba-0004ZU-Je
for 33782@debbugs.gnu.org; Tue, 09 Jul 2019 19:33:03 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from )
id 1hkzbW-00020V-Qx; Wed, 10 Jul 2019 01:33:01 +0200
From: Lars Ingebrigtsen
References:
Date: Wed, 10 Jul 2019 01:32:58 +0200
In-Reply-To: (Philipp's message of "Mon, 17 Dec
2018 22:52:00 +0100")
Message-ID: <87ftnepyvp.fsf@mouse.gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Philipp writes: > Assuming an Emacs
server is running: > > $ emacsclient --create-frame --eval '(unwind-protect
(error "foo") (delete-frame))' ; echo $? > 0 > > This means that if the frame
created by Emacsclient is [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
Philipp writes:
> Assuming an Emacs server is running:
>
> $ emacsclient --create-frame --eval '(unwind-protect (error "foo") (delete-frame))' ; echo $?
> 0
>
> This means that if the frame created by Emacsclient is deleted, errors
> are ignored. This seems like a bug; I wouldn't expect errors to be
> ignored in this case, because they should bubble up through the
> `unwind-protect' form.
Well... like
(unwind-protect (error "foo") (message "zot"))
there's no error bubbling, and there's no error to be returned, so I
think this is correct behaviour?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 19:33:09 2019
Received: (at control) by debbugs.gnu.org; 9 Jul 2019 23:33:10 +0000
Received: from localhost ([127.0.0.1]:34534 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hkzbh-0004aH-IB
for submit@debbugs.gnu.org; Tue, 09 Jul 2019 19:33:09 -0400
Received: from quimby.gnus.org ([80.91.231.51]:55744)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1hkzbf-0004a8-Q4
for control@debbugs.gnu.org; Tue, 09 Jul 2019 19:33:08 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from ) id 1hkzbd-00020g-8N
for control@debbugs.gnu.org; Wed, 10 Jul 2019 01:33:07 +0200
Date: Wed, 10 Jul 2019 01:33:04 +0200
Message-Id: <87ef2ypyvj.fsf@mouse.gnus.org>
To: control@debbugs.gnu.org
From: Lars Ingebrigtsen
Subject: control message for bug #33782
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: tags 33782 notabug close 33782 quit
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
tags 33782 notabug
close 33782
quit
From unknown Sun Jun 22 07:57:57 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#33782: 27.0.50; Emacsclient ignores errors when its frame is deleted
Resent-From: Noam Postavsky
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 10 Jul 2019 02:06:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 33782
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: notabug
To: Lars Ingebrigtsen
Cc: Philipp , 33782@debbugs.gnu.org
Received: via spool by 33782-submit@debbugs.gnu.org id=B33782.156272434624967
(code B ref 33782); Wed, 10 Jul 2019 02:06:01 +0000
Received: (at 33782) by debbugs.gnu.org; 10 Jul 2019 02:05:46 +0000
Received: from localhost ([127.0.0.1]:34631 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hl1zO-0006UX-B4
for submit@debbugs.gnu.org; Tue, 09 Jul 2019 22:05:46 -0400
Received: from mail-io1-f42.google.com ([209.85.166.42]:43340)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hl1zM-0006UF-Ns; Tue, 09 Jul 2019 22:05:45 -0400
Received: by mail-io1-f42.google.com with SMTP id k20so1238410ios.10;
Tue, 09 Jul 2019 19:05:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:cc:subject:references:date:in-reply-to:message-id
:user-agent:mime-version;
bh=5gvYZhqNpEHh7cGh9n3UQmkQGzn867hDXFLpiSvwmDY=;
b=Ysti2R1hqhmYMkufXva+YzfBtcbK5z++tFXBHNt5JnO0S92qMIUelMq4yXwuWrbPqu
hWOBX3fw7bdjHhjHh9YQSNWIUXWNPDNsI5+w7arBHmU3uaYKDUvEnUl61EE5qa/cIcZ2
+54gQpQ3Z0UFe2Kos4KSOVwO1ssgwJJ3Pt0DeJv5DXu1eLcqZ8EXBAUwmtraRbYP+KKs
ct5jPwkxg5X4pD4jkrEQ9cKW4+CtLbTFXAszuXb5mUwcgjInj97Po9odXcZn5ZSeQOpK
EznmLyUF5ANQLExaHYO1yiAeLgKNrpQk3nkDNHqr6eBzmIBDzJxyNyUs1yPj6dWdyPsK
brWg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
:message-id:user-agent:mime-version;
bh=5gvYZhqNpEHh7cGh9n3UQmkQGzn867hDXFLpiSvwmDY=;
b=tFqjIl7Ny04OmsVrIshhFXmNNfXLRZq/DHkCXbxobh4FEHDBsAKWuG3+dc7Lgzmjqy
OUXwI3TxMEoNgM2EjofWhMbsmwB574j82RVv7tL2G/FwFvfvWWLfAji82isICJxyJF/u
HJPAeu33PthMDZF6F9mkWhzwIKdwuUx9QzBLPDIA4ZUJF692quX2RvkJi8++1lbJTVP4
MZXOT+Ba0XpUudzIFHhyXtr1PFpbH21JQ+0+u/n8guT4sFLpRbgiQXmhyjbpzwfmIx1v
9YcLqwXoQ6OTmWiyRp11IDYU8ZJysuqHQdZfyQZR06EaKugXE28eSm/MUgQTeaAnYgl2
YNIQ==
X-Gm-Message-State: APjAAAV0YBIAVOcdD6kkPlnGI+OQUfL+Il4tsoaka3fUVtUrlOLpCjGM
eOhTc9volxSK0CqekhRd+AwIZH2a
X-Google-Smtp-Source: APXvYqxX/BpSZvTvnag/VR5cpHxpG5/uk5GxX5yDRVIAXbjyyfvGHjAYxWhzYbmaWLB0eSqCR74WJQ==
X-Received: by 2002:a5d:8c97:: with SMTP id g23mr28825111ion.250.1562724338916;
Tue, 09 Jul 2019 19:05:38 -0700 (PDT)
Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
by smtp.gmail.com with ESMTPSA id
n26sm399176ioc.74.2019.07.09.19.05.37
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Tue, 09 Jul 2019 19:05:37 -0700 (PDT)
From: Noam Postavsky
References: <87ftnepyvp.fsf@mouse.gnus.org>
Date: Tue, 09 Jul 2019 22:05:36 -0400
In-Reply-To: <87ftnepyvp.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of
"Wed, 10 Jul 2019 01:32:58 +0200")
Message-ID: <874l3u3aq7.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: reopen 33782 tags 33782 - notabug quit Lars Ingebrigtsen
writes:
> Philipp writes: > >> Assuming an Emacs server is running: >> >> $
emacsclient
--create-frame --eval '(unwind-protect (error "foo") (delete-frame))' ; echo
$? >> 0 >> >> This means that if the fram [...]
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: gnus.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (npostavs[at]gmail.com)
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [209.85.166.42 listed in list.dnswl.org]
1.3 PDS_NO_HELO_DNS High profile HELO but no A record
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.3 (/)
reopen 33782
tags 33782 - notabug
quit
Lars Ingebrigtsen writes:
> Philipp writes:
>
>> Assuming an Emacs server is running:
>>
>> $ emacsclient --create-frame --eval '(unwind-protect (error "foo") (delete-frame))' ; echo $?
>> 0
>>
>> This means that if the frame created by Emacsclient is deleted, errors
>> are ignored. This seems like a bug; I wouldn't expect errors to be
>> ignored in this case, because they should bubble up through the
>> `unwind-protect' form.
>
> Well... like
>
> (unwind-protect (error "foo") (message "zot"))
>
> there's no error bubbling, and there's no error to be returned, so I
> think this is correct behaviour?
No, that's incorrect, unwind-protect doesn't catch errors, it just
executes the handler forms (in this case (message "zot")) before the
error finishes bubbling.
From unknown Sun Jun 22 07:57:57 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#33782: 27.0.50; Emacsclient ignores errors when its frame is deleted
Resent-From: Lars Ingebrigtsen
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 10 Jul 2019 11:17:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 33782
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Noam Postavsky
Cc: Philipp , 33782@debbugs.gnu.org
Received: via spool by 33782-submit@debbugs.gnu.org id=B33782.156275737716177
(code B ref 33782); Wed, 10 Jul 2019 11:17:01 +0000
Received: (at 33782) by debbugs.gnu.org; 10 Jul 2019 11:16:17 +0000
Received: from localhost ([127.0.0.1]:34903 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hlAa7-0004Cp-BP
for submit@debbugs.gnu.org; Wed, 10 Jul 2019 07:16:16 -0400
Received: from quimby.gnus.org ([80.91.231.51]:35876)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1hlAa4-0004Cg-TN
for 33782@debbugs.gnu.org; Wed, 10 Jul 2019 07:16:13 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories)
by quimby.gnus.org with esmtpsa
(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
(envelope-from )
id 1hlAa0-00087o-Qy; Wed, 10 Jul 2019 13:16:11 +0200
From: Lars Ingebrigtsen
References: <87ftnepyvp.fsf@mouse.gnus.org>
<874l3u3aq7.fsf@gmail.com>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXa2djt7eyjoZ/k5OL+
//79/f3Ozcu+vbvUGkYsAAACbUlEQVQ4jbWPQY/bIBCFh0WBayjr3WuWSuYKQeucI/UHxHV3eyWx
CleHaJm/38HaVlXV3tqJjZT38d4bw6e/DPx7cDF7Y2q25e03oGiCV2q8/0PUZfeftjq+3Hfq2L2o
o3pR6mXsuu44fulGoEXGsaOD1hpV9/OAcZWaOoZf2Ahk7byaVOg6HVZxZR1FKa2U95ruB0Ws+YhQ
lOp8mJra3uC1Hn3rUJ4FPWn6T4Te8Bx8iwOvp4n0QIhuB6b96u1g9DTPwXnwIfjANScLdQIn3Tnt
mQPVHrZtcUqDnk5bz3jYauD0bGFq1knDc+BnDm7LuGuyage1KdDMnU6nLUuOicSAB9AuTCHA9kT3
4TwLnkJKWmzIwjcENvG8YVwMbhbRJSYiSQBaw0m8PgyCz3FwaR4ag+iBeQDGYT7HNMxcJC7mB0qE
LVUxYFEMwyNUASk+JJfgAZgL8CpeJYF4wxQhrSxA8hTzFq/fzkuSoqYoq6s8UWjUQM3DkHOOi0h1
wDkvcxKO3CKKKOPtVnNMOeYKGA8pugjzTCqmLCUdGDFK5DHR13wVj4d9fjzkijXiInHIbb9E5fVa
r0tfMdvaLIQjgIBHKQeUWC5YsdTcJ6yyEoElStpJ1l2PtVhpF8RKKwS41Xrtn2xvS7HZNEaEKkDu
P8jL57LfX9BYNLJUakIiy7I87eyut9YWUw2tkGtCRDgcqDkXNIVeYn2h76Ef1Frxcil3xVqDpjem
VbStbsuu7z9SEmm2WCxmbeBw16Y57ooxxVBeM2Gl8h1ZemNNG4KNWCqnCkTzY2zT1qEoqqZpl1eX
pYpWbvr3eQ9bc4h9B6WuB3+i6A6mAAAAAElFTkSuQmCC
Date: Wed, 10 Jul 2019 13:16:08 +0200
In-Reply-To: <874l3u3aq7.fsf@gmail.com> (Noam Postavsky's message of "Tue, 09
Jul 2019 22:05:36 -0400")
Message-ID:
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Noam Postavsky writes: >>> $ emacsclient
--create-frame --eval '(unwind-protect (error "foo") >>> (delete-frame))'
; echo $? >>> 0 >>> >>> This means that if the frame created by Emacsclient
is deleted, errors >>> are ignor [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
Noam Postavsky writes:
>>> $ emacsclient --create-frame --eval '(unwind-protect (error "foo")
>>> (delete-frame))' ; echo $?
>>> 0
>>>
>>> This means that if the frame created by Emacsclient is deleted, errors
>>> are ignored. This seems like a bug; I wouldn't expect errors to be
>>> ignored in this case, because they should bubble up through the
>>> `unwind-protect' form.
[...]
> No, that's incorrect, unwind-protect doesn't catch errors, it just
> executes the handler forms (in this case (message "zot")) before the
> error finishes bubbling.
Yes, but there is no... bubbling... in this context. The code is the
moral equivalent of saying
emacs -Q -nw --eval '(unwind-protect (error "foo") (kill-emacs))'; echo $?
in an emacsclient context, and this which also says "0".
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From unknown Sun Jun 22 07:57:57 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#33782: 27.0.50; Emacsclient ignores errors when its frame is deleted
Resent-From: Noam Postavsky
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 10 Jul 2019 14:35:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 33782
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Lars Ingebrigtsen
Cc: Philipp , 33782@debbugs.gnu.org
Received: via spool by 33782-submit@debbugs.gnu.org id=B33782.15627692965476
(code B ref 33782); Wed, 10 Jul 2019 14:35:01 +0000
Received: (at 33782) by debbugs.gnu.org; 10 Jul 2019 14:34:56 +0000
Received: from localhost ([127.0.0.1]:36362 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hlDgO-0001QB-3Q
for submit@debbugs.gnu.org; Wed, 10 Jul 2019 10:34:56 -0400
Received: from mail-io1-f45.google.com ([209.85.166.45]:39783)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hlDgJ-0001Pr-6c; Wed, 10 Jul 2019 10:34:51 -0400
Received: by mail-io1-f45.google.com with SMTP id f4so5183289ioh.6;
Wed, 10 Jul 2019 07:34:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:cc:subject:references:date:in-reply-to:message-id
:user-agent:mime-version;
bh=PTpF0clBX+j7uWbzNdG8mqc62jXvfvflTlsVMmzGpSU=;
b=JYc7i1hwtNIO99VO979y3OmBxYMcVue5UJyijPdhJPf6Fu+zkYcw6ad1/NmUQxM/fv
js/qNRf33HoNd/aap/9tgqPpe85QgLRzdp9Bl1J5T5F0AHtPlr4Qtt6NSOlX25ZHXEtd
YNCXYoEJ1qcrjT4FxMaYwhlBNlMjuIbTEEH+sjjTmewuwlHjqBUvwv4fwDUW04VncP9X
gQyujWBVgoW1uugZWdyQxMbALpvjH971ODXErR4XQ4ihJ8ggGTbIfRb9AM8ZLkoYgUb1
vhU9QzFUDP34Ni6G8U6kx9HM/kFQK81+wewVFlyf3Aj/BiYRIlnUC6JqlxLWQVqRu3Z7
TU7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
:message-id:user-agent:mime-version;
bh=PTpF0clBX+j7uWbzNdG8mqc62jXvfvflTlsVMmzGpSU=;
b=N1SiRKoX1fx1eEjTNiXHOWPCL0VzMwg+f4DBtG6onZw71OaIUEK7xDJ5iQp6nkoa5G
NKce7TolOQvy6tJVWxbGM+4DxtVtUW2vjmRQoN2OCkJLeDr7g9EiqsNGY9QO97AAWs88
oimABOXvie7SiFktGGHkcmpNHBgdzzLMBRSCeo1rW4ugEwdn5HcBXtgM3J0BB21UqdFI
bo4+JfzbOwFKXCxVqGz3BQ0krhRG2FdPDz3lVH3hDwVJI5Zdr+X//iGC+bZJAH6HrxmB
GlndXPa1QYThcb2EBjtZ/X01HEFxQAh7WWBhNkFmxMm01nLcINDRcAjgJV0OB9fzY8Gw
Jkug==
X-Gm-Message-State: APjAAAXLnxF7RAsPAY0QiQGsYm94GbPougy5S6yG3ilk5uqjSSlDOCKy
dSEviHwT77ED8eW6asUITQD1am95
X-Google-Smtp-Source: APXvYqzzq87v0VVahijFLzUNGvRBmSTpnWZPQ2+ROC8le0YS5zArI6fv8asoeUF7H43wpjEMFBWdSA==
X-Received: by 2002:a02:cc8e:: with SMTP id s14mr37211842jap.142.1562769285035;
Wed, 10 Jul 2019 07:34:45 -0700 (PDT)
Received: from vhost2
(CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196])
by smtp.gmail.com with ESMTPSA id s15sm1769498ioe.88.2019.07.10.07.34.43
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Wed, 10 Jul 2019 07:34:44 -0700 (PDT)
From: Noam Postavsky
References: <87ftnepyvp.fsf@mouse.gnus.org>
<874l3u3aq7.fsf@gmail.com>
Date: Wed, 10 Jul 2019 10:34:45 -0400
In-Reply-To: (Lars Ingebrigtsen's message of "Wed,
10 Jul 2019 13:16:08 +0200")
Message-ID: <85v9wac60q.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: tags 33782 notabug close 33782 quit Lars Ingebrigtsen writes:
>>>> $ emacsclient --create-frame --eval '(unwind-protect (error "foo") >>>>
(delete-frame))' ; echo $? >>>> 0
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: gnus.org]
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (npostavs[at]gmail.com)
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [209.85.166.45 listed in list.dnswl.org]
1.3 PDS_NO_HELO_DNS High profile HELO but no A record
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.3 (/)
tags 33782 notabug
close 33782
quit
Lars Ingebrigtsen writes:
>>>> $ emacsclient --create-frame --eval '(unwind-protect (error "foo")
>>>> (delete-frame))' ; echo $?
>>>> 0
> Yes, but there is no... bubbling... in this context. The code is the
> moral equivalent of saying
>
> emacs -Q -nw --eval '(unwind-protect (error "foo") (kill-emacs))'; echo $?
>
> in an emacsclient context, and this which also says "0".
Oh, I see, for emacsclient --create-frame, delete-frame is like
kill-emacs. I guess that makes sense then. Re-closing.