]> git.eshelyaron.com Git - emacs.git/commitdiff
(mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 1 May 2007 08:17:19 +0000 (08:17 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 1 May 2007 08:17:19 +0000 (08:17 +0000)
(Fx_popup_dialog) [MAC_OSX]: Likewise.

src/ChangeLog
src/macmenu.c

index 9d1a4d3d3832f9a1b88d80ee1fd9d4dc2c3d80b4..dfd42c0cfc7b5ed61c53e37c35c6eaf6aed21666 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
+       (Fx_popup_dialog) [MAC_OSX]: Likewise.
+
 2007-04-29  Richard Stallman  <rms@gnu.org>
 
        * insdel.c (replace_range): For undo, record insertion first.
index c7a84df7106e55c25849e2061fe81a35d3297e7f..a5196a156ebfc6ca9df082c213d498e4d68bfa5d 100644 (file)
@@ -1011,6 +1011,11 @@ for instance using the window manager, then this produces a quit and
       DialogItemIndex item_hit;
       Lisp_Object tem;
 
+      /* Force a redisplay before showing the dialog.  If a frame is
+        created just before showing the dialog, its contents may not
+        have been fully drawn.  */
+      Fredisplay (Qt);
+
       tem = Fstring_match (concat3 (build_string ("\\("),
                                    call0 (intern ("sentence-end")),
                                    build_string ("\\)\n")),
@@ -2943,6 +2948,11 @@ mac_dialog_show (f, keymaps, title, header, error_name)
     first_wv = wv;
   }
 
+  /* Force a redisplay before showing the dialog.  If a frame is created
+     just before showing the dialog, its contents may not have been fully
+     drawn.  */
+  Fredisplay (Qt);
+
   /* Actually create the dialog.  */
 #if TARGET_API_MAC_CARBON
   menu_item_selection = create_and_show_dialog (f, first_wv);