From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39967: 27.0.90; how to debug point moving erratically? Date: Sat, 07 Mar 2020 17:32:55 +0200 Message-ID: <83eeu49o48.fsf@gnu.org> References: <831rq4bnmc.fsf@gnu.org> <813C2B33-3356-4E32-A50D-4D4B9D2B3C74@bydasein.com> <83r1y4a0it.fsf@gnu.org> <83mu8s9uw2.fsf@gnu.org> <9AB559B6-102A-4805-B7A1-55FB0195C9E2@bydasein.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39967@debbugs.gnu.org To: William Rankin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 07 16:34:12 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 1jAbSs-000KAZ-Fn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 16:34:10 +0100 Original-Received: from localhost ([::1]:49858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAbSr-0008Fi-IE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 10:34:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34686) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAbSl-0008FA-Ar for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 10:34:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAbSk-0008TV-Dd for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 10:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41430) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAbSk-0008TP-AW for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 10:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAbSk-0007zv-7p for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 10:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2020 15:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39967 X-GNU-PR-Package: emacs Original-Received: via spool by 39967-submit@debbugs.gnu.org id=B39967.158359518330678 (code B ref 39967); Sat, 07 Mar 2020 15:34:02 +0000 Original-Received: (at 39967) by debbugs.gnu.org; 7 Mar 2020 15:33:03 +0000 Original-Received: from localhost ([127.0.0.1]:47403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAbRn-0007yj-8K for submit@debbugs.gnu.org; Sat, 07 Mar 2020 10:33:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAbRl-0007yD-Br for 39967@debbugs.gnu.org; Sat, 07 Mar 2020 10:33:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAbRg-0007nc-6Q; Sat, 07 Mar 2020 10:32:56 -0500 Original-Received: from [176.228.60.248] (port=3221 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAbRf-0000pr-Ks; Sat, 07 Mar 2020 10:32:55 -0500 In-Reply-To: <9AB559B6-102A-4805-B7A1-55FB0195C9E2@bydasein.com> (message from William Rankin on Sat, 7 Mar 2020 23:47:24 +1000) 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177014 Archived-At: > From: William Rankin > Date: Sat, 7 Mar 2020 23:47:24 +1000 > Cc: 39967@debbugs.gnu.org > > > 0.37 0.01 blink-cursor-timer-function > 6.59 - undo-auto--boundary-timer > 47.03 1.00 display-time-event-handler > * 0.00 t show-paren-function > * 0.50 t #f(compiled-function () # [jit-lock--antiblink-grace-timer jit-lock-context-fontify]) > * 0.50 :repeat blink-cursor-start > * 1.00 t which-key--update > * 5.00 t jit-lock-stealth-fontify > > Could the sporadic nature hint at the byte-compiled function that calls > jit-lock-context-fontify? (Also I see jit-lock-antiblink-grace is new > in 27.) How about changing jit-lock-context-time to something like 1.5, and checking whether this affects the frequency of the jumps in any way? I looked at the code of the involved functions, and couldn't spot any place where they move point without wrapping that in save-excursion. But maybe I'm missing something -- can you see any suspects? Also, do you have any features enabled which could perform a redisplay triggered by point movement? If you do, perhaps they cause point to be displayed when Emacs doesn't expect that. Btw, in your original description you said when point jumps, it's outside of the current window -- but if so, how do you see that it jumps, when the cursor is not shown? And finally, what happens if you disable the blink-cursor-mode?