aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2001-03-23 04:24:35 +0000
committerStefan Monnier2001-03-23 04:24:35 +0000
commitd873120270cef81f06d607ec9c149e8165b3d80e (patch)
tree079e8291b047841040e77c04f9d3b40e754e7b19 /src
parenteb49081e3efec8494567dfed0e879dfd782b630c (diff)
downloademacs-d873120270cef81f06d607ec9c149e8165b3d80e.tar.gz
emacs-d873120270cef81f06d607ec9c149e8165b3d80e.zip
(init_iterator): Check WINDOWP before using XWINDOW.
(string_buffer_position): Use `make_number'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog20
-rw-r--r--src/xdisp.c5
2 files changed, 16 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cb5758c1e7d..cc3e004390e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2
3 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4
5 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
6 (string_buffer_position): Use `make_number'.
7
12001-03-22 Gerd Moellmann <gerd@gnu.org> 82001-03-22 Gerd Moellmann <gerd@gnu.org>
2 9
3 * xfaces.c (x_update_menu_appearance): Renamed from 10 * xfaces.c (x_update_menu_appearance): Renamed from
@@ -9,17 +16,16 @@
9 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: 16 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
10 Removed, together with subroutines. 17 Removed, together with subroutines.
11 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function. 18 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
12 (realize_basic_faces) [USE_X_TOOLKIT]: Call 19 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
13 x_set_menu_face_resources.
14 20
15 * dispextern.h (x_set_menu_resources_from_menu_face): Remove 21 * dispextern.h (x_set_menu_resources_from_menu_face):
16 prototype. 22 Remove prototype.
17 23
18 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show): 24 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
19 Remove calls to x_set_menu_resources_from_menu_face. 25 Remove calls to x_set_menu_resources_from_menu_face.
20 26
21 * xfaces.c (xm_set_menu_resources_from_menu_face): Remove 27 * xfaces.c (xm_set_menu_resources_from_menu_face):
22 #ifndef LESSTIF_VERSION. 28 Remove #ifndef LESSTIF_VERSION.
23 29
24 * xmenu.c: Include widget.h. 30 * xmenu.c: Include widget.h.
25 (single_submenu): Return int. Some cleanup. 31 (single_submenu): Return int. Some cleanup.
diff --git a/src/xdisp.c b/src/xdisp.c
index 274c133aa87..5bef4697058 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1524,6 +1524,7 @@ init_iterator (it, w, charpos, bytepos, row, base_face_id)
1524 /* Or show the region if we are in the mini-buffer and W is 1524 /* Or show the region if we are in the mini-buffer and W is
1525 the window the mini-buffer refers to. */ 1525 the window the mini-buffer refers to. */
1526 || (MINI_WINDOW_P (XWINDOW (selected_window)) 1526 || (MINI_WINDOW_P (XWINDOW (selected_window))
1527 && WINDOWP (Vminibuf_scroll_window)
1527 && w == XWINDOW (Vminibuf_scroll_window)))) 1528 && w == XWINDOW (Vminibuf_scroll_window))))
1528 { 1529 {
1529 int charpos = marker_position (current_buffer->mark); 1530 int charpos = marker_position (current_buffer->mark);
@@ -3093,7 +3094,7 @@ string_buffer_position (w, string, around_charpos)
3093 const int MAX_DISTANCE = 1000; 3094 const int MAX_DISTANCE = 1000;
3094 int found = 0; 3095 int found = 0;
3095 3096
3096 pos = around_charpos; 3097 pos = make_number (around_charpos);
3097 limit = make_number (min (XINT (pos) + MAX_DISTANCE, ZV)); 3098 limit = make_number (min (XINT (pos) + MAX_DISTANCE, ZV));
3098 while (!found && !EQ (pos, limit)) 3099 while (!found && !EQ (pos, limit))
3099 { 3100 {
@@ -3106,7 +3107,7 @@ string_buffer_position (w, string, around_charpos)
3106 3107
3107 if (!found) 3108 if (!found)
3108 { 3109 {
3109 pos = around_charpos; 3110 pos = make_number (around_charpos);
3110 limit = make_number (max (XINT (pos) - MAX_DISTANCE, BEGV)); 3111 limit = make_number (max (XINT (pos) - MAX_DISTANCE, BEGV));
3111 while (!found && !EQ (pos, limit)) 3112 while (!found && !EQ (pos, limit))
3112 { 3113 {