diff options
| author | Richard M. Stallman | 2005-12-22 23:30:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-12-22 23:30:36 +0000 |
| commit | d130d1298b2d704d2ab8444e369c1989976502be (patch) | |
| tree | d4d0459abe3c6d7a60469c15dfac3079b5807397 /src | |
| parent | 160bde9cdbf57233b5ca4ad37158a8317d110f9a (diff) | |
| download | emacs-d130d1298b2d704d2ab8444e369c1989976502be.tar.gz emacs-d130d1298b2d704d2ab8444e369c1989976502be.zip | |
(xmenu_show): Call inhibit_garbage_collection.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index c6640916f32..51867f0478f 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -3343,6 +3343,11 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) | |||
| 3343 | return Qnil; | 3343 | return Qnil; |
| 3344 | } | 3344 | } |
| 3345 | 3345 | ||
| 3346 | /* Don't GC while we prepare and show the menu, | ||
| 3347 | because we give the oldxmenu library pointers to the | ||
| 3348 | contents of strings. */ | ||
| 3349 | inhibit_garbage_collection (); | ||
| 3350 | |||
| 3346 | #ifdef HAVE_X_WINDOWS | 3351 | #ifdef HAVE_X_WINDOWS |
| 3347 | /* Adjust coordinates to relative to the outer (window manager) window. */ | 3352 | /* Adjust coordinates to relative to the outer (window manager) window. */ |
| 3348 | x += FRAME_OUTER_TO_INNER_DIFF_X (f); | 3353 | x += FRAME_OUTER_TO_INNER_DIFF_X (f); |