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, 26 Aug 2018 21:32:10 +0300 Message-ID: <83mut9568l.fsf@gnu.org> References: <875zzxowlw.fsf@runbox.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1535308880 4053 195.159.176.226 (26 Aug 2018 18:41:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2018 18:41:20 +0000 (UTC) Cc: 32537@debbugs.gnu.org To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 26 20:41:16 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 1ftzyM-0000u7-NF for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 20:41:14 +0200 Original-Received: from localhost ([::1]:50018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu00S-0004ND-Rm for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 14:43:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu00E-0003uz-Ay for bug-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:43:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftzqQ-0000cD-7t for bug-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56655) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ftzqQ-0000bz-4C for bug-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ftzqQ-0006ed-0y for bug-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:33: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, 26 Aug 2018 18:33: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.153530834925536 (code B ref 32537); Sun, 26 Aug 2018 18:33:01 +0000 Original-Received: (at 32537) by debbugs.gnu.org; 26 Aug 2018 18:32:29 +0000 Original-Received: from localhost ([127.0.0.1]:33440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftzps-0006do-VT for submit@debbugs.gnu.org; Sun, 26 Aug 2018 14:32:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftzpr-0006dc-R4 for 32537@debbugs.gnu.org; Sun, 26 Aug 2018 14:32:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftzpj-0008Rm-DI for 32537@debbugs.gnu.org; Sun, 26 Aug 2018 14:32:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftzpj-0008RS-9C; Sun, 26 Aug 2018 14:32:19 -0400 Original-Received: from [176.228.60.248] (port=1851 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ftzpi-0007G7-JT; Sun, 26 Aug 2018 14:32:19 -0400 In-reply-to: <875zzxowlw.fsf@runbox.com> (message from Gemini Lasswell on Sun, 26 Aug 2018 10:39:55 -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:149764 Archived-At: > From: Gemini Lasswell > Date: Sun, 26 Aug 2018 10:39:55 -0700 > > Then type "The rain in Spain falls mainly on the plain." or other > sentence of your choice, over and over. Stop when the message about > checking vc-registered appears in the echo area. > > Result: There will be a pause before the first typed text appears, then > Emacs will start showing the typed text normally, except periodically > the cursor will jump backwards so text will be inserted in the wrong > place. I guess some code in the background thread calls a yielding function inside save-excursion or something? I'd try running with a breakpoint in set_point_both and temp_set_point_both, with commands that show the backtrace and immediately continue the program. Then you might see the culprit. Or maybe Michael will know where that happens given the description. > After the first vc-registered message, Emacs will stop responding to > input until after a buffer for one of the opened files is displayed. That is not necessarily a bug: if some thread performs some prolonged calculation, no other thread will be able to run, and no input will be accepted. Just like with a single thread. Thanks.