aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/frame.h13
2 files changed, 17 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2f571aa7b1d..5daf1dc5a7c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12013-12-08 Paul Eggert <eggert@cs.ucla.edu>
2
3 * frame.h (SET_FRAME_VISIBLE): Now an inline function.
4 The macro didn't conform to C99 due to type mismatch,
5 which caused compilation failure with Sun C 5.12,
6 and it was confusing anyway. Include window.h to declare
7 redisplay_other_windows.
8
12013-12-08 Stefan Monnier <monnier@iro.umontreal.ca> 92013-12-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 10
3 * window.c (set_window_buffer): Update mode line (bug#16084). 11 * window.c (set_window_buffer): Update mode line (bug#16084).
diff --git a/src/frame.h b/src/frame.h
index 8369cf6b17e..0f6a674dc06 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -25,6 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25 25
26#include "dispextern.h" 26#include "dispextern.h"
27#include "termhooks.h" 27#include "termhooks.h"
28#include "window.h"
28 29
29INLINE_HEADER_BEGIN 30INLINE_HEADER_BEGIN
30 31
@@ -956,10 +957,14 @@ default_pixels_per_inch_y (void)
956 if some changes were applied to it while it wasn't visible (and hence 957 if some changes were applied to it while it wasn't visible (and hence
957 wasn't redisplayed). */ 958 wasn't redisplayed). */
958 959
959#define SET_FRAME_VISIBLE(f, v) \ 960INLINE void
960 (((f)->visible == 0 || ((f)->visible == 2)) && ((v) == 1) \ 961SET_FRAME_VISIBLE (struct frame *f, int v)
961 ? redisplay_other_windows () : 0, \ 962{
962 (f)->visible = (eassert (0 <= (v) && (v) <= 2), (v))) 963 eassert (0 <= v && v <= 2);
964 if (v == 1 && f->visible != 1)
965 redisplay_other_windows ();
966 f->visible = v;
967}
963 968
964/* Set iconify of frame F. */ 969/* Set iconify of frame F. */
965 970