From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: William Rankin Newsgroups: gmane.emacs.bugs Subject: bug#39967: 27.0.90; how to debug point moving erratically? Date: Sat, 7 Mar 2020 22:16:56 +1000 Message-ID: References: <831rq4bnmc.fsf@gnu.org> <813C2B33-3356-4E32-A50D-4D4B9D2B3C74@bydasein.com> <83r1y4a0it.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67252"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39967@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 07 13:18:15 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 1jAYPF-000HMv-In for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 13:18:14 +0100 Original-Received: from localhost ([::1]:47706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAYPE-0006Wc-5K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 07:18:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34349) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAYP6-0006WR-M8 for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 07:18:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAYP5-0005mg-GA for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 07:18:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAYP5-0005gN-D4 for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 07:18:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAYP4-0007Uh-Gw for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 07:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: William Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2020 12:18: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.158358343128751 (code B ref 39967); Sat, 07 Mar 2020 12:18:02 +0000 Original-Received: (at 39967) by debbugs.gnu.org; 7 Mar 2020 12:17:11 +0000 Original-Received: from localhost ([127.0.0.1]:46334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAYOE-0007Tf-Qh for submit@debbugs.gnu.org; Sat, 07 Mar 2020 07:17:11 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAYOC-0007TT-Tv for 39967@debbugs.gnu.org; Sat, 07 Mar 2020 07:17:09 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id D20C021B2F; Sat, 7 Mar 2020 07:17:03 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 07 Mar 2020 07:17:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bydasein.com; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm2; bh=j ECfq31gdFUW6Z77T7PW2Zr/j9y//Gp2hi06hEHrKSE=; b=FasdGJ3StkzBX4Wse pRrh+WpDqwhPHIJRBkGGxw4eoXsL+vZAc1yUsEKawUUGtpKWAM6laKHeVJUBNI5F wbW37hhj5a3cyGh8Pr3UEQh66dTFxrtxFi+xrX8+ue4nf0swPwC4xFb6Q07VzqNU JNo4vNx5A8AFGeec4eN+Q3iz9smkj6bHd8GJHHZ/NUty1TPWTvc2yQlfrqiTS8iE BJ+bi1K5QKBQhn6C9ID6ewBtE0noNdqpo00K0QI1IKiRacWtEX7lajSmNuj/zen1 dyTH7EOkx8A2dOoERAhVkWArPn3E7pGxJXiJvyTEhqQOV4Oy9HJ84T35fLQdB8hR EcuTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=jECfq31gdFUW6Z77T7PW2Zr/j9y//Gp2hi06hEHrK SE=; b=O7uXSnYhgZ1oAy3OsvmvTkNOQ/ER6lvzTo5BotulvLhzI/bJ2Gf6FVh6x FXAnFCTiLt9Cu/5BVVAUQE5T2oNX1phET8xF+T0xPvKOew3xdobjUPaEP6vZOK3O rfMGced48g0/JrbF/EnUMcR9iLaZeAft2wE1oKrVaXnpy7p6DF1GR3DPsv/NiUxe G4FrVCvWsRxXaZfbyX676VYighgpWl2fq3qo77t1vRXSbQqAg8hbBpGHTDW/Db3o DKKCFLdqtO8M9w8wwX8IwVgPH98a2uc+RZdGSSqgmHzMVhzlfOPvGW5f2b+jisBy OhcfduQeZffCAJkNczm/kCVcmSd8w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddugedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffgffkfhfvofesthejmhdthhdtvdenucfhrhhomhephghilhhl ihgrmhcutfgrnhhkihhnuceofihilhhlihgrmhessgihuggrshgvihhnrdgtohhmqeenuc fkphepuddvtddrvddvrdektddrfeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepfihilhhlihgrmhessgihuggrshgvihhnrdgtohhm X-ME-Proxy: Original-Received: from [172.20.10.14] (unknown [120.22.80.36]) by mail.messagingengine.com (Postfix) with ESMTPA id BA87D328005E; Sat, 7 Mar 2020 07:17:01 -0500 (EST) In-Reply-To: <83r1y4a0it.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.60.0.2.5) 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:177002 Archived-At: > On 7 Mar 2020, at 9:04 pm, Eli Zaretskii wrote: > >> Hmm given the way it moves point, I would put money on this not being my >> init. I'm not smart enough to write something that would work in such a >> sporadic way. > > I didn't mean something you wrote, I meant some feature you turn on > that is not turned on by default, a feature that is part of Emacs or > some third-party package you are using. Ah I see. Okay, that does increase the surface area. >> Given the impending release of 27.1 maybe there are other avenues I can >> check too? > > You could try running under GDB with a breakpoint in set_point_both > and temp_set_point_both, with breakpoint commands that show the C and > Lisp backtrace and then immediately continue the program. Let me know > if you need more detailed instructions for setting this up. I should be able to figure this out and report back. > Can you describe the issue in more detail? Are you saying this > happens when Emacs is idle, i.e. you are not typing any commands and > no sub-processes should be running? And what exactly do you see when > this happens? Also, do you see any error messages in *Messages*? when > that happens? > > FWIW, I don't see anything like this on my system in Emacs 27.0.90, so > I have hard time believing that something as basic as JIT font-lock > could do this, at least not by default. I've only observed this after Emacs has been open for more than a few hours or overnight. It will only happen after Emacs is idle for a few seconds, i.e. no user input. The point will start jumping to different positions in the buffer, and this will then repeat at regular intervals of ~0.5 seconds per jump. These positions do not appear totally random, but seem like jumps of a similar sized chunk of text, like they are being calculated. I think the only process running is ispell (enchant). There are no error messages in *Messages*. C-g does not immediately stop point jumping, however, if I give more input (e.g. C-n/p or C-x o, etc.) then either this will stop point jumping, or will delay it for ~2 seconds, and then point starts jumping again. This repetition only happens a once or twice before it seems to "finish" and the problem appears gone. There is this in my init: (advice-add 'mark-word :before (lambda (&rest args) (unless (looking-at-p "\\b") (backward-word)))) Could this be causing such havoc??