diff options
| author | Eli Zaretskii | 2012-10-09 19:58:18 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-10-09 19:58:18 +0200 |
| commit | cf5fc6dbeac10220394ab201ba3f4402e1e91faf (patch) | |
| tree | 009ee105f1b64a46efb0160bf1043e02cd6fb79e /src | |
| parent | 238f3a587a9af8567a5a86a53e5183910526674b (diff) | |
| download | emacs-cf5fc6dbeac10220394ab201ba3f4402e1e91faf.tar.gz emacs-cf5fc6dbeac10220394ab201ba3f4402e1e91faf.zip | |
Avoid shadowing a global variable by a local one in frame.c.
src/frame.c (delete_frame): Rename local variable 'tooltip_frame' to
'is_tooltip_frame', to avoid confusion with its global namesake.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/frame.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1acf2e0b5f9..ee1057bc64d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * frame.c (delete_frame): Rename local variable 'tooltip_frame' to | ||
| 4 | 'is_tooltip_frame', to avoid confusion with its global namesake. | ||
| 5 | |||
| 1 | 2012-10-08 Daniel Colascione <dancol@dancol.org> | 6 | 2012-10-08 Daniel Colascione <dancol@dancol.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (start_hourglass): Call w32_note_current_window when | 8 | * xdisp.c (start_hourglass): Call w32_note_current_window when |
diff --git a/src/frame.c b/src/frame.c index 599d8879169..017d051fc1d 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1124,7 +1124,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force) | |||
| 1124 | struct frame *sf = SELECTED_FRAME (); | 1124 | struct frame *sf = SELECTED_FRAME (); |
| 1125 | struct kboard *kb; | 1125 | struct kboard *kb; |
| 1126 | 1126 | ||
| 1127 | int minibuffer_selected, tooltip_frame; | 1127 | int minibuffer_selected, is_tooltip_frame; |
| 1128 | 1128 | ||
| 1129 | if (EQ (frame, Qnil)) | 1129 | if (EQ (frame, Qnil)) |
| 1130 | { | 1130 | { |
| @@ -1176,13 +1176,13 @@ delete_frame (Lisp_Object frame, Lisp_Object force) | |||
| 1176 | } | 1176 | } |
| 1177 | } | 1177 | } |
| 1178 | 1178 | ||
| 1179 | tooltip_frame = !NILP (Fframe_parameter (frame, intern ("tooltip"))); | 1179 | is_tooltip_frame = !NILP (Fframe_parameter (frame, intern ("tooltip"))); |
| 1180 | 1180 | ||
| 1181 | /* Run `delete-frame-functions' unless FORCE is `noelisp' or | 1181 | /* Run `delete-frame-functions' unless FORCE is `noelisp' or |
| 1182 | frame is a tooltip. FORCE is set to `noelisp' when handling | 1182 | frame is a tooltip. FORCE is set to `noelisp' when handling |
| 1183 | a disconnect from the terminal, so we don't dare call Lisp | 1183 | a disconnect from the terminal, so we don't dare call Lisp |
| 1184 | code. */ | 1184 | code. */ |
| 1185 | if (NILP (Vrun_hooks) || tooltip_frame) | 1185 | if (NILP (Vrun_hooks) || is_tooltip_frame) |
| 1186 | ; | 1186 | ; |
| 1187 | else if (EQ (force, Qnoelisp)) | 1187 | else if (EQ (force, Qnoelisp)) |
| 1188 | pending_funcalls | 1188 | pending_funcalls |
| @@ -1461,7 +1461,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force) | |||
| 1461 | } | 1461 | } |
| 1462 | 1462 | ||
| 1463 | /* Cause frame titles to update--necessary if we now have just one frame. */ | 1463 | /* Cause frame titles to update--necessary if we now have just one frame. */ |
| 1464 | if (!tooltip_frame) | 1464 | if (!is_tooltip_frame) |
| 1465 | update_mode_lines = 1; | 1465 | update_mode_lines = 1; |
| 1466 | 1466 | ||
| 1467 | return Qnil; | 1467 | return Qnil; |