[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xmenu.c
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/src/xmenu.c |
Date: |
Thu, 22 Dec 2005 23:30:37 +0000 |
Index: emacs/src/xmenu.c
diff -u emacs/src/xmenu.c:1.297 emacs/src/xmenu.c:1.298
--- emacs/src/xmenu.c:1.297 Tue Dec 20 21:37:36 2005
+++ emacs/src/xmenu.c Thu Dec 22 23:30:36 2005
@@ -3343,6 +3343,11 @@
return Qnil;
}
+ /* Don't GC while we prepare and show the menu,
+ because we give the oldxmenu library pointers to the
+ contents of strings. */
+ inhibit_garbage_collection ();
+
#ifdef HAVE_X_WINDOWS
/* Adjust coordinates to relative to the outer (window manager) window. */
x += FRAME_OUTER_TO_INNER_DIFF_X (f);