* Should 'signal' sometimes return?
@ 2016-07-21 14:31 Paul Eggert
2016-07-21 15:43 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggert @ 2016-07-21 14:31 UTC (permalink / raw)
To: Emacs Development List
Bug#24047 proposes changing Elisp's 'signal' function to not return.
Although this has been the documented behavior for decades, apparently
there has been a back door in 'signal' for nearly as long, which causes
'signal' to return sometimes under control of the Elisp debugger. The
proposal is to remove this backdoor. If this proposed change to Emacs
would cause problems for you, please send email to
24047@debbugs.gnu.org. Thanks.
http://bugs.gnu.org/24047
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Should 'signal' sometimes return?
2016-07-21 14:31 Should 'signal' sometimes return? Paul Eggert
@ 2016-07-21 15:43 ` Stefan Monnier
2016-07-22 12:12 ` Paul Eggert
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2016-07-21 15:43 UTC (permalink / raw)
To: emacs-devel
> Bug#24047 proposes changing Elisp's 'signal' function to not
> return. Although this has been the documented behavior for decades,
> apparently there has been a back door in 'signal' for nearly as long, which
> causes 'signal' to return sometimes under control of the Elisp debugger. The
> proposal is to remove this backdoor. If this proposed change to Emacs would
> cause problems for you, please send email to 24047@debbugs.gnu.org. Thanks.
There's indeed one back-door, which is that Fsignal can return from
a `quit' signal. This is part of the support for debug-on-quit and
I wouldn't want to lose this.
I agree that the current situation is unsatisfactory.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Should 'signal' sometimes return?
2016-07-21 15:43 ` Stefan Monnier
@ 2016-07-22 12:12 ` Paul Eggert
2016-07-26 16:43 ` Davis Herring
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggert @ 2016-07-22 12:12 UTC (permalink / raw)
To: Stefan Monnier, emacs-devel
On 07/21/2016 05:43 PM, Stefan Monnier wrote:
> There's indeed one back-door, which is that Fsignal can return from
> a `quit' signal. This is part of the support for debug-on-quit and
> I wouldn't want to lose this.
>
> I agree that the current situation is unsatisfactory.
As I understand it, the debug-on-quit support is intended to catch the
user typing C-g, as opposed to altering code that calls 'signal' so that
it returns. If so, how about keeping the current approach for C-g, and
merely changing 'signal' itself so that it does not return? I wrote a
new patch to do that, and will send it to Bug#24047.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Should 'signal' sometimes return?
2016-07-22 12:12 ` Paul Eggert
@ 2016-07-26 16:43 ` Davis Herring
0 siblings, 0 replies; 4+ messages in thread
From: Davis Herring @ 2016-07-26 16:43 UTC (permalink / raw)
To: Paul Eggert; +Cc: Stefan Monnier, emacs-devel
> As I understand it, the debug-on-quit support is intended to catch the
> user typing C-g, as opposed to altering code that calls 'signal' so that
> it returns. If so, how about keeping the current approach for C-g, and
> merely changing 'signal' itself so that it does not return? I wrote a
> new patch to do that, and will send it to Bug#24047.
Just a thought: it could be useful to retain the (signal 'quit nil)
behavior as an analog to (edebug), although I would understand keeping
just the latter.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-07-26 16:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21 14:31 Should 'signal' sometimes return? Paul Eggert
2016-07-21 15:43 ` Stefan Monnier
2016-07-22 12:12 ` Paul Eggert
2016-07-26 16:43 ` Davis Herring
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).