xemacs-gtk branch published

Aidan Kehoe kehoea at parhasard.net
Fri Jun 4 11:13:52 EDT 2010


 Ar an triú lá de mí Meitheamh, scríobh Mats Lidell: 

 > >> Doing this gets me a binary that dumps because of something that looks
 > >> lika a scrollbar resource error.  The lisp backtrace looks like
 > >> this: (See below)
 > 
 > Jeff> I haven't seen anything like this.  I'm on Ubuntu 10.4; what platform are
 > Jeff> you on?   Maybe that makes a difference.
 > 
 > Well, I'm using Gentoo so it is very likely a different setup than
 > Ubuntu.

Mats, I’ve seen your error. It’s because the configure script built without
GTK support, only with X support (check its output), and Jeff’s changes
haven’t been sufficiently tested in that context. Update to a more recent
version of his code (especially, one with my changes to configure.ac and
configure) and things should work better.

Jeff, I still need at least this to get things close to running:

diff -r 37f1870f3969 src/menubar-gtk.c
--- a/src/menubar-gtk.c	Fri Jun 04 15:31:10 2010 +0100
+++ b/src/menubar-gtk.c	Fri Jun 04 16:10:51 2010 +0100
@@ -49,17 +49,11 @@
 #define SUBMENU_TYPE	1
 #define POPUP_TYPE	2
 
-static GQuark XEMACS_MENU_DESCR_TAG =
-  g_quark_from_string ("xemacs::menu::description");
-static GQuark XEMACS_MENU_FILTER_TAG =
-  g_quark_from_string ("xemacs::menu::filter");
-static GQuark XEMACS_MENU_GUIID_TAG =
-  g_quark_from_string ("xemacs::menu::gui_id");
-static GQuark XEMACS_MENU_FIRSTTIME_TAG =
-  g_quark_from_string ("xemacs::menu::first_time");
-static GQuark XEMACS_MENU_FRAME_TAG =
-  g_quark_from_string ("xemacs::menu::frame");
-
+static GQuark XEMACS_MENU_DESCR_TAG;
+static GQuark XEMACS_MENU_FILTER_TAG;
+static GQuark XEMACS_MENU_GUIID_TAG;
+static GQuark XEMACS_MENU_FIRSTTIME_TAG;
+static GQuark XEMACS_MENU_FRAME_TAG;
 
 static GtkWidget *menu_descriptor_to_widget_1 (Lisp_Object descr, GtkAccelGroup* accel_group);
 
@@ -1500,6 +1494,11 @@
 #ifdef TEAR_OFF_MENUS
   tear_off_menus = 1;
 #endif
+  XEMACS_MENU_DESCR_TAG = g_quark_from_string ("xemacs::menu::description");
+  XEMACS_MENU_FILTER_TAG = g_quark_from_string ("xemacs::menu::filter");
+  XEMACS_MENU_GUIID_TAG = g_quark_from_string ("xemacs::menu::gui_id");
+  XEMACS_MENU_FIRSTTIME_TAG = g_quark_from_string ("xemacs::menu::first_time");
+  XEMACS_MENU_FRAME_TAG = g_quark_from_string ("xemacs::menu::frame");
 }
 
 void
diff -r 37f1870f3969 src/ui-gtk.c
--- a/src/ui-gtk.c	Fri Jun 04 15:31:10 2010 +0100
+++ b/src/ui-gtk.c	Fri Jun 04 16:10:51 2010 +0100
@@ -742,6 +742,7 @@
   CHECK_LIST (args);
 
   n_args = XINT (Flength (args));
+  memset (the_args, '\0', sizeof (the_args[0]) * (n_args + 1));
 
 #ifdef XEMACS_IS_SMARTER_THAN_THE_PROGRAMMER
   /* #### I think this is too dangerous to enable by default.

With this and with the most recent Mercurial version, XEmacs creates a
frame, but this constantly resizes, making itself smaller, until finally
only the menubar is visible. This is unusable.
http://www.parhasard.net/xemacs/problems-20100604.log
is what that build prints to standard error and standard output.

-- 
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
  -- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research



More information about the XEmacs-Beta mailing list