]> git.eshelyaron.com Git - emacs.git/commitdiff
* xmenu.c (xmenu_show): Rename parameter to avoid shadowing.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Mar 2011 06:23:15 +0000 (22:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Mar 2011 06:23:15 +0000 (22:23 -0800)
src/ChangeLog
src/xmenu.c

index 1ca428fa685b9455d11b29b72793e9b90e5ef4c2..add827a9dc4c23014a10ce66f542d44838fa7a15 100644 (file)
@@ -2,6 +2,7 @@
 
        * xmenu.c (menu_highlight_callback): Now static.
        (set_frame_menubar): Remove unused local.
+       (xmenu_show): Rename parameter to avoid shadowing.
 
        * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
        Add a FIXME comment, since the code still doesn't look right.
index c79db086df380dad28c1beef9854d5ef3dd72de8..64d74ee66d7650578a8ae8a83ceb1a8df05f971a 100644 (file)
@@ -1598,7 +1598,7 @@ create_and_show_popup_menu (FRAME_PTR f, widget_value *first_wv,
 
 Lisp_Object
 xmenu_show (FRAME_PTR f, int x, int y, int for_click, int keymaps,
-           Lisp_Object title, const char **error, EMACS_UINT timestamp)
+           Lisp_Object title, const char **error_name, EMACS_UINT timestamp)
 {
   int i;
   widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0;
@@ -1613,11 +1613,11 @@ xmenu_show (FRAME_PTR f, int x, int y, int for_click, int keymaps,
   if (! FRAME_X_P (f))
     abort ();
 
-  *error = NULL;
+  *error_name = NULL;
 
   if (menu_items_used <= MENU_ITEMS_PANE_LENGTH)
     {
-      *error = "Empty menu";
+      *error_name = "Empty menu";
       return Qnil;
     }