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: Mon, 06 Aug 2018 12:54:07 +0200 Message-ID: <87d0uvwysw.fsf@gmx.de> References: <8736wa9c5s.fsf@gmx.de> <874lgn8x6l.fsf@gmx.de> <87sh44pisz.fsf@gmx.de> <87a7qbitc7.fsf@gmx.de> <878t5tdsfc.fsf@gmx.de> <83wotcpzub.fsf@gnu.org> <87bmaiuwml.fsf@gmx.de> <877el6uwio.fsf@gmx.de> <83bmaitbwu.fsf@gnu.org> <87a7q2w4gd.fsf@gmx.de> <838t5mt9wb.fsf@gnu.org> <87muu2w2c2.fsf@gmx.de> <83600qt8mi.fsf@gnu.org> <87in4qw1fl.fsf@gmx.de> <834lgat6fy.fsf@gnu.org> <87effevy41.fsf@gmx.de> <83zhy2rnef.fsf@gnu.org> <871sbdw389.fsf@gmx.de> <83y3dksvhy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533552773 8101 195.159.176.226 (6 Aug 2018 10:52:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2018 10:52:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: fgunbin@fastmail.fm, drew.adams@oracle.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 06 12:52:48 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 1fmd84-00021B-Lw for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 12:52:48 +0200 Original-Received: from localhost ([::1]:33398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmdAB-0005cx-Ch for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 06:54:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmd9X-0005cq-T9 for emacs-devel@gnu.org; Mon, 06 Aug 2018 06:54:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmd9U-0000fS-OP for emacs-devel@gnu.org; Mon, 06 Aug 2018 06:54:19 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:35355) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmd9U-0000ey-Dy; Mon, 06 Aug 2018 06:54:16 -0400 Original-Received: from detlef.gmx.de ([212.86.52.225]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MLelb-1fnSUs1dpL-000uSp; Mon, 06 Aug 2018 12:54:09 +0200 In-Reply-To: <83y3dksvhy.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Aug 2018 18:06:49 +0300") X-Provags-ID: V03:K1:sHN8nlfmj7lVpGm4sB9lCLpcmVDgtFad4XJE4Y0yquykEmoVzsn SVRzblfBmHGeZklYNhUjfEaw7jhL3SX8R4AUbpexkKUhVbd7sxw9p6kpY3gvzR4TP8ZGT5F cUQYjIdp5yU/SMXTDRodoKzp06ap4HO2wK10A3VR/PQEyFqhOhHdYkEwfFkZCrwYdGUhbok grJK9GzIZclU6fI5wy7qg== X-UI-Out-Filterresults: notjunk:1;V01:K0:tUMvI76rigo=:kZPMIFMCzxLbrJfsD77PR6 ihbZUpsCxg10mRb3OGxSsFI7auFgekeD8qTwDcrUmOZ+KYZACj//bIbrXRgjF58RJkvcM1fa/ K1Aef1U+8PUI0lLYTXeUDV7jAfq0AUW890gqNEj8jdGH2rNuAZPDeiD/ssvIyqkgiW2XmfXN8 pcVcuxsjPFMXgu1cnGoeUAAxsA2gtHsgtKKBFBFKjQiJJxHnR21NYNdydKu8QDCtIWPy/fzWr CA6yVOxz8JY/EecuFKnVCAgn+sxRU/jL0uJgz4iZY6piYosj1WJRF5jl6dKGNKnw+3xQ3qjuw FTnQJ2gAvL2T7czCdhoUZvmYYQXzB0cEs6SIUYFeWE+0iBtPfdSS6EIpXNVtrzLEAW90Vi7yo DRtY66JmdrJlGEG9+aanjaGAb9APP101szQzIPb5AC/OIm5gcXgcv78J/wZ5Y4/y3+mJv10YY Het73iP8P0fON8WPbk2IyfeSxcTozpoy/7GCsKcZk51dQmPPjv6q9G+0HtPqvQUVgsusg5pgf 6lVpsJOLnm5P7shMYC70jz3v7qlJGnCGkg4QkLmqA/HvVqp/N9ezz7V0Ao/RUUJvXPchatnaJ SOfgE348KMwmkgrhyzuS8L1H4bFblmCn3Ebr2MVqwX+GrtRllFc0oe/PASXGIYKjsfxjlzB+U zKN3b6aftDVgFkmE+Jj1MyJEOQ13D+I4Q5X6h1cP3Jd57VST5OtgG9hP/61R+j/S/CrmspC95 8aw8yMK4denT9sxRJAoif1oZTHQnrQ20bO7smM9hJWhuKnTf9Z2J3XYj4Yit55J0CYMu3fXq X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 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:228211 Archived-At: Eli Zaretskii writes: Hi Eli, >> > But "C-x &" affects just the next command, so all you need is for it >> > to produce a boolean value, and have the next command work >> > asynchronously or not according to that value. Which probably means >> > "C-x &" should not bind find-file-asynchronously, but some other >> > variable, and that variable had better had a name that is not limited >> > to file operations, for us to be able to use it with other commands. >> > Because once we extend "C-x &" to non-file commands, it will not >> > "know" what command will be invoked after it, so it won't be able to >> > know it should bind find-file-asynchronously or something else. It >> > should therefore bind a variable which affects any command. >> >> Nobody hinders us to bind several variables in >> universal-async-argument. > > If that produces expected results in practice, that'd be fine, yes. I've slept another night over this, and I believe you are right. I've pushed a patch to the branch, that the universal-async-argument function toggles the universal-async-argument variable, and binds it before calling the following command. This is more general, and other commands but the file visiting ones would profit also from this mechanism w/o touching universal-async-argument, again. This needs to be documented better in the Elisp manual, but first we shall agree how to call this technique. "Prefix argument" is out of the game. Maybe "prefix command"? Or "prefix sequence", as proposed in this thread? Best regards, Michael.