From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#21313: 25.0.50; Strange errors from dbus-handle-event Date: Fri, 16 Oct 2015 06:53:19 +0200 Message-ID: <87pp0fo1mo.fsf@gnu.org> References: <877foo4nkd.fsf@gnu.org> <877fnikhms.fsf@gmail.com> <87oaguq2yw.fsf@gnu.org> <8737xtt8wt.fsf@gnu.org> <834mi95bx1.fsf@gnu.org> <87twq9roxn.fsf@gnu.org> <83wpv53rjn.fsf@gnu.org> <87h9m9rmgk.fsf@gmx.de> <87wpv4qzm2.fsf@gnu.org> <87a8s0v1lp.fsf@gmx.de> <87twq8gyk0.fsf@gnu.org> <87lhbk47hb.fsf@gnu.org> <83d1ww4416.fsf@gnu.org> <878u75rctw.fsf@gnu.org> <836129xtx8.fsf@gnu.org> <876129gs2a.fsf@gnu.org> <83twptw81l.fsf@gnu.org> <87eggwuzvi.fsf@gnu.org> <83d1wg8403.fsf@gnu.org> <87twps9grg.fsf@gnu.org> <837fmn9as2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444971266 16343 80.91.229.3 (16 Oct 2015 04:54:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 04:54:26 +0000 (UTC) Cc: michael.albinus@gmx.de, 21313@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 16 06:54:14 2015 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 1Zmx1x-00071u-Rp for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Oct 2015 06:54:13 +0200 Original-Received: from localhost ([::1]:50921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmx1x-0004JT-9m for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Oct 2015 00:54:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmx1r-0004HS-Ma for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2015 00:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zmx1m-0000u2-Mc for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2015 00:54:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmx1m-0000ty-Hr for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2015 00:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zmx1m-0007YD-BF for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2015 00:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Oct 2015 04:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21313 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21313-submit@debbugs.gnu.org id=B21313.144497120728985 (code B ref 21313); Fri, 16 Oct 2015 04:54:02 +0000 Original-Received: (at 21313) by debbugs.gnu.org; 16 Oct 2015 04:53:27 +0000 Original-Received: from localhost ([127.0.0.1]:52952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zmx1D-0007XR-4T for submit@debbugs.gnu.org; Fri, 16 Oct 2015 00:53:27 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34111) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zmx1A-0007XI-7o for 21313@debbugs.gnu.org; Fri, 16 Oct 2015 00:53:25 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A2D5120444 for <21313@debbugs.gnu.org>; Fri, 16 Oct 2015 00:53:23 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 16 Oct 2015 00:53:23 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=G7ddehaaeCf5Yh0eDZKUtf2/Aso=; b=lYADe DwWVa40sJWfR/NWUifhVgz4Ertvjnt6/eZsU0umUqk1cZ61xZr1m+k2mRtDYtoXW IS3ne8VgTiVR6faQkMJwW5/UhPq1g+TF5vroNb0xqnacp25p6nyMRm/1pfO8L9IJ H/9sNQxKx0jFqKSayxwHkJtCGc4D3EEdYHicq0= X-Sasl-enc: lhKLVlCyXoPL5Z2PDlauZtOjWpUkMUmKCgP248XvRxSJ 1444971203 Original-Received: from thinkpad-t440p (unknown [2.163.5.132]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B893680119; Fri, 16 Oct 2015 00:53:22 -0400 (EDT) In-Reply-To: <837fmn9as2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Oct 2015 22:44:45 +0300") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (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: 208.118.235.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:107664 Archived-At: Eli Zaretskii writes: >> But how could a GC (or maybe just some small slowdown induced by >> printing) reset the quit flag? > > It can't, and that's not what I meant. > > I think I found the problem: the call to Fformat eventually calls > print_object, which calls QUIT, which resets quit-flag. I've seen it now. Well, that's not what I would have expected. > So you need to change the beginning of read_char like this: > > ptrdiff_t count = SPECPDL_INDEX (); > specbind (Qinhibit_quit, Qt); > AUTO_STRING (format, "%S"); > printf ("record_char: %s\n", SSDATA (CALLN (Fformat, format, c))); > unbind_to (count, Qnil); Yes, that works. So that's the C version of (let ((inhibit-quit t)) ...). So specbind creates a dynamic binding, and with unbind_to you pop entries up to a given index again, right? Bye, Tassilo