From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28066: eshell-tramp sudo ignores C-c Date: Sun, 20 Aug 2017 21:29:33 +0200 Message-ID: <87378mavhe.fsf@detlef> References: <87a833uahu.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503257415 9592 195.159.176.226 (20 Aug 2017 19:30:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 20 Aug 2017 19:30:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28066@debbugs.gnu.org, yegortimoshenko@gmail.com To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 20 21:30:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djVvE-0001xf-02 for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Aug 2017 21:30:08 +0200 Original-Received: from localhost ([::1]:51934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djVvJ-0006KN-1r for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Aug 2017 15:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djVvC-0006IY-Lv for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2017 15:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djVv9-0003lH-CE for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2017 15:30:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38245) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djVv9-0003kx-8Z for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2017 15:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1djVv8-0004qL-Tq for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2017 15:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2017 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28066 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28066-submit@debbugs.gnu.org id=B28066.150325738418570 (code B ref 28066); Sun, 20 Aug 2017 19:30:02 +0000 Original-Received: (at 28066) by debbugs.gnu.org; 20 Aug 2017 19:29:44 +0000 Original-Received: from localhost ([127.0.0.1]:46926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djVup-0004pS-Rh for submit@debbugs.gnu.org; Sun, 20 Aug 2017 15:29:43 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djVuo-0004pC-Ad for 28066@debbugs.gnu.org; Sun, 20 Aug 2017 15:29:43 -0400 Original-Received: from detlef.gmx.de ([213.220.149.52]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MhiTL-1dwvvR34Hz-00MtWQ; Sun, 20 Aug 2017 21:29:34 +0200 In-Reply-To: (Richard Stallman's message of "Sun, 13 Aug 2017 21:51:01 -0400") X-Provags-ID: V03:K0:OUYKvc5RPA8X4kD7q0T8IDpdUWs5rKOOOm5v5hEv3WaZqAdHX4a Kv7XgG8sVi78NZaoh7cHK+ZI1njH9wKMj39Yi++dNLn8vJAmatiUYoRAS0iRr8iOBL6jFzp 4PsJ7eiChrViYHVhZ4Qu4eEMALNy2tRqi/Sd1+FSpfJ7sJBb8U8o/p7QAWlc8x9Dk/qknSR 4DulTkCwBzFrNyY5vcq4g== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ji8q3gLQfEM=:kR22oeWS8tXzv+83TAHUAR mLUzdDA1gZG1nIOYMVdvD0q8o9kjgVFIkGkPgT7ShP+j0C0m+tKboCJxdEhI23VC+hHSvhhcb Zh0yLXFHzrV9BDqA3VzbfLKNZr4g6tjA6PHemVIRC3Ny9sdCG36B0YACvAIZSIiZ6LNeUipqB KAmLNuSOlV0BSsy7houOKvOC+ymopRn0YTPR3LoQxGwfBXJw0FiHcwVy/j3J+E7E3Jykm5NaU WYySPJ1A+8ZufgWCvZexATj4Zno2HXNZz80gP8FkY6AWXXpwWIK1yf+554rUNJK+7HMqXEmy+ kHHsr+0u5LzXrnEafNTijC/2wJp0PrrhMTHmqw54s+JkqtRcLwOMBaBZX95Cg2RfeckhWgyfh 8TCpdHqY4x7wTmZdtRInjmP8lCwbaxHj4X1q5JYfDInu+9B/VlBgvqNYXxCheAtre6G1H3cyE NT79jLAcBO9veaSasSMSU2B7EPZXvNYVOYy1XcwbeyB8kQxYFsD+xlnui7MEGVohb32vB5Kv3 +7VxFOl0hXQt8USwTHOSqFV9gDpZW/0YUc9tOwJ95Dt3ZruANf5OlTZv9U1soKVeOE6zr7JnG kLB5NOIqNmn2reEHcJRcMefstMcENgzcs47bjyzM32yGFFdC5aXUQujbyFU6NBtk9Ocqk2K51 Xrh6/U0NY26gRt9+pUwDzCXd/99rkeS8R5BAyZGuMK8JDpsU73uSTOkHEtqUBX8Fo0rh3tP/x O+iCMUr/7rajx9UnB/lf8hUOVYRhtBpVeIiaPsqLEvdvLC58e4SYS6pMrqiZiRuEFAKW3NSI X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135956 Archived-At: Richard Stallman writes: > > > Now, if you try to leave interrupt `sleep` using C-c, it won't work. > > > Unfortunately, it is not possible to send signals to the remote process > > Tramp is running on. This has been discussed already on the Tramp ML, > > with no result. > > Maybe eshell could detect this case > and display a message to explain to the user why it doesn't work. Finally, I have implemented `interrupt-process' for remote processes. I've committed 296472f5c5 to the Emacs repository. Yegor, do you have a chance to test Emacs 26.1, whether this works for you? I've implemented this as advice on `interrupt-process', but this is discouraged for primitives. Maybe we should spend `interrupt-process' a hook where Tramp could enter? Or even a file name handler, based on default-directory of the related process-buffer? Best regards, Michael.