emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interrupting an emacs server from outside emacs


From: Julien Danjou
Subject: Re: Interrupting an emacs server from outside emacs
Date: Thu, 16 May 2013 14:49:22 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

On Thu, May 16 2013, Renaud Casenave-Péré wrote:

> I am trying to control emacs from outside, and while it is quite easy to 
> execute
> a command using emacsclient --eval, if that command is stuck for whatever
> reason, I would like to be able to interrupt it, as I would type C-g from 
> emacs,
> but remotely.
>
> for example, if I execute this from a terminal:
>
> emacsclient -e "(sleep-for 50)"
>
> I would like to be able to cancel the sleep command from the terminal like 
> this:
>
> emacsclient -e "(keyboard-quit)"
>
> or something. Being called keyboard-quit, I know it wasn't designed to be used
> from the terminal, but this being emacs, surely there is way? Using 
> emacsclient
> or with unix signals, or something else.
>
> Does anybody know such a trick?

IIRC, it has already been discussed on this list.
I think you're looking for `debug-on-event' which by default allow you
to send SIGUSR2 to emacs to get a debug backtrace.

-- 
Julien Danjou
// Free Software hacker / freelance consultant
// http://julien.danjou.info

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]