From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Seltenreich Newsgroups: gmane.emacs.devel Subject: Re: Did something change with respect to Emacs idle loop: Date: Tue, 26 Sep 2006 19:49:35 +0200 Message-ID: <87venafrgw.fsf@gate450.dyndns.org> References: <17682.1266.569204.546622@gargle.gargle.HOWL> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159293011 13091 80.91.229.2 (26 Sep 2006 17:50:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2006 17:50:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 26 19:50:04 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GSH44-0007yD-6c for ged-emacs-devel@m.gmane.org; Tue, 26 Sep 2006 19:49:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSH43-0004iW-Rk for ged-emacs-devel@m.gmane.org; Tue, 26 Sep 2006 13:49:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSH3t-0004h1-1T for emacs-devel@gnu.org; Tue, 26 Sep 2006 13:49:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSH3r-0004f0-Es for emacs-devel@gnu.org; Tue, 26 Sep 2006 13:49:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSH3r-0004eq-2M for emacs-devel@gnu.org; Tue, 26 Sep 2006 13:49:39 -0400 Original-Received: from [129.13.185.217] (helo=smtp1.rz.uni-karlsruhe.de) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GSH8X-0000u9-4V for emacs-devel@gnu.org; Tue, 26 Sep 2006 13:54:29 -0400 Original-Received: from rzstud2.stud.uni-karlsruhe.de (exim@rzstud2.stud.uni-karlsruhe.de [193.196.41.38]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.50 #1) id 1GSH3o-0004XU-Mz; Tue, 26 Sep 2006 19:49:36 +0200 Original-Received: from uwi7 by rzstud2.stud.uni-karlsruhe.de with local (Exim 4.43) id 1GSH3o-00013l-EL; Tue, 26 Sep 2006 19:49:36 +0200 Original-To: raman@users.sf.net X-Face: $:F<87a[gD1?#R6S3j21cr1&C&7bd63GHC.tSdskUb}hhwG(ci*=D5kJ<_N+p9q(7-, PnG. Et.Yh (T. V. Raman's message of "Wed\, 20 Sep 2006 20\:20\:18 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60246 Archived-At: "T. V. Raman" writes: > Another situation where I've noticed changed behavior is with > emms (2.1) --- if you launch a playlist then playback stops > after each track, and you again need to touch the keyboard for > it to move to the next track. Could this be related to the recently-fixed fontification loop problem? When investigating with gdb, I noticed that Emacs didn't leave the following loop in wait_reading_process_output() since timers_run was repeatedly increased during redisplay, and execution didn't ever reach the select(). --8<---------------cut here---------------start------------->8--- do { int old_timers_run = timers_run; struct buffer *old_buffer = current_buffer; timer_delay = timer_check (1); /* If a timer has run, this might have changed buffers an alike. Make read_key_sequence aware of that. */ if (timers_run != old_timers_run && old_buffer != current_buffer && waiting_for_user_input_p == -1) record_asynch_buffer_change (); if (timers_run != old_timers_run && do_display) /* We must retry, since a timer may have requeued itself and that could alter the time_delay. */ redisplay_preserve_echo_area (9); else break; } --8<---------------cut here---------------end--------------->8--- HTH Andreas