aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog21
-rw-r--r--src/nsterm.m2
-rw-r--r--src/window.c2
3 files changed, 22 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4469297e32f..c677288ad3e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12011-02-12 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (select_window): Check inhibit_point_swap argument when
4 deciding whether to return immediately.
5
62011-02-12 Jan Djärv <jan.h.d@swipnet.se>
7
8 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
9 zero (Bug#7348).
10
112011-02-12 Chong Yidong <cyd@stupidchicken.com>
12
13 * config.in (TERMINFO): New definition.
14
15 * s/netbsd.h: Use it to choose between terminfo and termcap
16 (Bug#7642).
17
12011-02-12 Paul Eggert <eggert@cs.ucla.edu> 182011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2 19
3 * md5.c (md5_process_bytes): Use sizeof, not __alignof__. 20 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
@@ -1610,7 +1627,7 @@
1610 1627
1611 * gtkutil.c (menubar_map_cb): New function (Bug#7425). 1628 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1612 (xg_update_frame_menubar): Connect signal map to menubar_map_cb. 1629 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1613 Use 23 as menubar height if 0. (Bug#7425). 1630 Use 23 as menubar height if 0. (Bug#7425).
1614 1631
16152010-11-26 Eli Zaretskii <eliz@gnu.org> 16322010-11-26 Eli Zaretskii <eliz@gnu.org>
1616 1633
@@ -2617,7 +2634,7 @@
2617 is more portable. 2634 is more portable.
2618 2635
2619 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ... 2636 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2620 (kbd_buffer_get_event): ... here. This is needed for cygwin, which 2637 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2621 has not defined SIGIO. 2638 has not defined SIGIO.
2622 2639
26232010-10-08 Chong Yidong <cyd@stupidchicken.com> 26402010-10-08 Chong Yidong <cyd@stupidchicken.com>
diff --git a/src/nsterm.m b/src/nsterm.m
index e83b14748df..590a76ba16d 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5783,6 +5783,7 @@ ns_term_shutdown (int sig)
5783 win = nwin; 5783 win = nwin;
5784 condemned = NO; 5784 condemned = NO;
5785 pixel_height = NSHeight (r); 5785 pixel_height = NSHeight (r);
5786 if (pixel_height == 0) pixel_height = 1;
5786 min_portion = 20 / pixel_height; 5787 min_portion = 20 / pixel_height;
5787 5788
5788 frame = XFRAME (XWINDOW (win)->frame); 5789 frame = XFRAME (XWINDOW (win)->frame);
@@ -5812,6 +5813,7 @@ ns_term_shutdown (int sig)
5812 NSTRACE (EmacsScroller_setFrame); 5813 NSTRACE (EmacsScroller_setFrame);
5813/* BLOCK_INPUT; */ 5814/* BLOCK_INPUT; */
5814 pixel_height = NSHeight (newRect); 5815 pixel_height = NSHeight (newRect);
5816 if (pixel_height == 0) pixel_height = 1;
5815 min_portion = 20 / pixel_height; 5817 min_portion = 20 / pixel_height;
5816 [super setFrame: newRect]; 5818 [super setFrame: newRect];
5817 [self display]; 5819 [self display];
diff --git a/src/window.c b/src/window.c
index abf01758c3f..b158073a3db 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3517,7 +3517,7 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap)
3517 record_buffer (w->buffer); 3517 record_buffer (w->buffer);
3518 } 3518 }
3519 3519
3520 if (EQ (window, selected_window)) 3520 if (EQ (window, selected_window) && !inhibit_point_swap)
3521 return window; 3521 return window;
3522 3522
3523 sf = SELECTED_FRAME (); 3523 sf = SELECTED_FRAME ();