From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous find-file Date: Sun, 02 Sep 2018 10:33:51 +0200 Message-ID: <877ek4pac0.fsf@gmx.de> References: <875zzxowlw.fsf@runbox.com> <83mut9568l.fsf@gnu.org> <87r2ii1ddf.fsf@runbox.com> <83r2ih2poi.fsf@gnu.org> <87wos9vyzs.fsf@runbox.com> <83d0u12g7f.fsf@gnu.org> <87sh2vwuyw.fsf@runbox.com> <83h8jb11ja.fsf@gnu.org> <877ek6wk9u.fsf@runbox.com> <83wos51gsn.fsf@gnu.org> <87lg8kvj8u.fsf@runbox.com> <838t4k1v98.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535877187 3885 195.159.176.226 (2 Sep 2018 08:33:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2018 08:33:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Gemini Lasswell , 32537@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 10:33:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fwNoc-0000tA-0C for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 10:33:02 +0200 Original-Received: from localhost ([::1]:39883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwNqi-0002ve-7r for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 04:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwNqc-0002uL-EG for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 04:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwNqY-00066e-FB for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 04:35:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwNqY-00066C-5B for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 04:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwNqX-0008FV-Ut for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 04:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Sep 2018 08:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32537 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32537-submit@debbugs.gnu.org id=B32537.153587724331639 (code B ref 32537); Sun, 02 Sep 2018 08:35:01 +0000 Original-Received: (at 32537) by debbugs.gnu.org; 2 Sep 2018 08:34:03 +0000 Original-Received: from localhost ([127.0.0.1]:42354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwNpa-0008EE-Sf for submit@debbugs.gnu.org; Sun, 02 Sep 2018 04:34:03 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:55097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwNpZ-0008Dk-IK for 32537@debbugs.gnu.org; Sun, 02 Sep 2018 04:34:01 -0400 Original-Received: from detlef.gmx.de ([212.86.54.210]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LoVja-1fOj6I486c-00gZbC; Sun, 02 Sep 2018 10:33:53 +0200 In-Reply-To: <838t4k1v98.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Sep 2018 05:35:47 +0300") X-Provags-ID: V03:K1:Z+Ckl1PRHfBrhjdndc3dBJICiddzsg+4ptX/0bJ6GR1441JkZb8 j71jG93Vm3UJy/IMdWjMuTi0Xw4ex51WMPI5hUsWyO8TC+oqHxqoARV1PZbdYgE+7dnRAAw chqail0C6g+0mvIIU4aWvVn5mV/aYytfbwyoja4gO59Xp/GouRdga10zkUlgnAxaiWlKpUh qnpkSxpl2nYYtmffXis+g== X-UI-Out-Filterresults: notjunk:1;V01:K0:K4n0gq0TymQ=:9l1MwRCFP6Ulu+JVa56mE4 0UL/vrYUaDhRIU8l7kCehFo6PxuCNXZ4fvw/s2i/QG+lRh2ebMAZergRfFtaeUzQ7TunldIUe m8POYslrWXrbHOsgh8HM9fzC2Z3y6Af7YDDBr/9SJTR1u41hmJTTCenYaIMjbLM++xa38oD6H lEpgSsVUwcbLUbR/yPBBlJiXXzjy2bbPas8odKVPiBae+MtC7EZNgAK2/USY2hTpJ4L/XY4do /p0casahgKdov3yO0oXWxGIW6rIw4I5tgqVbtj69BStXZQn2NWzAeIcSCydxXVwbht7W/rHWV fupogGV9SASQKkDh8fbOzSFIu1kzefNdZLCGzZZCFcPcROmEyMk/V8ArsKDTx7yPifl3AePGP D9sxrK410xeZK6YIXIcRFsbr3eWPZeIoXOK5QuOcm8XCCb5qAQ10cuBp2edNWTqHM64fZZjJa bS9mi4cp9IJl9fMIc4kPHdY5IYfJeGShPoZsK9ALSSDqtFGPf8rt2V+lAzMtZ6inbokv6sv39 y4/l4HyNaSJljaYkSC3pmZidLQK+DYto/GkCt9k/k0D8+VPogQBF7FjUexWMI7KoCPyWXWYvW kKHHbB1rQTPl1pc/ijz6+7ZZyFlrojw5R9AB+w2WkmVnRfpqToelCV4+Y8FMiObrvdrogB3eN A1D5phcJ9KTiyfRn7PBFiSpD4zF0NjDaZoMZqF9G+RJZdByRRhMyfxQtCrfKLM77K3TfU0mu2 yUGskueg1C676QgKhrXI/mM8s+nT0GKu2/cINxzQS+zg3xc2C779LFSduTvJ7TCsWdR8jRZ/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149963 Archived-At: Eli Zaretskii writes: >> tramp-sh-handle-file-attributes enters its save-excursion form which >> saves a marker pointing to 256 in *scratch* in the special binding stack >> of Thread 10. > > Why does it call save-excursion if it is going to switch to another > buffer? The call to save-excursion is only needed if the program is > about to move point in the current buffer. Don't know. Several save-excursion calls are there for decades. They didn't hurt until now (maybe some slight performance penalties). I've removed some of them, where it looks appropriate. Pushed to the feature/tramp-thread-safe branch. tramp-tests still pass successfully, and the error as described in this bug didn't happen any more for me. I've checked also the other tramp*.el files, but there isn't any suspicious save-excursion use. Gemini, could you pls crosscheck that it is fixed? Thanks, and best regards, Michael.