Mercurial > emacs
changeset 106308:f276530df5ef
frame.c (frame_make_pointer_invisible)
(frame_make_pointer_visible): Declare f before statements.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Sun, 29 Nov 2009 09:48:50 +0000 |
parents | cbe5e21da2e4 |
children | 9470a3d1abee |
files | src/ChangeLog src/frame.c |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sat Nov 28 21:32:06 2009 +0000 +++ b/src/ChangeLog Sun Nov 29 09:48:50 2009 +0000 @@ -1,3 +1,8 @@ +2009-11-29 Jan Djärv <jan.h.d@swipnet.se> + + * frame.c (frame_make_pointer_invisible) + (frame_make_pointer_visible): Declare f before statements. + 2009-11-28 Eli Zaretskii <eliz@gnu.org> * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
--- a/src/frame.c Sat Nov 28 21:32:06 2009 +0000 +++ b/src/frame.c Sun Nov 29 09:48:50 2009 +0000 @@ -4377,10 +4377,11 @@ { if (! NILP (Vmake_pointer_invisible)) { + struct frame *f; if (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame))) return; - struct frame *f = SELECTED_FRAME (); + f = SELECTED_FRAME (); if (f && !f->pointer_invisible && FRAME_TERMINAL (f)->toggle_invisible_pointer_hook) { @@ -4396,11 +4397,12 @@ { /* We don't check Vmake_pointer_invisible here in case the pointer was invisible when Vmake_pointer_invisible was set to nil. */ + struct frame *f; if (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame))) return; - struct frame *f = SELECTED_FRAME (); + f = SELECTED_FRAME (); if (f && f->pointer_invisible && f->mouse_moved && FRAME_TERMINAL (f)->toggle_invisible_pointer_hook) {