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.bugs Subject: bug#45256: Viewing images over network using TRAMP (errors and unexpected prompts) Date: Fri, 18 Dec 2020 09:05:45 +0100 Message-ID: <87zh2by1wm.fsf@gmx.de> References: <461b6a4f-9709-c71b-0ec3-f70d08674c9e@fastmail.com> <87360615l3.fsf@gmx.de> <87zh2djyc2.fsf@mail.linkov.net> <87czz8zusu.fsf@gmx.de> <87mtycgkkk.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40393"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Mikhail P , 45256@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 18 09:06:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kqAmF-000AOb-P7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 09:06:15 +0100 Original-Received: from localhost ([::1]:34756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqAmE-0004Eo-7q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 03:06:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqAm2-0004Ec-Ej for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 03:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqAm2-0000x6-6O for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 03:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqAm1-0003U2-Uc for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 03:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Dec 2020 08:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45256 X-GNU-PR-Package: emacs Original-Received: via spool by 45256-submit@debbugs.gnu.org id=B45256.160827876013381 (code B ref 45256); Fri, 18 Dec 2020 08:06:01 +0000 Original-Received: (at 45256) by debbugs.gnu.org; 18 Dec 2020 08:06:00 +0000 Original-Received: from localhost ([127.0.0.1]:37592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqAlz-0003Tl-NB for submit@debbugs.gnu.org; Fri, 18 Dec 2020 03:05:59 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:34247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqAlw-0003TS-TL for 45256@debbugs.gnu.org; Fri, 18 Dec 2020 03:05:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608278747; bh=7+BgtNpPTw+yA9er9SNllxrOPrkHL2dv+Gx7gLqEPnU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=IkAmrHhqVuZNTyjtnRwrj1NqHBCydXia5omtUt75fTB41NCjRSFUtrBKxpYK9lopW WjOk09uqFU+k8jY5dMqKL2YiA4pdYmGqdUL908HnNsn5qOssZ8GYO3SuQva1xr3EXB Nl9UZv9jPck5b2LXo9PBOJQP6nhWhuj1dHv9+FWw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.38.187]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MDhhN-1kyfMa02o3-00AkMj; Fri, 18 Dec 2020 09:05:47 +0100 In-Reply-To: <87mtycgkkk.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 17 Dec 2020 23:59:55 +0200") X-Provags-ID: V03:K1:zoMTgvIakzPukz2+Rf0HICm8BIUpZJ6p6kWvoUM6Gn6NjLZxrV7 5g/coodZk188ZDLAoAE7/vodcihICnerXPHVfjJ0n7yu2hgPGbwqBN+FH2pbQpWjokrBTks r79cNRSnJjI4jMbu5e54OfleAy90WsP0+7bD/3tp2Ih1DdnXbhS5eNmoxS3ZphtlliLmppY mqzHWhNDWDkBl6Aya87sA== X-UI-Out-Filterresults: notjunk:1;V03:K0:d2nNlZIRWtI=:kqEdlRwpBvjY0TK3wGZJjv tS7hPkB25ENSU/OUOTYy+G9W2uAzw+Z5LUNN5o70Rf90jYeIx+xxh6KHf/6aOWQDhZASZ333Z VB12Un9ybUaXUuHJAqhzN0+8D2P/IUv3fMcC3+upW4UlhAsAngPxIE+srDpuL1QVEt5jfTita P0WF51hYz2vsymCUIou690we+EVAUhdiuhC9ThU4oUWcpB9ubDC0Ucfwh/gzWXqf23aSgBBbG 3cgUMEW44HnuXjlLAo+YbfruCpDFzSPzuQ6AoMo48flawYwG8NXBh1yj6YyQWYRiOSaloCGVo 1IXsVlDlSKA6ZQWONXXJck/MwQVMMJjutoPBYbGLzk6/bd1zgnrI6FcZ95VvgTbF8iWNH/Dyf dWQcfHSidjbuBKxCW9vosXhLm/hY5suMwaW/BnRXBNs5EZXF9XI6JD1ayePU1AplsHsh9Ygpw QgnqHfHvC+BpbA3jjhMAXL0QOgVMqv9Qqq/Zfzp6S+2TtO0mkqBO685W9RNAZlXmw20g6F8qv dQ99WDPBHO3Rfve9QlKfgiu8qmWorBDPhk59tXmOqy9Y61yi6Tz29EX9Ouz/Cb+oiFIiVOxLK DkujK/GByYTBwsnstW5ic8F9+k+kcybMvjxySnQzxWkYO9+N741aZiwYf8sBjlXCN6aKxsTbc w38qY8jqLY6rcqHPbOKB5u8q17sXsozwscNyVCoKzKhfgNRyJJS4McB0QIVJYlpdUctBLIheR Q4jCA8T/tCbRT9kT2QBH4rcgmFVeIsCMkpFg3ByAyUvXCWBmDz7futYaocX0Zb1gagcGO2Z4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196307 Archived-At: Juri Linkov writes: Hi Juri, > Additionally to these changes, I also added canceling the previous timer > before starting a new timer to avoid several simultaneously started timers. > This improved responsiveness in non-remote case. In remote case it helps > a little too, but still needs the lock for extremely slow connections. Why cancelling the *previous* timer? It has done already part of the job, so I would expect it will finish faster than a newly started timer. > Here is a complete patch (BTW, I'm not sure if the check for file-remote-p > can be removed now): Yes. file-readable-p has performed already a remote operation (it runs "test -r "), so a test file-remote-p doesn't make sense. You haven't protected the timer function against the remote-file-error. Are you sure it cannot happen? Best regards, Michael.