From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.bugs Subject: bug#15045: Point jumps inappropriately around time of Semantic lexing Date: Thu, 8 Aug 2013 16:03:30 -0400 Message-ID: References: <87pptptk9n.fsf@engster.org> <87eha4t7xz.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1375992258 24699 80.91.229.3 (8 Aug 2013 20:04:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 20:04:18 +0000 (UTC) Cc: 15045@debbugs.gnu.org, "Eric M. Ludlam" To: David Engster Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 08 22:04:18 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 1V7WRW-0001wd-6D for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 22:04:18 +0200 Original-Received: from localhost ([::1]:34917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7WRV-0005vm-QU for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 16:04:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7WRN-0005vD-49 for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 16:04:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7WRH-0000nP-3B for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 16:04:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7WRG-0000nH-VM for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 16:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V7WRG-0008KZ-Ig for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 16:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Barry OReilly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Aug 2013 20:04: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.137599221931970 (code B ref 15045); Thu, 08 Aug 2013 20:04:02 +0000 Original-Received: (at 15045) by debbugs.gnu.org; 8 Aug 2013 20:03:39 +0000 Original-Received: from localhost ([127.0.0.1]:47899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7WQs-0008Ja-LX for submit@debbugs.gnu.org; Thu, 08 Aug 2013 16:03:38 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:46482) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7WQq-0008JK-G6 for 15045@debbugs.gnu.org; Thu, 08 Aug 2013 16:03:36 -0400 Original-Received: by mail-oa0-f41.google.com with SMTP id j6so6065125oag.28 for <15045@debbugs.gnu.org>; Thu, 08 Aug 2013 13:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TlnkkzYQY8YHUGMa2/KY0BCMbbsN+kZrNg2gNIsNk5s=; b=rIpRbzpXEqEUtWF8tInq+g5DHXFYnRZ3PMnfgc/SflAUBeNhtgGZzCzVpbO39iQNKP FM0Z1dGj6x2s1aEtsNwxgB5vyylJLvMN9AalM+eNXD5Fbl/QvlHZPLRw6RtUPXmKISex WR1fP3pPgpKD9rhBCEPYSTm0rADV2LPTEmK22TiJDVja3jY4r3hax4gR0CZTE1nlo3Fg qAoRmLw7l6QMLX3vBtylccVrrI3GVKjVyQ25uMtWlKpTJJxuIzu/wNF5+ntgJBcCBQKw DoWw4p9N8Ahan/n7Rwbnzdri4m+8oMvDuwB7SfIVxxZPyxLrxfuftKdeVgFbv5PZOQC2 K4Zg== X-Received: by 10.60.60.105 with SMTP id g9mr5666447oer.8.1375992210109; Thu, 08 Aug 2013 13:03:30 -0700 (PDT) Original-Received: by 10.76.89.194 with HTTP; Thu, 8 Aug 2013 13:03:30 -0700 (PDT) In-Reply-To: <87eha4t7xz.fsf@engster.org> 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:77102 Archived-At: >> Undesired scrolling is a downstream symptom. Upstream from it is >> point visibly moving around inappropriately. > I think you are wrong. Emacs moves point in its Lisp code all over > the place, and that never causes any unwarranted scrolling, nor > should it ever display point in anything but the final position -- > unless the Lisp code itself forces redisplay. My use of the adverb "visibly" was meant to indicate redisplay of point at other positions. Sorry to have confused you. > timer-event-handler([t 20995 27860 0 60 display-time-event-handler nil nil 0]) > accept-process-output() > semantic-c-lexer(2886 7946 nil nil) and > timer-event-handler([t 20995 36800 0 60 display-time-event-handler nil nil 0]) > input-pending-p() > semantic-c-lexer(2939 7944 nil nil) This is indeed a key finding. If arbitrary timers can execute during the lexer's call to accept-process-output or input-pending-p, then doesn't that mean jit-lock-deferred-fontify can run too? If removing timers' sit-for calls is the solution, then what's to become of jit-lock-deferred-fontify's call to sit-for? Doesn't deferred jit locking necessarily have to call redisplay?