From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [GNU ELPA] New package: tramp-locproc Date: Thu, 02 Jan 2025 12:47:38 +0100 Message-ID: <87cyh5309x.fsf@gmx.de> References: <87r05p3ztq.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2830"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Bj=C3=B6rn?= Bidar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 02 12:48:34 2025 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 1tTJgn-0000ax-IZ for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Jan 2025 12:48:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTJg1-0004mG-6G; Thu, 02 Jan 2025 06:47:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTJfz-0004ly-Vr for emacs-devel@gnu.org; Thu, 02 Jan 2025 06:47:44 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTJfx-0007P9-Lj for emacs-devel@gnu.org; Thu, 02 Jan 2025 06:47:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1735818459; x=1736423259; i=michael.albinus@gmx.de; bh=tU6EIrymocG6mPHYY8gjCqLivIzbSy1dHCLVYPpRQrk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=F4aaN8xK8sarpZtXxdrvXnmdA+Bva3op3ioyg/n0q9rArkW5Az7MIGORffcnYeFI mbK/Fx3cVzZh+El4AJ5Rvt4AH6rsFSFf8IRCtJU1ZIPRV/5p9fF4rQyvs2aaVxznQ iGE10y2ZPujjzN+PytCsFs0rAaHwwYwBOPUBYIaYVBCCVXSClN6OxjvleAADagWD8 xXgEh6JZkVf/zI5qCLeOOdq54/kVBDBxjeA1VBzRgpnr5BEWM4X8osFfmdt1EHJu+ wm87W9jyF7hP4jpnzgjDN0pYyT8qgTSiJ38F66Q3Q2Kl8EL/Gx1olrzizo2JQgmOa 7cnnpKVB9z4DOEpWwA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGyxN-1tFnHk0o5r-000Sqq; Thu, 02 Jan 2025 12:47:39 +0100 In-Reply-To: <87frm2uv02.fsf@> (=?utf-8?Q?=22Bj=C3=B6rn?= Bidar"'s message of "Wed, 01 Jan 2025 22:41:49 +0200") X-Provags-ID: V03:K1:dMmJUdwkNMuSUFIN7K+qc21b4RgWf3c9Z4l4DtqPggBQjmH9Jgf cgOiAQnXv7PrYk5DRInJbgE0XJtYk8RV5tqQxyoW3XDJpgYZpaVpZJ72480osBhmw6V/Ax3 GlzazQLB2ClXob7asLv1H9qgkZY0hjaqjXAD+7kF8Kh00vQIBT+2ag2UQngjMrbqBTKSa/u crTCuub+HGpTmsWXt0mMg== UI-OutboundReport: notjunk:1;M01:P0:vTXboFQpCfM=;y8VwZ8cTFxqeNCyzlTDSXhlXo2F T8Dj2ZARBRxUMOyl5/rQQHMoNNgIJBOzjInx8x+XBtuSYetYildc5CsqTdlNkhUfp13F5IYMf gSWRccdfqabqoGVbwpEE+Kk/wQcSgDmUEXVpxkWnz0kiyp7GjhrOPdKCH3w4IQxvk8ItCx5nL JK2y9iXT9GYcxKkjF/DvJbe02kB6UdlhmQDcy2x0LbLDpvA/Tt5QgmvJahPCltpne3OadU4Hg RBK8OWNPA44LRUTeNJXvnY4Ai7yp0ZV4o5zahl0dkbnGRz/h4yfO7ohXEb2LgrR1ISTdN7i1A uvRi38R4KEnZz/2OZ05YDk/f7L3K+dMXVkrMYlW+bnNVRIQ72VZgTSOIexEMUO0ltNuUejtfi CkrNrXLYNDv0rx/hlzvUP7niRPCVG8bhRnUYM1snwTjWYLqlr3vouQh3XgOVV9zCxfv/sjNmu vvUErUUmAp1eM7DfAxq/E63i7FRq462S7Flu/cGzDhE9uxJ8vYhBLTdSyG/3d675sUQI6nnxM eF+qM3vgRURG2V6fPvVxFlrU04ZCNQotuOwosPuTREF3rLJBBhS6Gau7zd+82hluNIH+NwyK6 u/+ikvYa/2XJcqYbsnLoZZtQBY5BkYQv+rcIQrsA5tnxfuNN6tBu6Qe5RsRDHXj8824wQcTFf He2ChXuUV6vmLXwY0nhnykPQ+JhW2FZ46utVtCKJw80MYMeP2tA/NbM5ohK0u+v/xJWBtedFh 93UPZPDYw6q386QHKx8EsC6/Fl3JnCqXidb/7JvCDmerFKMBvOBCXZsFmKoHtmA9CEo/cmip Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net 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_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327564 Archived-At: Bj=C3=B6rn Bidar writes: Hi Bj=C3=B6rn, >> I would like to submit a new package to GNU ELPA: tramp-locproc. >> > > Why not make this a opt-in tramp-module? I wonder if a longer name would > be better as it does speak better for it self. Why not tramp-local-proces= s? I don't want to add it to Tramp proper, because it implements something out of the canonical remote files spec. Moreover, for the "sshfs" method, it overwrites the default implementation. This might confuse people. And I don't know whether it is mature enough to be used. First, I'd like to get user feedback. About the package name ... I thought indeed to use the longer one, as you've proposed. Finally, I've decided for the shorter one. I don't see a disadvantage, people decide to use a package based on the description, not on the name. >> Beside the obvious advantage to run local processes over remote files, >> there is also the disadvantage that file names are adapted in order to >> reflect their local mount location. > > When displayed in Emacs or for the processes executed? Both. >> ;; Replace handler functions. >> (setcdr (assq 'exec-path val) #'tramp-locproc-handle-exec-path) >> (setcdr (assq 'make-process val) #'tramp-locproc-handle-make-process) >> (setcdr (assq 'process-file val) #'tramp-locproc-handle-process-file) >> (setcdr (assq 'shell-command val) #'tramp-locproc-handle-shell-comma= nd) >> (setcdr (assq 'start-file-process val) #'tramp-handle-start-file-pro= cess))) > > You it be possible to make this a default or fallback action depending > on the users intention? E.g. by using a prefix arg to invert the > default. > > The default then being either to call the command as a local process by > default or explicitly by using a prefix argument. Might be an extension for later. But I fear people get confused. The don't call `make-process' directly, the call something like `compile' or `grep-find', which have their own idea of prefix arguments. So we'll need rather an explict enable/disable knob. Added to the TODO. Best regards, Michael.