From: Lars Ingebrigtsen <larsi@gnus.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Philipp <p.stephani2@gmail.com>, 33782@debbugs.gnu.org
Subject: bug#33782: 27.0.50; Emacsclient ignores errors when its frame is deleted
Date: Wed, 10 Jul 2019 13:16:08 +0200 [thread overview]
Message-ID: <m3ftne2l8n.fsf@gnus.org> (raw)
In-Reply-To: <874l3u3aq7.fsf@gmail.com> (Noam Postavsky's message of "Tue, 09 Jul 2019 22:05:36 -0400")
Noam Postavsky <npostavs@gmail.com> 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
next prev parent reply other threads:[~2019-07-10 11:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-17 21:52 bug#33782: 27.0.50; Emacsclient ignores errors when its frame is deleted Philipp
2019-07-09 23:32 ` Lars Ingebrigtsen
2019-07-10 2:05 ` Noam Postavsky
2019-07-10 11:16 ` Lars Ingebrigtsen [this message]
2019-07-10 14:34 ` Noam Postavsky
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ftne2l8n.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=33782@debbugs.gnu.org \
--cc=npostavs@gmail.com \
--cc=p.stephani2@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).