From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: process-file instead of call-process in proced.el? Date: Mon, 28 Mar 2022 17:53:19 +0300 Message-ID: References: <87o81shd6m.fsf@gmx.de> <87pmm8pqcq.fsf@gnu.org> <87k0cgh8g1.fsf@gmx.de> <87pmm8o8gc.fsf@gnu.org> <87bkxrhn1e.fsf@gmx.de> <87tubjfpyo.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: Roland Winkler , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 28 16:54:42 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYqlW-00059X-5H for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Mar 2022 16:54:42 +0200 Original-Received: from localhost ([::1]:43548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYqlV-0003Zk-3t for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Mar 2022 10:54:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYqkK-00023G-3q for emacs-devel@gnu.org; Mon, 28 Mar 2022 10:53:28 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYqkI-0004Wi-4m; Mon, 28 Mar 2022 10:53:27 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8FE1A5C0176; Mon, 28 Mar 2022 10:53:23 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 28 Mar 2022 10:53:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=+SN8UIJefVeZB2RWl5jMrSZWyV6hxps2o34+Ps ow3Qs=; b=PcOkH2Ox487fCsBCR/8LdZ5gcjU5IxXl4577P4TQn/Fgw/gYupjG1t BJarbLWsW1RrRnWAGYJ40mHYCl9NlSfp9M2daqkf2S3IwSTGeEalmPaAkrnUdO02 FQs+HL93HEaieacPD2QRIvkL0r8omPtm1byBxWlQcfkb0wVh6M0THJP69QHxxjvd ojLV84g/DzVa7OJh/ba6t15g240rKdzGMZTh3pvC6wRwHxH5lahOBt7LKHiXGV3n jY4VLyyDYGdecoTqRldr1jKJiw3gJm6/s3D+GIstiZmSZYhsMlnDy/6QpFV1U9KP 3eokWlUJRic6K3fsPg2r6/I9girSWPqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=+SN8UIJefVeZB2RWl 5jMrSZWyV6hxps2o34+Psow3Qs=; b=bCe8WnK9aKAMwsMoFqVw1INShJzyXy8gU HE18JPpZc6t8iG6VTIP4VOJb/VBisTtb20b5NibPaN2dpkpllsHHXiqIDieOqnfx 3gcVFPR4JtJ5KrGB9KsjrnjwVWrqePgbQcev38vbHkukpPZ+Lp9lK9Hj+0Lzk4Wt gW3uW83QEGTP+jTQgp3Ady8j6QjScEDBAZZ9gemqI0jplOXig6Qd6W8pNMGQI6ef /bOpmr1oCDUMNj+2z0NaGaw1OhLGyTpeeV9DEtN6OfSpKpCSDC2K3Rmm9Dp04cE1 W5a3N1lAr7l6mzMbkPmuxYvV4OtOi7BJMhbkpef8u8VpeYqKN+L7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehjedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepvdevkeffvdeuvefhuddtjeehkedvueefveettddtveduudfgieffieev ieevhfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epfhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Mar 2022 10:53:22 -0400 (EDT) In-Reply-To: <87tubjfpyo.fsf@gmx.de> (Michael Albinus's message of "Sun, 27 Mar 2022 16:08:15 +0200") Mail-Followup-To: Michael Albinus , Roland Winkler , emacs-devel@gnu.org Received-SPF: pass client-ip=66.111.4.28; envelope-from=fgunbin@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287526 Archived-At: Michael, thanks for working on this, On 27/03/2022 16:08 +0200, Michael Albinus wrote: > + (if (tramp-compat-funcall > + 'tramp-send-command-and-check > + vec (format "\\kill -%s %d" sigcode pid)) > + 0 -1)))) > + Can the command be a connection-local variable?. Then the ability to customize, existing before deprecation of proced-signal-function, would not be lost. > (setq priority (number-to-string priority))) > - (let (failures) > + (let ((default-directory > + (if (and current-prefix-arg (stringp proced-remote-directory)) > + proced-remote-directory temporary-file-directory)) > + failures) As for me, I'd leave the proced-remote-directory thing out. IIUC, it allows to send signals to remote processes from "normal" proced buffer, with local default-directory (with prefix arg). I'd be fine with requiring user to open proced from remote directory, with default-directory already "prepared". Thanks. Filipp