From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: read_char() does not detect, handle special-event-map buffer changes Date: Fri, 08 Feb 2013 08:35:13 +0100 Message-ID: <87k3qjcl72.fsf@gmx.de> References: <87r4kwjx11.fsf@priss.frightenedpiglet.com> <87lib01vlp.fsf@priss.frightenedpiglet.com> <87k3qk18m6.fsf@priss.frightenedpiglet.com> <87haln1ks1.fsf@priss.frightenedpiglet.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360308923 9188 80.91.229.3 (8 Feb 2013 07:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2013 07:35:23 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Derek Upham Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 08 08:35:44 2013 Return-path: Envelope-to: ged-emacs-devel@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 1U3iUp-0007sP-PK for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2013 08:35:43 +0100 Original-Received: from localhost ([::1]:49054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3iUW-0000za-Sv for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2013 02:35:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3iUT-0000zS-Ic for emacs-devel@gnu.org; Fri, 08 Feb 2013 02:35:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3iUR-0007wD-0Y for emacs-devel@gnu.org; Fri, 08 Feb 2013 02:35:21 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:57455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3iUQ-0007w7-NS for emacs-devel@gnu.org; Fri, 08 Feb 2013 02:35:18 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.17]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MJYbl-1U6jQl3ugN-0035uT for ; Fri, 08 Feb 2013 08:35:16 +0100 Original-Received: (qmail invoked by alias); 08 Feb 2013 07:35:16 -0000 Original-Received: from p57BB9735.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.53] by mail.gmx.net (mp017) with SMTP; 08 Feb 2013 08:35:16 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/huXdQIwnhgbtpy3EG7/vvT4Tb+mvkddlk83MgGF kf5QqKrvK4WP3I In-Reply-To: <87haln1ks1.fsf@priss.frightenedpiglet.com> (Derek Upham's message of "Thu, 07 Feb 2013 20:39:42 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156879 Archived-At: Derek Upham writes: > This removes a flawed optimization and returns a documented value. It > doesn't touch read_key_sequence, so that risk goes away. If we were > getting special events at a high rate of speed this /might/ cause a > slowdown, but nothing in the special events table seems to be used that > way---and I expect that the extra time spent popping back up to > read_key_sequence for the retry will still be very fast compared to the > time spent in the Emacs Lisp callback. I don't know what you mean with "high rate of speed", but special events are used for D-Bus and for file notifications. There could be a burst of incoming events, temporarily. > Derek Best regards, Michael.