From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Newsgroups: gmane.emacs.help Subject: Re: tramp: how kill process Date: Sun, 22 Nov 2015 21:26:20 +0100 Message-ID: <565224EC.9090705@gmail.com> References: <56520381.3090900@gmail.com> <87vb8tc1oq.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448224003 23179 80.91.229.3 (22 Nov 2015 20:26:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 20:26:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 22 21:26:38 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1a0bDZ-0000ki-75 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 21:26:37 +0100 Original-Received: from localhost ([::1]:57362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0bDZ-0004r3-1H for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 15:26:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0bDO-0004qs-H1 for help-gnu-emacs@gnu.org; Sun, 22 Nov 2015 15:26:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0bDL-0003KM-AO for help-gnu-emacs@gnu.org; Sun, 22 Nov 2015 15:26:26 -0500 Original-Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:35832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0bDL-0003KD-24 for help-gnu-emacs@gnu.org; Sun, 22 Nov 2015 15:26:23 -0500 Original-Received: by lfdl133 with SMTP id l133so15305761lfd.2 for ; Sun, 22 Nov 2015 12:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=jk0Rnbwrol5nsy0fg88yDlVQgW+c6e62R1HlckmXVCg=; b=VDFZ89mvnVyDBE876sGUJglQnu9pKATr7QOyeHg7k/W/3GgrNvyesUd0EMbqU+TcTa KYDKqv4hjIun7mJe3j65TI6/84cRYrX5fL641x3I1AP8C+U6CRn9CJZiQQQ6QHKukWsD O71GzvtJRnSCzxhtQ8iWywg3fc3zvfCqzqoQDeQGJh8M3/gmZmtQq5tHex/NMASjgI77 wiYy8EQ/TdPtJ5pSlMUSGt/d2+IRKvV2Chx5Ui6b6EAJb8xzR1OnFOl2PQbgUccGKCWe pKrhJ1d6QRhMcgbTM3bdGa2OmHYwjbkmr6FRktPkvUstmdYL1IfX0UBeas45bYwPDtk5 0a+Q== X-Received: by 10.25.159.130 with SMTP id i124mr9644617lfe.144.1448223982397; Sun, 22 Nov 2015 12:26:22 -0800 (PST) Original-Received: from [192.168.20.129] (89-71-25-26.dynamic.chello.pl. [89.71.25.26]) by smtp.googlemail.com with ESMTPSA id iy6sm1350510lbc.16.2015.11.22.12.26.21 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 Nov 2015 12:26:21 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <87vb8tc1oq.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108185 Archived-At: Michael, I debugged list-processes-kill-process. it does not work because (get-text-property (point) 'process) returns nil, when point is on the line with process to be killed. But body contains the command `delete-process`, which You probably wanted to suggest me through `d' shortcut. that one worked:) thank YOu for Your help best regards! On 22.11.2015 19:46, Michael Albinus wrote: > Paul writes: > >> Hallo people. > > Hi, > >> When on "/sudo::/root" tramp buffer, I run the following command: >> >> (start-file-process "my-process-name" (get-buffer-create >> "*my-process-output*") "pathToProcess") >> >> I can see it in M-x list-processes. >> >> Unfortunatelly the following does not kill it: >> >> C-x C-f "/sudo::/root" >> M-x: (kill-process "my-process-name") > > `kill-process' needs a process as argument, not a process name. > >> How to do it in elegant way then? > > M-x list-processes > > Move to the process to kill, and enter "d". > >> regards > > Best regards, Michael. >