On 4/25/11 2:23 AM, joakim@verona.se wrote: > Daniel Colascione writes: > >> On 3/29/11 10:55 AM, Daniel Colascione wrote: >>> >>> Below is another version of the patch. I've changed the code so that we >>> instead inspect a new debug-on-special-event variable, which by default >>> is the symbol sigusr2. This way, we can extend the mechanism and use >>> another kind of special event for platforms that lack signals. >>> >> >> Does anyone have any strong objections to merging this patch? > > I haven't used your patch but I often feel the need to be able to > interrupt an Emacs that does not respond for some reason. If your patch > gives me another tool to try in those cases, I would be very interested > in having it applied to trunk. I'll apply it to the trunk then. > Would it be possible also to have some "run level 1" functionality? That > is, when the signal is sent, Emacs disables timers, font-lock etc... I don't think these features can be safely disabled from within a signal handler, but it should be possible to that work when Emacs pops up into the debugger. The "run level 1" functionality seems more general, and I'd like to focus this change on simply entering the debugger itself.