aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-16 08:12:29 -0700
committerPaul Eggert2011-04-16 08:12:29 -0700
commit1fe72bf8610f908150f44357a86076bfddc7c26f (patch)
treea7b2cd2e72a63c133572bcf8d1560dc4771ff8c2 /src
parent60d9e1db81652a244a4f2f450a838637e9d75205 (diff)
downloademacs-1fe72bf8610f908150f44357a86076bfddc7c26f.tar.gz
emacs-1fe72bf8610f908150f44357a86076bfddc7c26f.zip
* xfns.c (Fx_hide_tip): Move locals to avoid shadowing.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xfns.c15
2 files changed, 10 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 350e522f6b1..6afd3836568 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-04-16 Paul Eggert <eggert@cs.ucla.edu> 12011-04-16 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * xfns.c (Fx_hide_tip): Move locals to avoid shadowing.
4
3 * menu.c (push_submenu_start, push_submenu_end): Do not define unless 5 * menu.c (push_submenu_start, push_submenu_end): Do not define unless
4 USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI. 6 USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI.
5 (single_menu_item): Rename local to avoid shadowing. 7 (single_menu_item): Rename local to avoid shadowing.
diff --git a/src/xfns.c b/src/xfns.c
index 1489cbf043e..aa373f3a82f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5205,7 +5205,6 @@ Value is t if tooltip was open, nil otherwise. */)
5205 int count; 5205 int count;
5206 Lisp_Object deleted, frame, timer; 5206 Lisp_Object deleted, frame, timer;
5207 struct gcpro gcpro1, gcpro2; 5207 struct gcpro gcpro1, gcpro2;
5208 struct frame *f;
5209 5208
5210 /* Return quickly if nothing to do. */ 5209 /* Return quickly if nothing to do. */
5211 if (NILP (tip_timer) && NILP (tip_frame)) 5210 if (NILP (tip_timer) && NILP (tip_frame))
@@ -5224,11 +5223,13 @@ Value is t if tooltip was open, nil otherwise. */)
5224 call1 (Qcancel_timer, timer); 5223 call1 (Qcancel_timer, timer);
5225 5224
5226#ifdef USE_GTK 5225#ifdef USE_GTK
5227 /* When using system tooltip, tip_frame is the Emacs frame on which 5226 {
5228 the tip is shown. */ 5227 /* When using system tooltip, tip_frame is the Emacs frame on which
5229 f = XFRAME (frame); 5228 the tip is shown. */
5230 if (FRAME_LIVE_P (f) && xg_hide_tooltip (f)) 5229 struct frame *f = XFRAME (frame);
5231 frame = Qnil; 5230 if (FRAME_LIVE_P (f) && xg_hide_tooltip (f))
5231 frame = Qnil;
5232 }
5232#endif 5233#endif
5233 5234
5234 if (FRAMEP (frame)) 5235 if (FRAMEP (frame))
@@ -5242,7 +5243,7 @@ Value is t if tooltip was open, nil otherwise. */)
5242 items is unmapped. Redisplay the menu manually... */ 5243 items is unmapped. Redisplay the menu manually... */
5243 { 5244 {
5244 Widget w; 5245 Widget w;
5245 f = SELECTED_FRAME (); 5246 struct frame *f = SELECTED_FRAME ();
5246 w = f->output_data.x->menubar_widget; 5247 w = f->output_data.x->menubar_widget;
5247 5248
5248 if (!DoesSaveUnders (FRAME_X_DISPLAY_INFO (f)->screen) 5249 if (!DoesSaveUnders (FRAME_X_DISPLAY_INFO (f)->screen)