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: Tue, 15 Oct 2013 21:48:23 +0300 Message-ID: <83k3hepdzc.fsf@gnu.org> References: <87pptptk9n.fsf@engster.org> <87eha4t7xz.fsf@engster.org> <8738qksz6l.fsf@engster.org> <837gfvua2r.fsf@gnu.org> <87y58bs9x4.fsf@engster.org> <83zjsrs3k2.fsf@gnu.org> <87pptmsv4z.fsf@engster.org> <83siyira0w.fsf@gnu.org> <87vc3drhuv.fsf@engster.org> <83haexrgjn.fsf@gnu.org> <83ppr7pr6c.fsf@gnu.org> <83li1upkfx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1381863014 4946 80.91.229.3 (15 Oct 2013 18:50:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Oct 2013 18:50:14 +0000 (UTC) Cc: 15045@debbugs.gnu.org, deng@randomsample.de, eric@siege-engine.com To: Barry OReilly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 15 20:50:17 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 1VW9hA-0004UK-QD for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2013 20:50:16 +0200 Original-Received: from localhost ([::1]:43387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW9hA-0003Lv-D3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2013 14:50:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW9h2-0003K1-Pw for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 14:50:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW9gy-00073S-7U for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 14:50:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW9gy-00072g-3Z for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 14:50:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VW9gw-0005g8-5e for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 14:50: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: Tue, 15 Oct 2013 18:50:01 +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.138186295921760 (code B ref 15045); Tue, 15 Oct 2013 18:50:01 +0000 Original-Received: (at 15045) by debbugs.gnu.org; 15 Oct 2013 18:49:19 +0000 Original-Received: from localhost ([127.0.0.1]:52039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VW9gE-0005es-OM for submit@debbugs.gnu.org; Tue, 15 Oct 2013 14:49:19 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:60774) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VW9gB-0005ec-Rx for 15045@debbugs.gnu.org; Tue, 15 Oct 2013 14:49:17 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MUQ0020048IJ900@a-mtaout20.012.net.il> for 15045@debbugs.gnu.org; Tue, 15 Oct 2013 21:48:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MUQ002QD48O9OA0@a-mtaout20.012.net.il>; Tue, 15 Oct 2013 21:48:25 +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:79284 Archived-At: > Date: Tue, 15 Oct 2013 13:08:58 -0400 > From: Barry OReilly > Cc: Stefan Monnier , David Engster , > 15045@debbugs.gnu.org, Eric Ludlam > > (defun sit-for (seconds &optional nodisp obsolete) > [...] > (cond > [...] > ((input-pending-p) > nil) > ((<= seconds 0) > (or nodisp (redisplay))) > [...] > > I considered whether (<= seconds 0) could fall through to the t case > instead. Maybe I'm missing something, but wouldn't that bypass redisplay? Currently, (sit-for 0) is a very popular method to trigger redisplay; changing that _will_ bite a lot of code out there. > The read_char function has a complex implementation, so it's not > clear doing so wouldn't change behavior. Are you assuming that read_char always redisplays? That's not true, AFAIK. > Is there another Lisp function that does timer_check and little else, > which the (<= seconds 0) case could call? Should I write a new subr > for it? Not sure I understand the question, sorry.