From: Noam Postavsky <npostavs@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
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: Tue, 09 Jul 2019 22:05:36 -0400 [thread overview]
Message-ID: <874l3u3aq7.fsf@gmail.com> (raw)
In-Reply-To: <87ftnepyvp.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Wed, 10 Jul 2019 01:32:58 +0200")
reopen 33782
tags 33782 - notabug
quit
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Philipp <p.stephani2@gmail.com> 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.
next prev parent reply other threads:[~2019-07-10 2:05 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 [this message]
2019-07-10 11:16 ` Lars Ingebrigtsen
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=874l3u3aq7.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=33782@debbugs.gnu.org \
--cc=larsi@gnus.org \
--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).