Commit 95b3d095 authored by Paul Eggert's avatar Paul Eggert
Browse files

* frame.h (SET_FRAME_VISIBLE): Now an inline function.

The macro didn't conform to C99 due to type mismatch,
which caused compilation failure with Sun C 5.12,
and it was confusing anyway.  Include window.h to declare
redisplay_other_windows.
parent 00a2b823
2013-12-08 Paul Eggert <eggert@cs.ucla.edu>
* frame.h (SET_FRAME_VISIBLE): Now an inline function.
The macro didn't conform to C99 due to type mismatch,
which caused compilation failure with Sun C 5.12,
and it was confusing anyway. Include window.h to declare
redisplay_other_windows.
2013-12-08 Stefan Monnier <monnier@iro.umontreal.ca> 2013-12-08 Stefan Monnier <monnier@iro.umontreal.ca>
* window.c (set_window_buffer): Update mode line (bug#16084). * window.c (set_window_buffer): Update mode line (bug#16084).
......
...@@ -25,6 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ ...@@ -25,6 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include "dispextern.h" #include "dispextern.h"
#include "termhooks.h" #include "termhooks.h"
#include "window.h"
INLINE_HEADER_BEGIN INLINE_HEADER_BEGIN
...@@ -956,10 +957,14 @@ default_pixels_per_inch_y (void) ...@@ -956,10 +957,14 @@ default_pixels_per_inch_y (void)
if some changes were applied to it while it wasn't visible (and hence if some changes were applied to it while it wasn't visible (and hence
wasn't redisplayed). */ wasn't redisplayed). */
#define SET_FRAME_VISIBLE(f, v) \ INLINE void
(((f)->visible == 0 || ((f)->visible == 2)) && ((v) == 1) \ SET_FRAME_VISIBLE (struct frame *f, int v)
? redisplay_other_windows () : 0, \ {
(f)->visible = (eassert (0 <= (v) && (v) <= 2), (v))) eassert (0 <= v && v <= 2);
if (v == 1 && f->visible != 1)
redisplay_other_windows ();
f->visible = v;
}
/* Set iconify of frame F. */ /* Set iconify of frame F. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment