From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: bug#15045: Point jumps inappropriately around time of Semantic lexing Date: Fri, 09 Aug 2013 18:27:14 +0200 Message-ID: <87iozesucd.fsf@engster.org> References: <87pptptk9n.fsf@engster.org> <87eha4t7xz.fsf@engster.org> <8738qksz6l.fsf@engster.org> <837gfvua2r.fsf@gnu.org> <87y58bs9x4.fsf@engster.org> <5204B263.1060603@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376065696 28681 80.91.229.3 (9 Aug 2013 16:28:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 16:28:16 +0000 (UTC) Cc: gundaetiapo@gmail.com, 15045@debbugs.gnu.org, eric@siege-engine.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 18:28: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 1V7pY0-00037W-Jw for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 18:28:16 +0200 Original-Received: from localhost ([::1]:38891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pY0-0007dB-4s for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 12:28:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pXs-0007cs-Ky for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:28:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7pXm-0005po-HT for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:28:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pXm-0005p1-Ed for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V7pXl-0001ZT-QZ for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Aug 2013 16:28: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.13760656415960 (code B ref 15045); Fri, 09 Aug 2013 16:28:01 +0000 Original-Received: (at 15045) by debbugs.gnu.org; 9 Aug 2013 16:27:21 +0000 Original-Received: from localhost ([127.0.0.1]:49976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7pX6-0001Y3-HH for submit@debbugs.gnu.org; Fri, 09 Aug 2013 12:27:20 -0400 Original-Received: from randomsample.de ([83.169.19.17]:54017) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7pX3-0001Xs-Aj for 15045@debbugs.gnu.org; Fri, 09 Aug 2013 12:27:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=9GZ7tSWD71qkwJcaVRfrvgAhGlE/hZTtMfqUo74xAF4=; b=FKzZ6VjYOVn7tsE+u8Njw7/U6AeDmCo0O0mmBLNHHLRpo+FP9G6q77Ljq7HydESiV/u+kAI89bYI9VZoSMv/UfafXBmWkpXgqg6OMs9zXpeeWd/GETRK6lryjmiJh5Yw; Original-Received: from dslc-082-083-054-159.pools.arcor-ip.net ([82.83.54.159] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1V7pX1-0000pz-9l; Fri, 09 Aug 2013 18:27:15 +0200 In-Reply-To: <5204B263.1060603@gmx.at> (martin rudalics's message of "Fri, 09 Aug 2013 11:12:03 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) 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:77182 Archived-At: martin rudalics writes: >> In fact, I just understood another bug in speck-mode (which is similar >> to flycheck). I sometimes had unwanted scrolls there, too, and I now saw >> that those also happen at every full minute while typing. > > What precisely is the bug in speck-mode? Is it that it doesn't restore > `point' when input arrives? The main problem is that speck narrows the buffer before calling `accept-process-output'. If that happens while the time-display-event-handler runs, you suddenly see a narrowed buffer, which is soon widened again. Pretty scary. It's quite easy to reproduce, since speck runs much longer than the Semantic idle function. Here's a recipe: - Put a bunch of text in the kill ring - Create a new text buffer and activate speck - Activate `display-time' - At roughly XX:58, yank the text into the buffer and wait Here's the backtrace from a `debug' call in `sit-for': sit-for(0) display-time-event-handler() apply(display-time-event-handler nil) byte-code("" [timer apply 5 6] 4) timer-event-handler([t 20997 5988 0 60 display-time-event-handler nil nil 0]) accept-process-output(nil 0.01) speck-chunk() speck-multi-chunk() speck-chunks() speck-line() speck-window(t) speck-windows(t) apply(speck-windows t) byte-code("" [timer apply 5 6] 4) timer-event-handler([t 0 1 262453 nil speck-windows (t) idle 785000]) The fix would be to undo any narrowing and restore point before calling `accept-process-output'. -David