From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Introducing thread-safe Tramp Date: Fri, 27 Jul 2018 21:42:04 +0200 Message-ID: <87sh44pisz.fsf@gmx.de> References: <8736wa9c5s.fsf@gmx.de> <87wotkn6do.fsf@gmx.de> <874lgn8x6l.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532720451 17631 195.159.176.226 (27 Jul 2018 19:40:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2018 19:40:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Drew Adams , emacs-devel@gnu.org To: Filipp Gunbin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 27 21:40:47 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fj8bU-0004OA-G4 for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2018 21:40:44 +0200 Original-Received: from localhost ([::1]:42775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj8dZ-0006uM-Lt for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2018 15:42:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj8cz-0006uH-BU for emacs-devel@gnu.org; Fri, 27 Jul 2018 15:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fj8cw-0006Vw-7P for emacs-devel@gnu.org; Fri, 27 Jul 2018 15:42:17 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:35233) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fj8cv-0006Ur-T0 for emacs-devel@gnu.org; Fri, 27 Jul 2018 15:42:14 -0400 Original-Received: from detlef.gmx.de ([212.86.62.115]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LyEJp-1g5yPY20Sz-015XPa; Fri, 27 Jul 2018 21:42:05 +0200 In-Reply-To: (Filipp Gunbin's message of "Fri, 27 Jul 2018 22:04:04 +0300") X-Provags-ID: V03:K1:I6Ex56y7u0MKrjuhLW2ZuYEc8aMalS/o1HkgmTffzB91Ean9vwA ++XEsNOwoQeQhjgwHfyN2eyZNVkTkB3QWOMAcfD7Jz1WWtwud4Mw2F5qOu+5D2DiaUd4VMs MoJmi8/+vzh/p46/DE01+2BtG8fhQf0R2aYlT7SgnrOJJ+ove/WsohqtsQwlrvXDWshfveV B45VUXotDS3VAhFoMBIgQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZZo7MagAnac=:54AMhsqyFJsXnXJcnSH2Mm BxlHgeGeWRObg10NjR/jlrbRgY4ZTqgHbBStDkdxT6hcqPt2Lffjz33X1KcCVeOsu6g8zvd8n HkijkxRBf2X0lhDU2QlL7ZoHVcH/GIlhRvM3Whjo+dm2IaCLJK9PUKLILXmzgm2oHjpyOYN/k v/kLZ1XAeBqZbEFrU4tqELDB0u5w26Cy4U7edQGJ4c+IBY0knbYlg5s0kD4E5TWLJ7LH/6WE0 T26gHevigTIoNRo6QyXbI8PK289+1LN8wvRnevnzP2vAsLLAnoEC1VfM3jlgwi3JQmjgSxyTH UI9amn/7EOSqPigs/EDCtYJMufVCG5SUKZPYgu++02yFvcuteitmUV2/dE4LyianEuopU6Ka/ aQOMb3Q3i+rQy69q+UiK5wjV+gsOfq4wUYSrSxTbr5T0FULwljowY9Qq3ug79pm4gcCo9uJoV c/eij1Ll6H+WQe1y5DdUaKUgECFFA99c0/B+QFvvGy4bxuD0a6tK8P29nEL/UEn//J2ra4+Va TIkurbnxZZ2C0vKqQu//5/fs12vANIoGMIeXUq9d9FZYV/Cu+nu6r8YdQmbY9Q60oW0MKboOR o8NFQIM7ibEe8z1cYy3Zzvi4IM7ruxm/nhuG7mU40OP/lPyvHrNO/ZfxHOxGtGXjIdpyN185S K7zevKwZGtti8Fo3IZmd+CIkJXKyWylM9cs1O3Irj4q3CbEasKIN/7nZ3/v9hgix5uOPzefjx m5LTp9LffuuWQX1KnhSY7Tf4rCle4d60WDXHtAwxSFjm1mYPwbN8evD/6knVNYKRVsNgqoZt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227871 Archived-At: Filipp Gunbin writes: > I don't like prefix arg, too. It feels like prefix arg should change > the user-visible behaviour of the command, and running asynchronously > feels more like a technical detail, though important one. It is user-visible. If you visit a file asynchronously, Emacs is still responsive, and you can run other commands. For example, during asynchronous loading of /ssh::~/src/emacs/admin/* I was still able to call gnus and read my emails. > Maybe there could be rules for find-file to use async behavior by > default, like: > > - When a non-local method is explicitly used (that is, not /sudo) > > - When default-directory is on a remote host > > - When a file being visited is greater than some customizable size I was thinking already about. find-file-asynchronously could be a regexp or a function, determining whether a file should be visited asynchronously, or not. > - When a special command was given before (analogy with `C-x RET c' was > already mentioned here). That special command by default could "toggle > default". It could accept prefix arg, say C-u for "force sync" and C-u > C-u for "force async". That way sync/async preference will be decoupled > from the actual command, and could be added to any other command in the > future. I will play with these proposals. Best regards, Michael.