From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous find-file Date: Sun, 02 Sep 2018 05:35:47 +0300 Message-ID: <838t4k1v98.fsf@gnu.org> 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> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1535856009 12644 195.159.176.226 (2 Sep 2018 02:40:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2018 02:40:09 +0000 (UTC) Cc: michael.albinus@gmx.de, 32537@debbugs.gnu.org To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 04:40:05 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 1fwIJ2-0003Cu-O1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 04:40:04 +0200 Original-Received: from localhost ([::1]:39103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwIL9-000325-09 for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Sep 2018 22:42:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwIKg-0002nc-8w for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 22:41:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwIG6-0001Ed-Hq for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 22:37:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwIG6-0001EX-E7 for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 22:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwIG6-0007by-At for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 22:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Sep 2018 02:37:02 +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.153585576929197 (code B ref 32537); Sun, 02 Sep 2018 02:37:02 +0000 Original-Received: (at 32537) by debbugs.gnu.org; 2 Sep 2018 02:36:09 +0000 Original-Received: from localhost ([127.0.0.1]:42270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwIFF-0007aq-Jb for submit@debbugs.gnu.org; Sat, 01 Sep 2018 22:36:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwIFD-0007ab-UN for 32537@debbugs.gnu.org; Sat, 01 Sep 2018 22:36:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwIF4-00016o-JN for 32537@debbugs.gnu.org; Sat, 01 Sep 2018 22:36:02 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwIF4-00016i-GP; Sat, 01 Sep 2018 22:35:58 -0400 Original-Received: from [176.228.60.248] (port=3817 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fwIF4-0002TP-50; Sat, 01 Sep 2018 22:35:58 -0400 In-reply-to: <87lg8kvj8u.fsf@runbox.com> (message from Gemini Lasswell on Sat, 01 Sep 2018 17:24:49 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:149958 Archived-At: > From: Gemini Lasswell > Cc: Michael Albinus , 32537@debbugs.gnu.org > Date: Sat, 01 Sep 2018 17:24:49 -0700 > > > Michael, how come Tramp moves point in the *scratch* buffer in this > > scenario? > > Here's what I think the sequence of events was, in that last trace: > > When tramp-sh-handle-file-attributes is called in Thread 10, its current > buffer is *scratch*. Point in *scratch* is 256. > > 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.