From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ross Biro Newsgroups: gmane.emacs.bugs Subject: bug#13479: Cross Compiling for ARM Date: Tue, 22 Jan 2013 22:49:12 -0500 Message-ID: References: <50F98C7B.8090708@gmx.at> <50FA7153.403@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec554d29ad5e0b404d3ec93ea X-Trace: ger.gmane.org 1358913000 1654 80.91.229.3 (23 Jan 2013 03:50:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2013 03:50:00 +0000 (UTC) Cc: 13479@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 23 04:50:18 2013 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 1TxrLu-0005v5-4n for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 04:50:18 +0100 Original-Received: from localhost ([::1]:50879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxrLc-0007EK-Ga for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2013 22:50:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxrLV-0007Dv-5Q for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 22:49:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxrLS-0004Fq-4K for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 22:49:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxrLS-0004Fm-0T for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 22:49:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxrMc-00089Q-2a for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 22:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ross Biro Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jan 2013 03:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13479 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13479-submit@debbugs.gnu.org id=B13479.135891303631280 (code B ref 13479); Wed, 23 Jan 2013 03:51:01 +0000 Original-Received: (at 13479) by debbugs.gnu.org; 23 Jan 2013 03:50:36 +0000 Original-Received: from localhost ([127.0.0.1]:45378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxrMC-00088R-56 for submit@debbugs.gnu.org; Tue, 22 Jan 2013 22:50:36 -0500 Original-Received: from mail-lb0-f174.google.com ([209.85.217.174]:41953) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxrM2-000882-IV for 13479@debbugs.gnu.org; Tue, 22 Jan 2013 22:50:35 -0500 Original-Received: by mail-lb0-f174.google.com with SMTP id l12so1319555lbo.19 for <13479@debbugs.gnu.org>; Tue, 22 Jan 2013 19:49:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=uYKxOqdqudN3FYxDSLE9Nz1f4bhKJfoUvydP18IHtBg=; b=xLmLbKkz0+xS7B/Qs31ONAdB1kdZdV/nWdqLvjARgBuLwa+PmP/7YjvGnmttL5t3+M hqnax9cFUpqB5UXG8OSuVIXWRL5fbrt03pkzsTAjVz5lA+DgvTQ5POTYfyOBXco/lKXR HOCu5nI7UyaUN98CITvs6VtVCi9wsoodNcHIlMYj7/EZGKlXUVcgPQdXZ5DPqXuOQmYj K5waUGngpM3JZeK7yUquPNFNwbwajDdPgYKZ3nqVZoqRzFWhA9krYCpmnMVN9GROmKTD Ju4+LyTuNCqe3vLZS9RsrmSDENGlE0DQis4pQIpFgcA+Ok7l0hdqkiNs9ZqdcSsO679s BNKQ== X-Received: by 10.112.44.134 with SMTP id e6mr77993lbm.134.1358912952852; Tue, 22 Jan 2013 19:49:12 -0800 (PST) Original-Received: by 10.152.11.169 with HTTP; Tue, 22 Jan 2013 19:49:12 -0800 (PST) In-Reply-To: <50FA7153.403@gmx.at> X-Google-Sender-Auth: JUjZX_L_IZUB7BBt9kzALloWNbc X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:70194 Archived-At: --bcaec554d29ad5e0b404d3ec93ea Content-Type: text/plain; charset=ISO-8859-1 I don't have a wset_new_total. Is that a new function? I'm using mostly stock 24.2. Ross On Sat, Jan 19, 2013 at 5:11 AM, martin rudalics wrote: > I haven't investigated. But because protecting those calls by if >> (initialized) and even moving the lisp->C binding for >> window_root_window_resize_**vertically to after initialization didn't >> help, I >> suspect the issue might be deeper than just protecting C calls to lisp. I >> really don't know how to follow up though. >> > > If Lisp hasn't been called yet, the root window cannot have > been split yet. So in the case at hand the following patch > sould work. Can you please try it? > > Thanks, martin > > > === modified file 'src/window.c' > --- src/window.c 2013-01-11 23:08:55 +0000 > +++ src/window.c 2013-01-19 09:54:07 +0000 > @@ -4207,8 +4207,15 @@ > > root = FRAME_ROOT_WINDOW (f); > r = XWINDOW (root); > - value = call2 (Qwindow_resize_root_window_vertically, > - root, make_number (- delta)); > + if (WINDOW_LIVE_P (root)) > + { > + wset_new_total (r, make_number (XFASTINT (r->total_lines) - delta)); > + value = make_number (- delta); > + } > + else > + value = call2 (Qwindow_resize_root_window_vertically, > + root, make_number (- delta)); > + > if (INTEGERP (value) && window_resize_check (r, 0)) > { > block_input (); > @@ -4245,8 +4252,15 @@ > { > root = FRAME_ROOT_WINDOW (f); > r = XWINDOW (root); > - value = call2 (Qwindow_resize_root_window_vertically, > - root, make_number (size - 1)); > + if (WINDOW_LIVE_P (root)) > + { > + wset_new_total (r, make_number (XFASTINT (r->total_lines) + size > - 1)); > + value = make_number (size - 1); > + } > + else > + value = call2 (Qwindow_resize_root_window_vertically, > + root, make_number (size - 1)); > + > if (INTEGERP (value) && window_resize_check (r, 0)) > { > block_input (); > > > > --bcaec554d29ad5e0b404d3ec93ea Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I don't have a wset_new_total.=A0 Is that a new f= unction?=A0 I'm using mostly stock 24.2.

=A0=A0=A0 Ross


On Sat= , Jan 19, 2013 at 5:11 AM, martin rudalics <rudalics@gmx.at> w= rote:
I haven't investigated. =A0But because protecting those calls by if
(initialized) and even moving the lisp->C binding for
window_root_window_resize_vertically to after initialization didn= 9;t help, I
suspect the issue might be deeper than just protecting C calls to lisp. =A0= I
really don't know how to follow up though.

If Lisp hasn't been called yet, the root window cannot have
been split yet. =A0So in the case at hand the following patch
sould work. =A0Can you please try it?

Thanks, martin


=3D=3D=3D modified file 'src/window.c'
--- src/window.c =A0 =A0 =A0 =A02013-01-11 23:08:55 +0000
+++ src/window.c =A0 =A0 =A0 =A02013-01-19 09:54:07 +0000
@@ -4207,8 +4207,15 @@

=A0 =A0root =3D FRAME_ROOT_WINDOW (f);
=A0 =A0r =3D XWINDOW (root);
- =A0value =3D call2 (Qwindow_resize_root_window_vertically,
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0root, make_number (- delta));
+ =A0if (WINDOW_LIVE_P (root))
+ =A0 =A0{
+ =A0 =A0 =A0wset_new_total (r, make_number (XFASTINT (r->total_lines) -= delta));
+ =A0 =A0 =A0value =3D make_number (- delta);
+ =A0 =A0}
+ =A0else
+ =A0 =A0value =3D call2 (Qwindow_resize_root_window_vertically,
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0root, make_number (- delta));
+
=A0 =A0if (INTEGERP (value) && window_resize_check (r, 0))
=A0 =A0 =A0{
=A0 =A0 =A0 =A0block_input ();
@@ -4245,8 +4252,15 @@
=A0 =A0 =A0{
=A0 =A0 =A0 =A0root =3D FRAME_ROOT_WINDOW (f);
=A0 =A0 =A0 =A0r =3D XWINDOW (root);
- =A0 =A0 =A0value =3D call2 (Qwindow_resize_root_window_vertically,
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0root, make_number (size - 1));
+ =A0 =A0 =A0if (WINDOW_LIVE_P (root))
+ =A0 =A0 =A0 {
+ =A0 =A0 =A0 =A0 wset_new_total (r, make_number (XFASTINT (r->total_lin= es) + size - 1));
+ =A0 =A0 =A0 =A0 value =3D make_number (size - 1);
+ =A0 =A0 =A0 }
+ =A0 =A0 =A0else
+ =A0 =A0 =A0 value =3D call2 (Qwindow_resize_root_window_vertically,
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0root, make_number (size - 1));=
+
=A0 =A0 =A0 =A0if (INTEGERP (value) && window_resize_check (r, 0))<= br> =A0 =A0 =A0 =A0 {
=A0 =A0 =A0 =A0 =A0 block_input ();




--bcaec554d29ad5e0b404d3ec93ea--