From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21313: 25.0.50; Strange errors from dbus-handle-event Date: Sat, 03 Oct 2015 10:14:24 +0300 Message-ID: <83twq84e5r.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> <877fn4ihrb.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443856529 25731 80.91.229.3 (3 Oct 2015 07:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Oct 2015 07:15:29 +0000 (UTC) Cc: rpluim@gmail.com, michael.albinus@gmx.de, 21313@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 03 09:15: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 1ZiH2E-0007X7-7e for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 09:15:10 +0200 Original-Received: from localhost ([::1]:37263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiH2D-0002SN-TQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 03:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiH2B-0002RE-02 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 03:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiH27-0001TN-Mo for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 03:15:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiH27-0001TD-Ja for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 03:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZiH26-0000W7-QS for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 03:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Oct 2015 07:15: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.14438564751892 (code B ref 21313); Sat, 03 Oct 2015 07:15:02 +0000 Original-Received: (at 21313) by debbugs.gnu.org; 3 Oct 2015 07:14:35 +0000 Original-Received: from localhost ([127.0.0.1]:52716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiH1e-0000UB-Nj for submit@debbugs.gnu.org; Sat, 03 Oct 2015 03:14:34 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:58178) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiH1b-0000U0-SK for 21313@debbugs.gnu.org; Sat, 03 Oct 2015 03:14:33 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NVM00D00UHY8000@a-mtaout21.012.net.il> for 21313@debbugs.gnu.org; Sat, 03 Oct 2015 10:14:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVM00DXGUS66I60@a-mtaout21.012.net.il>; Sat, 03 Oct 2015 10:14:30 +0300 (IDT) In-reply-to: <877fn4ihrb.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:107240 Archived-At: > From: Tassilo Horn > Cc: Eli Zaretskii , rpluim@gmail.com, 21313@debbugs.gnu.org > Date: Sat, 03 Oct 2015 08:32:56 +0200 > > 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); Fmake_vector needs a Lisp integer as its first argument, i.e. you need to use make_number. (And I'd suggest to use Qnil or some other Lisp object as the second, not a C zero, although currently Qnil's value is indeed zero.)