From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Remote process attributes Date: Mon, 04 Apr 2022 15:21:01 +0300 Message-ID: <83zgl1dope.fsf@gnu.org> References: <87pmlxcdx1.fsf@gmx.de> <837d85f61v.fsf@gnu.org> <87lewlccbc.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38142"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 04 14:23:12 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 1nbLjk-0009n9-1p for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Apr 2022 14:23:12 +0200 Original-Received: from localhost ([::1]:41066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbLji-0003Ka-Gw for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Apr 2022 08:23:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbLhv-0001r2-R4 for emacs-devel@gnu.org; Mon, 04 Apr 2022 08:21:20 -0400 Original-Received: from [2001:470:142:3::e] (port=59360 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbLhv-0005mK-IU; Mon, 04 Apr 2022 08:21:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1H9NiEyF5ro3cycl1nac/mIRbuUtoU8MK8L8aT6RBgo=; b=J1ZX6lXzTKxj mBZ2EJI+ZPQ3veguXZWgXYrcx35UfmoXQK5f2oAC9DnOgGHmcamecJmg+FHXYZ72lg7QiwTFZn730 IeA5uHt4k16/ldqYle8MM0LkEE5VCPCsfHWOezeUxhZvEqK9cVhr1OlCspQlBPQ5vZwxuc1YXteBy uC2JfQucBPpCYrbfVjqH3rZYGgr+lZJbxkcbQ5risLWG0YI9HSsh0hL5u3DOP6ePDvsmKBndbdPwf i4MxOgHyfwabhfE864v/2nIyJ43NsE+Ujq/P+eAjjEFGx6lQIYQH53tUKwlAZGBD2wMiXQZCccOoe 7yMlG8mhozV973lGkNgUbA==; Original-Received: from [87.69.77.57] (port=4541 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbLhb-0006uB-4H; Mon, 04 Apr 2022 08:21:03 -0400 In-Reply-To: <87lewlccbc.fsf@gmx.de> (message from Michael Albinus on Mon, 04 Apr 2022 13:33:59 +0200) 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:287750 Archived-At: > From: Michael Albinus > Cc: emacs-devel@gnu.org > Date: Mon, 04 Apr 2022 13:33:59 +0200 > > > Is it really certain that the default-directory being remote is > > evidence significant enough that the user wants to list remote > > processes? Processes aren't files, and aren't even related to files > > like programs (whose executable files are looked up before we run > > them). > > I've checked all occurences of list-system-processes and > process-attributes in core Emacs, GNU ELPA and NonGNU ELPA. This is just > a handful, and all of them could preserve their behavior with the > template I've shown. Really not a big deal. > > If both functions are used somewhere else in the future, the > documentation tells what to do. And I could imagine that this > information about remote processes could be used not only in proced. Using Proced is what I had in mind. AFAIU, if Proced is invoked with default-directory being on a remote host, it will show remote processes after your changes. I'm asking whether users will indeed expect that. > What we could think about is a way to indicate proced whether to return > local or possibly remote process information. I wanted to add a prefix > argument to proced in order to trigger remote process information, but > this is already used for window selection. We could use a special value of the argument to work around this.