From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Introducing thread-safe Tramp Date: Sat, 28 Jul 2018 03:09:24 +0700 Message-ID: References: <8736wa9c5s.fsf@gmx.de> <87wotkn6do.fsf@gmx.de> <874lgn8x6l.fsf@gmx.de> <87wotgpj8s.fsf@gmx.de> <87o9espiqf.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1532722095 9169 195.159.176.226 (27 Jul 2018 20:08:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2018 20:08:15 +0000 (UTC) Cc: Emacs developers , Drew Adams , Dmitry Gutov To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 27 22:08:10 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 1fj922-0002GX-Ev for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2018 22:08:10 +0200 Original-Received: from localhost ([::1]:42833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj949-0005ek-6e for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2018 16:10:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj93T-0005UG-C1 for emacs-devel@gnu.org; Fri, 27 Jul 2018 16:09:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fj93S-0007PW-I4 for emacs-devel@gnu.org; Fri, 27 Jul 2018 16:09:39 -0400 Original-Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:35268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fj93S-0007P4-Ci for emacs-devel@gnu.org; Fri, 27 Jul 2018 16:09:38 -0400 Original-Received: by mail-oi0-x229.google.com with SMTP id i12-v6so11188582oik.2 for ; Fri, 27 Jul 2018 13:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a//z6e4im0KGa22+2p7tFsxHYOlPXcwFD75gZAcyMho=; b=Zr2ximw7gx81H8fdxQbRkXmV03EddMCdy3ouWwtsMnTJQyst5K5sQVBy831c8q1u46 pEYgZoUGz612WB+uWJnmTzVvZrgICqKvCX6+MZD+Su7gZWc7pNh+/MLEC4YwqNkAckHc o1fthhzVhyz+N2hR9dkKJLpFxhWvF5l4g86OwTs/oAUKtKnrb4Ho0poUM7emcAQ1mWPQ rmdPnYr1IXSLA1DrvKlb9qNUIrAIbSKW/ClI9mUyUpR93L+4/Aa0tvVQTDthyC4AKOSE RYuGUAT4BaAqPvVn9Zw9N9GRqtxvywDPQe9CkBidnVe81tLtci60ZswYDP4edNz+y1op 7Pvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a//z6e4im0KGa22+2p7tFsxHYOlPXcwFD75gZAcyMho=; b=IMt6lGgLkg+ePwRXQwpcFa1sBnp7MGysa0ufEh4kcp5DPIZ7+m8GPaQN2IZ4jctfAy tkp9bnRNGEmzU5ve7s5HJtRkRxPUcy4XAviicflfi4+wDjSFrLkIlEqvBJK5Ch11q/7Z qpqcpk8UjyuEpCsDosSLmF1dv8BDy9iOWaDlyBAMPMdrCs7RcjTCJT280X7zR0aKKxTN XmkltETcUgVmeiaXkCOLrrNEtHeL6xx4R9YTZ5yLeSPjXz5vRshLBfWYFc9Xm8vwTmz8 oH2V4WjZXrG3yiUyH03ef928E2RwFAfYY53FYfVxghc4Pc6ThRuNjU378auRvLN3M9rs D3Bw== X-Gm-Message-State: AOUpUlFe6Zkz4xj8KR42WsVzfFcSyYMW1Tfpuoui3DQVbsPUK0fSu5AM T6OlCfWmXd+9CBSgvg+i3yxxiHVGVPrTsfIzCn0= X-Google-Smtp-Source: AAOMgpfnqgW5h/If7o8XN5X+6V9xBdW7bQ8svjntEcXe6BvR5LHvPrt6ZmiHhvhY6qQOXiDy42nHv+kofhyM82u5jac= X-Received: by 2002:aca:a12:: with SMTP id 18-v6mr7497467oik.292.1532722177660; Fri, 27 Jul 2018 13:09:37 -0700 (PDT) In-Reply-To: <87o9espiqf.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::229 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:227873 Archived-At: On Sat, Jul 28, 2018 at 2:43 AM Michael Albinus wrote: > > What feedback is given to the user after the asynchronous find command > > is issued and before the user sees the file content and can edit it? > > Nothing yet. Open point. > > What do you propose? Basically, do what a web browser does when a slow-loading URL is opened in a new tab. Create a buffer and display it immediately, either empty or with some placeholder text, to make it clear to the user that the command was accepted but content is not final. Replace with actual content when it is loaded or as it is being loaded. While the file is being loaded, the user can close the window in which it would be displayed, or display another buffer in that window, so that the buffer is not visible when it finishes loading. It might be useful to give a subtle indication that the asynchronous command finished, maybe by displaying a message in the echo area. (Browsers do that by animating a loader icon on the tab and stopping that when loaded, but Emacs does not by default have a tab bar.) Also, while the file is being loaded, the user can kill the target buffer. Ideally that would cancel the asynchronous loading operation, but acceptable behavior would be to silently abandon the content when it finishes loading. Bonus points if buffers that are being loaded asynchronously are visible as such in Ibuffer.