From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Renaud_Casenave-P=E9r=E9?= Newsgroups: gmane.emacs.devel Subject: Interrupting an emacs server from outside emacs Date: Thu, 16 May 2013 21:04:25 +0900 Message-ID: <87vc6j2ks6.fsf@sandalphon.hinata3.co.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1368705643 16205 80.91.229.3 (16 May 2013 12:00:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 May 2013 12:00:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 16 14:00:42 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcwrP-0000lm-Lw for ged-emacs-devel@m.gmane.org; Thu, 16 May 2013 14:00:39 +0200 Original-Received: from localhost ([::1]:37300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcwrP-0000b1-A3 for ged-emacs-devel@m.gmane.org; Thu, 16 May 2013 08:00:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucwr0-0000NW-8d for emacs-devel@gnu.org; Thu, 16 May 2013 08:00:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucwqq-0008Hb-Px for emacs-devel@gnu.org; Thu, 16 May 2013 08:00:13 -0400 Original-Received: from ns211170.ovh.net ([188.165.211.207]:39766 helo=casenave-pere.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucwqq-0008BD-L7 for emacs-devel@gnu.org; Thu, 16 May 2013 08:00:04 -0400 Original-Received: from sandalphon.hinata3.co.jp (pb6abe08f.tokyff01.ap.so-net.ne.jp [182.171.224.143]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by casenave-pere.fr (Postfix) with ESMTPSA id 3C1156C for ; Thu, 16 May 2013 14:00:08 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 188.165.211.207 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159615 Archived-At: Hi, I am trying to control emacs from outside, and while it is quite easy to ex= ecute 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 e= macs, 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 u= sed from the terminal, but this being emacs, surely there is way? Using emacscl= ient or with unix signals, or something else. Does anybody know such a trick? Thanks, --=20 Renaud Casenave-P=E9r=E9