bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous


From: Eli Zaretskii
Subject: bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous find-file
Date: Sun, 02 Sep 2018 05:35:47 +0300

> From: Gemini Lasswell <address@hidden>
> Cc: Michael Albinus <address@hidden>,  address@hidden
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]