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: Fri, 09 Aug 2013 17:16:39 +0300 Message-ID: <837gfvrltk.fsf@gnu.org> References: <87pptptk9n.fsf@engster.org> <87eha4t7xz.fsf@engster.org> <83bo57uakh.fsf@gnu.org> <83wqnvs3ec.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376057847 1361 80.91.229.3 (9 Aug 2013 14:17:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 14:17:27 +0000 (UTC) Cc: gundaetiapo@gmail.com, 15045@debbugs.gnu.org, deng@randomsample.de, eric@siege-engine.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 16:17:27 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 1V7nVO-0008Vx-JU for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 16:17:26 +0200 Original-Received: from localhost ([::1]:35528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7nVO-0004Ii-2I for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 10:17:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7nV9-0003ws-2z for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 10:17:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7nV0-0000uh-SW for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 10:17:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7nV0-0000uP-J3 for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 10:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V7nV0-0004ph-6N for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 10:17: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: Fri, 09 Aug 2013 14:17: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.137605779418475 (code B ref 15045); Fri, 09 Aug 2013 14:17:02 +0000 Original-Received: (at 15045) by debbugs.gnu.org; 9 Aug 2013 14:16:34 +0000 Original-Received: from localhost ([127.0.0.1]:49769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7nUX-0004nt-PX for submit@debbugs.gnu.org; Fri, 09 Aug 2013 10:16:34 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58734) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7nUV-0004nd-Ld for 15045@debbugs.gnu.org; Fri, 09 Aug 2013 10:16:32 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MR900L00OWQSE00@a-mtaout20.012.net.il> for 15045@debbugs.gnu.org; Fri, 09 Aug 2013 17:16:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MR900L06OZARI20@a-mtaout20.012.net.il>; Fri, 09 Aug 2013 17:16:22 +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:77167 Archived-At: > From: Stefan Monnier > Cc: deng@randomsample.de, gundaetiapo@gmail.com, 15045@debbugs.gnu.org, eric@siege-engine.com > Date: Fri, 09 Aug 2013 10:03:05 -0400 > > >> >> Right, that would do it. > >> >> What happens if you remove the calls to sit-for from time.el? > >> > You cannot ensure redisplay without that. > >> I don't know what scenario you have in mind. > > Any one. Emacs enters redisplay for any number of reasons, but you > > can never be sure it will do so at any specific point unless you force > > redisplay at that point. As you well know, in general, while Lisp > > code runs, Emacs does not redisplay. > > Of course, but that's true in general. What makes it more true in > display-time-event-handler? Why should we care? Good engineering does not build things on what "currently happens to work", because that will eventually break, given enough development. > Remember that display-time-update (called just before the sit-for) > ends with a call to force-mode-line-update. Whose effect no one really understands. > In practice, is there any important scenario where > display-time-event-handler's sit-for is useful? I never analyzed this to tell. And anyway, display-time is just one case of a timer that needs to force redisplay.