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: Sat, 03 Oct 2015 08:32:56 +0200 Message-ID: <877fn4ihrb.fsf@gnu.org> References: <877foo4nkd.fsf@gnu.org> <87wpvzs4r3.fsf@gnu.org> <87bnd9cf7g.fsf@gnu.org> <831te53zbq.fsf@gnu.org> <871te5cdg7.fsf@gnu.org> <83wpvx2h16.fsf@gnu.org> <87r3lziti9.fsf@gnu.org> <83zj0n7jtl.fsf@gnu.org> <87wpvjovfu.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443854066 26126 80.91.229.3 (3 Oct 2015 06:34:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Oct 2015 06:34:26 +0000 (UTC) Cc: rpluim@gmail.com, 21313@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 03 08:34:15 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 1ZiGOb-0005G3-Dj for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 08:34:13 +0200 Original-Received: from localhost ([::1]:37158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiGOa-0001pv-Eg for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 02:34:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiGOV-0001pg-NL for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 02:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiGOQ-0000xm-Mm for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 02:34:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiGOQ-0000xi-KA for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 02:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZiGOQ-0007zi-9d for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 02:34: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: Sat, 03 Oct 2015 06:34: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.144385398830670 (code B ref 21313); Sat, 03 Oct 2015 06:34:02 +0000 Original-Received: (at 21313) by debbugs.gnu.org; 3 Oct 2015 06:33:08 +0000 Original-Received: from localhost ([127.0.0.1]:52696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiGNY-0007yc-H2 for submit@debbugs.gnu.org; Sat, 03 Oct 2015 02:33:08 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:39605) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiGNX-0007yU-5b for 21313@debbugs.gnu.org; Sat, 03 Oct 2015 02:33:07 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EC33E20126 for <21313@debbugs.gnu.org>; Sat, 3 Oct 2015 02:33:06 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sat, 03 Oct 2015 02:33:06 -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=Ce1yFP63gBTjcjQnNCEaGnoArTQ=; b=E+ZD+ C6IRHSKhusaIaJyC0R6phLb8VIt3I5/lxIeOzp517wKQfGwWs1M+iTKHCHUtByK5 OdrG6OEYxqlwqwzpJU2dJn2WRgsKjV2DqcDTNWdRx27RsaQWlabH4Zos76PbC2ng FMzBUFnoBgJ56JSOsVM5hduhan71IB6RJFLUgE= X-Sasl-enc: edBTYNLFbmAe0WvWfXlMmNOxTcODJ3ulfCR2ukyYEDk4 1443853986 Original-Received: from thinkpad-t440p (unknown [2.160.114.254]) by mail.messagingengine.com (Postfix) with ESMTPA id AE6AAC00013; Sat, 3 Oct 2015 02:33:02 -0400 (EDT) In-Reply-To: <87wpv4qzm2.fsf@gnu.org> (Tassilo Horn's message of "Sat, 03 Oct 2015 07:40:05 +0200") 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:107239 Archived-At: Tassilo Horn writes: > My problem is that the search space is not so small. Assuming that > events are created correctly at first, I'd probably start recording > events at kbd_buffer_store_event but then I'd want to track when, where, > and how they are modified. Well, just the first would be better than > nothing I guess. I'll try that out. Can someone give me a hint what I'm doing wrong? With the changes below keyboard.c still compiles but the step ./temacs --batch --load loadup bootstrap starts using up all my RAM and swap space until I kill it. --8<---------------cut here---------------start------------->8--- modified src/keyboard.c @@ -3412,6 +3412,11 @@ kbd_buffer_nr_stored (void) void kbd_buffer_store_event (register struct input_event *event) { + Faset (Vth_event_buffer, Vth_event_buffer_idx, make_lispy_event (event)); + if (Vth_event_buffer_idx == 99) + Vth_event_buffer_idx = 0; + else + Vth_event_buffer_idx++; kbd_buffer_store_event_hold (event, 0); } @@ -11131,6 +11136,14 @@ syms_of_keyboard (void) defsubr (&Sposn_at_point); defsubr (&Sposn_at_x_y); + DEFVAR_LISP ("th-input-event-buffer", Vth_event_buffer, + doc: /* The last 100 events. */); + Vth_event_buffer = Fmake_vector(100, 0); + + DEFVAR_LISP ("th-input-event-buffer-idx", Vth_event_buffer_idx, + doc: /* Current index in th-event-buffer. */); + Vth_event_buffer_idx = 0; + DEFVAR_LISP ("last-command-event", last_command_event, doc: /* Last input event that was part of a command. */); --8<---------------cut here---------------end--------------->8--- Bye, Tassilo