From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15045: Point jumps inappropriately around time of Semantic lexing Date: Wed, 07 Aug 2013 22:44:15 +0300 Message-ID: <831u65uvzk.fsf@gnu.org> References: <87pptptk9n.fsf@engster.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1375904720 6605 80.91.229.3 (7 Aug 2013 19:45:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Aug 2013 19:45:20 +0000 (UTC) Cc: 15045@debbugs.gnu.org, deng@randomsample.de To: Barry OReilly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 07 21:45:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V79fb-0002pv-1f for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Aug 2013 21:45:19 +0200 Original-Received: from localhost ([::1]:39347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V79fa-0001OW-NI for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Aug 2013 15:45:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V79fS-0001O3-E0 for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2013 15:45:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V79fL-00011r-0o for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2013 15:45:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V79fK-00010d-Ts for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2013 15:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V79fK-0000tY-Jo for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2013 15:45: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: Wed, 07 Aug 2013 19:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15045 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15045-submit@debbugs.gnu.org id=B15045.13759046523345 (code B ref 15045); Wed, 07 Aug 2013 19:45:02 +0000 Original-Received: (at 15045) by debbugs.gnu.org; 7 Aug 2013 19:44:12 +0000 Original-Received: from localhost ([127.0.0.1]:46114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V79eV-0000rt-Vu for submit@debbugs.gnu.org; Wed, 07 Aug 2013 15:44:12 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:45830) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V79eT-0000rW-9J for 15045@debbugs.gnu.org; Wed, 07 Aug 2013 15:44:10 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MR600100E952G00@a-mtaout20.012.net.il> for 15045@debbugs.gnu.org; Wed, 07 Aug 2013 22:44:02 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MR60014SETE1B40@a-mtaout20.012.net.il>; Wed, 07 Aug 2013 22:44:02 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77055 Archived-At: > Date: Wed, 7 Aug 2013 15:31:38 -0400 > From: Barry OReilly > Cc: 15045@debbugs.gnu.org > > > So it's "displayed at A" then "displayed at B" then "displayed at A > > again"? what happens between each one of those 3 displays? > > No. A, B, and C are backtraces. Specifically, the backtraces printed > when goto-char went to the offending position at the beginning of the > comment block. I don't know which of the three is the one I see > actually displayed. The timestamps are too close together for me to be > certain. > > I'm interested to see if I get more empty backtraces at the next > reproduction. I don't know what they could mean. > > > If "nothing", then I suspect there's something like a `sit-for' > > somewhere that causes a redisplay in the middle of the command (i.e. > > in the middle of a save-excursion). > > Ahh, I didn't know about sit-for. It might explain what I'm seeing. > > I added a debug statement to Fredisplay. In a simple run (no > reproduction of the bug yet), I get a few of these: > > 2013-08-07T15:18:09.576922000|pid:11494|tid:47776720943360|dispnew.c|5822| > DEBUG: redisplay > redisplay() > sit-for(0) > jit-lock-deferred-fontify() > apply(jit-lock-deferred-fontify nil) > byte-code("rÁÂHÃH\"ˆ)Á‡" [timer apply 5 6] 4) > timer-event-handler([t 0 0 10000 t jit-lock-deferred-fontify nil idle 0]) > > I don't suppose there are ways deferred jit lock would execute during > Semantic lexing? I think the jit-lock you see is the result of the scrolling, not its reason. > Anyway, next time I see the bug, I expect I'll get better data. In the discussion that you cite at the beginning of this bug report, I suggested a different approach to finding out the culprit, by using the redisplay tracing facility. Can you try that and post the results? It might give better clues.