From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Dynamic modules: emacs-module.c and signaling errors
Date: Thu, 26 Nov 2015 15:11:25 -0500 [thread overview]
Message-ID: <jwvfuzstuv1.fsf-monnier+Inbox@gnu.org> (raw)
In-Reply-To: <83si3stuzn.fsf@gnu.org>
>> Because this loses the connection between the signal and its origin.
> Not really, it doesn't. You get the same Lisp error you'd get in
> Emacs proper.
That's only the signal, not its origin. Its origin is lost.
>> Because it imposes a cost which we may not want to pay.
> What cost is that?
Catch and then rethrow. Which is pure cost with no benefit, if you ask me.
>> The current "funcall" should be renamed to "safe_funcall", and a new
>> "funcall" should be provided which does not catch signals.
> I still think we should be pragmatic about that, not radical.
That's exactly what I am. The straightforward code doesn't
catch&rethrow, so rather than let people do funcall_without_catch by
testing if the not_so_plain_funcall has caught a signal and then rethrow
it, it makes a boat load more sense to do it the other way around and
let those who need the signals to be caught to request explicitly the
not_so_plain_funcall.
> If the cake can be had and eaten, too, why not?
I'm fine with having both funcalls available. I just want to have the
"raw" funcall advertized at least as much as the other, and
the other one built on top rather than the other way around.
I actually find it difficult to believe I have to argue this point.
It's so blindingly obvious from a simple engineering perspective, not to
mention the decades of experience with using a "raw non-catching
funcall" from Emacs's C code.
Stefan
next prev parent reply other threads:[~2015-11-26 20:11 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-24 19:41 Dynamic modules: emacs-module.c and signaling errors Eli Zaretskii
2015-11-24 19:45 ` Eli Zaretskii
2015-11-24 20:12 ` Tom Tromey
2015-11-24 20:49 ` Eli Zaretskii
2015-11-24 21:34 ` Paul Eggert
2015-11-24 21:55 ` Daniel Colascione
2015-11-25 6:52 ` Paul Eggert
2015-11-25 7:03 ` Daniel Colascione
2015-11-25 7:14 ` Paul Eggert
2015-11-25 7:18 ` Daniel Colascione
2015-11-25 7:23 ` Paul Eggert
2015-11-25 7:25 ` Daniel Colascione
2015-11-25 7:49 ` Paul Eggert
2015-11-25 7:52 ` Daniel Colascione
2015-11-25 7:58 ` Paul Eggert
2015-11-25 8:12 ` Daniel Colascione
2015-11-25 8:24 ` Paul Eggert
2015-11-25 8:50 ` Daniel Colascione
2015-11-25 9:11 ` Daniel Colascione
2015-11-25 18:19 ` Eli Zaretskii
2015-11-25 18:26 ` Philipp Stephani
2015-11-25 19:19 ` Eli Zaretskii
2015-11-25 21:52 ` Philipp Stephani
2015-11-25 17:34 ` Paul Eggert
2015-11-24 22:21 ` Tom Tromey
2015-11-25 6:55 ` Paul Eggert
2015-11-25 17:30 ` Eli Zaretskii
2015-11-25 17:34 ` Paul Eggert
2015-11-25 21:23 ` Stefan Monnier
2015-11-26 15:42 ` Eli Zaretskii
2015-11-26 16:36 ` Stefan Monnier
2015-11-26 17:08 ` Eli Zaretskii
2015-11-26 19:28 ` Stefan Monnier
2015-11-26 19:34 ` Eli Zaretskii
2015-11-26 20:11 ` Stefan Monnier [this message]
2015-11-26 20:19 ` Eli Zaretskii
2015-11-26 21:20 ` Paul Eggert
2015-11-26 22:29 ` Philipp Stephani
2015-11-26 22:33 ` Philipp Stephani
2015-11-27 1:06 ` Stefan Monnier
2015-11-27 1:10 ` Daniel Colascione
2015-11-27 15:06 ` Stefan Monnier
2015-11-27 8:12 ` Eli Zaretskii
2015-11-27 9:11 ` Eli Zaretskii
2015-11-27 12:25 ` Aurélien Aptel
2015-11-27 14:44 ` Eli Zaretskii
2015-11-28 23:31 ` Paul Eggert
2015-11-27 1:21 ` Stefan Monnier
2015-11-27 8:26 ` Eli Zaretskii
2015-11-27 15:15 ` Stefan Monnier
2015-11-27 15:57 ` Eli Zaretskii
2015-11-27 16:29 ` Stefan Monnier
2015-11-27 17:38 ` Eli Zaretskii
2015-11-27 17:54 ` Stefan Monnier
2015-11-25 18:10 ` Tom Tromey
2015-11-25 18:15 ` Eli Zaretskii
2015-11-25 18:09 ` Philipp Stephani
2015-11-25 21:19 ` Stefan Monnier
2015-11-26 15:41 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfuzstuv1.fsf-monnier+Inbox@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.