diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 21 | ||||
| -rw-r--r-- | src/xdisp.c | 42 |
2 files changed, 33 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ce03ac5ccda..357060188a5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,19 +1,21 @@ | |||
| 1 | 2004-03-26 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error | ||
| 4 | to catch errors in calc_pixel_width_or_height during redisplay. | ||
| 5 | |||
| 1 | 2004-03-26 Masatake YAMATO <jet@gyve.org> | 6 | 2004-03-26 Masatake YAMATO <jet@gyve.org> |
| 2 | 7 | ||
| 3 | * insdel.c (adjust_markers_for_insert): Call | 8 | * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range. |
| 4 | fix_start_end_in_overlays. | ||
| 5 | 9 | ||
| 6 | * buffer.c (fix_start_end_in_overlays): Rename | 10 | * lisp.h (fix_start_end_in_overlays): Likewise. |
| 7 | fix_overlays_in_range. | ||
| 8 | 11 | ||
| 9 | * editfns.c (Ftranspose_regions): Likewise. | 12 | * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays. |
| 10 | 13 | ||
| 11 | * lisp.h (top_level): Likewise. | 14 | * editfns.c (Ftranspose_regions): Likewise. |
| 12 | 15 | ||
| 13 | 2004-03-20 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 16 | 2004-03-20 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 14 | 17 | ||
| 15 | * xterm.c (handle_one_xevent): Do not pass key press events to | 18 | * xterm.c (handle_one_xevent): Do not pass key press events to GTK. |
| 16 | GTK. | ||
| 17 | 19 | ||
| 18 | 2004-03-19 Richard M. Stallman <rms@gnu.org> | 20 | 2004-03-19 Richard M. Stallman <rms@gnu.org> |
| 19 | 21 | ||
| @@ -65,8 +67,7 @@ | |||
| 65 | 67 | ||
| 66 | 2004-03-14 Steven Tamm <steventamm@mac.com> | 68 | 2004-03-14 Steven Tamm <steventamm@mac.com> |
| 67 | 69 | ||
| 68 | * Makefile.in (XMENU_OBJ): Do not include xmenu.o if | 70 | * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o. |
| 69 | HAVE_CARBON is defined. | ||
| 70 | 71 | ||
| 71 | 2004-03-14 Kim F. Storm <storm@cua.dk> | 72 | 2004-03-14 Kim F. Storm <storm@cua.dk> |
| 72 | 73 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 8fd0763590a..d5e49f744cf 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -315,7 +315,7 @@ Lisp_Object Vshow_trailing_whitespace; | |||
| 315 | extern Lisp_Object Voverflow_newline_into_fringe; | 315 | extern Lisp_Object Voverflow_newline_into_fringe; |
| 316 | 316 | ||
| 317 | /* Test if overflow newline into fringe. Called with iterator IT | 317 | /* Test if overflow newline into fringe. Called with iterator IT |
| 318 | at or past right window margin, and with IT->current_x set. */ | 318 | at or past right window margin, and with IT->current_x set. */ |
| 319 | 319 | ||
| 320 | #define IT_OVERFLOW_NEWLINE_INTO_FRINGE(it) \ | 320 | #define IT_OVERFLOW_NEWLINE_INTO_FRINGE(it) \ |
| 321 | (!NILP (Voverflow_newline_into_fringe) \ | 321 | (!NILP (Voverflow_newline_into_fringe) \ |
| @@ -407,7 +407,7 @@ Lisp_Object Vglobal_mode_string; | |||
| 407 | 407 | ||
| 408 | /* List of variables (symbols) which hold markers for overlay arrows. | 408 | /* List of variables (symbols) which hold markers for overlay arrows. |
| 409 | The symbols on this list are examined during redisplay to determine | 409 | The symbols on this list are examined during redisplay to determine |
| 410 | where to display overlay arrows. */ | 410 | where to display overlay arrows. */ |
| 411 | 411 | ||
| 412 | Lisp_Object Voverlay_arrow_variable_list; | 412 | Lisp_Object Voverlay_arrow_variable_list; |
| 413 | 413 | ||
| @@ -8363,7 +8363,7 @@ update_tool_bar (f, save_match_data) | |||
| 8363 | /* Redisplay the tool-bar if we changed it. */ | 8363 | /* Redisplay the tool-bar if we changed it. */ |
| 8364 | if (! NILP (Fequal (old_tool_bar, f->tool_bar_items))) | 8364 | if (! NILP (Fequal (old_tool_bar, f->tool_bar_items))) |
| 8365 | w->update_mode_line = Qt; | 8365 | w->update_mode_line = Qt; |
| 8366 | 8366 | ||
| 8367 | UNGCPRO; | 8367 | UNGCPRO; |
| 8368 | 8368 | ||
| 8369 | unbind_to (count, Qnil); | 8369 | unbind_to (count, Qnil); |
| @@ -9462,7 +9462,7 @@ overlay_arrow_at_row (f, row, pbitmap) | |||
| 9462 | continue; | 9462 | continue; |
| 9463 | 9463 | ||
| 9464 | val = find_symbol_value (var); | 9464 | val = find_symbol_value (var); |
| 9465 | 9465 | ||
| 9466 | if (MARKERP (val) | 9466 | if (MARKERP (val) |
| 9467 | && current_buffer == XMARKER (val)->buffer | 9467 | && current_buffer == XMARKER (val)->buffer |
| 9468 | && (MATRIX_ROW_START_CHARPOS (row) == marker_position (val))) | 9468 | && (MATRIX_ROW_START_CHARPOS (row) == marker_position (val))) |
| @@ -11352,7 +11352,7 @@ set_vertical_scroll_bar (w) | |||
| 11352 | which reflect the whole buffer size, with special markers | 11352 | which reflect the whole buffer size, with special markers |
| 11353 | indicating narrowing, and scrollbars which reflect only the | 11353 | indicating narrowing, and scrollbars which reflect only the |
| 11354 | visible region. | 11354 | visible region. |
| 11355 | 11355 | ||
| 11356 | Note that mini-buffers sometimes aren't displaying any text. */ | 11356 | Note that mini-buffers sometimes aren't displaying any text. */ |
| 11357 | if (!MINI_WINDOW_P (w) | 11357 | if (!MINI_WINDOW_P (w) |
| 11358 | || (w == XWINDOW (minibuf_window) | 11358 | || (w == XWINDOW (minibuf_window) |
| @@ -11364,7 +11364,7 @@ set_vertical_scroll_bar (w) | |||
| 11364 | /* I don't think this is guaranteed to be right. For the | 11364 | /* I don't think this is guaranteed to be right. For the |
| 11365 | moment, we'll pretend it is. */ | 11365 | moment, we'll pretend it is. */ |
| 11366 | end = BUF_Z (buf) - XFASTINT (w->window_end_pos) - BUF_BEGV (buf); | 11366 | end = BUF_Z (buf) - XFASTINT (w->window_end_pos) - BUF_BEGV (buf); |
| 11367 | 11367 | ||
| 11368 | if (end < start) | 11368 | if (end < start) |
| 11369 | end = start; | 11369 | end = start; |
| 11370 | if (whole < (end - start)) | 11370 | if (whole < (end - start)) |
| @@ -16701,7 +16701,7 @@ invisible_p (propval, list) | |||
| 16701 | /* Calculate a width or height in pixels from a specification using | 16701 | /* Calculate a width or height in pixels from a specification using |
| 16702 | the following elements: | 16702 | the following elements: |
| 16703 | 16703 | ||
| 16704 | SPEC ::= | 16704 | SPEC ::= |
| 16705 | NUM - a (fractional) multiple of the default font width/height | 16705 | NUM - a (fractional) multiple of the default font width/height |
| 16706 | (NUM) - specifies exactly NUM pixels | 16706 | (NUM) - specifies exactly NUM pixels |
| 16707 | UNIT - a fixed number of pixels, see below. | 16707 | UNIT - a fixed number of pixels, see below. |
| @@ -16711,7 +16711,7 @@ invisible_p (propval, list) | |||
| 16711 | (- SPEC SPEC ...) - subtract pixel values | 16711 | (- SPEC SPEC ...) - subtract pixel values |
| 16712 | (- SPEC) - negate pixel value | 16712 | (- SPEC) - negate pixel value |
| 16713 | 16713 | ||
| 16714 | NUM ::= | 16714 | NUM ::= |
| 16715 | INT or FLOAT - a number constant | 16715 | INT or FLOAT - a number constant |
| 16716 | SYMBOL - use symbol's (buffer local) variable binding. | 16716 | SYMBOL - use symbol's (buffer local) variable binding. |
| 16717 | 16717 | ||
| @@ -16737,15 +16737,15 @@ invisible_p (propval, list) | |||
| 16737 | Examples: | 16737 | Examples: |
| 16738 | 16738 | ||
| 16739 | Pixels corresponding to 5 inches: | 16739 | Pixels corresponding to 5 inches: |
| 16740 | (5 . in) | 16740 | (5 . in) |
| 16741 | 16741 | ||
| 16742 | Total width of non-text areas on left side of window (if scroll-bar is on left): | 16742 | Total width of non-text areas on left side of window (if scroll-bar is on left): |
| 16743 | '(space :width (+ left-fringe left-margin scroll-bar)) | 16743 | '(space :width (+ left-fringe left-margin scroll-bar)) |
| 16744 | 16744 | ||
| 16745 | Align to first text column (in header line): | 16745 | Align to first text column (in header line): |
| 16746 | '(space :align-to 0) | 16746 | '(space :align-to 0) |
| 16747 | 16747 | ||
| 16748 | Align to middle of text area minus half the width of variable `my-image' | 16748 | Align to middle of text area minus half the width of variable `my-image' |
| 16749 | containing a loaded image: | 16749 | containing a loaded image: |
| 16750 | '(space :align-to (0.5 . (- text my-image))) | 16750 | '(space :align-to (0.5 . (- text my-image))) |
| 16751 | 16751 | ||
| @@ -18313,7 +18313,7 @@ produce_stretch_glyph (it) | |||
| 18313 | && calc_pixel_width_or_height (&tem, it, prop, font, 1, &align_to)) | 18313 | && calc_pixel_width_or_height (&tem, it, prop, font, 1, &align_to)) |
| 18314 | { | 18314 | { |
| 18315 | if (it->glyph_row == NULL || !it->glyph_row->mode_line_p) | 18315 | if (it->glyph_row == NULL || !it->glyph_row->mode_line_p) |
| 18316 | align_to = (align_to < 0 | 18316 | align_to = (align_to < 0 |
| 18317 | ? 0 | 18317 | ? 0 |
| 18318 | : align_to - window_box_left_offset (it->w, TEXT_AREA)); | 18318 | : align_to - window_box_left_offset (it->w, TEXT_AREA)); |
| 18319 | else if (align_to < 0) | 18319 | else if (align_to < 0) |
| @@ -20196,7 +20196,7 @@ on_hot_spot_p (hot_spot, x, y) | |||
| 20196 | int x0, y0; | 20196 | int x0, y0; |
| 20197 | 20197 | ||
| 20198 | /* Need an even number of coordinates, and at least 3 edges. */ | 20198 | /* Need an even number of coordinates, and at least 3 edges. */ |
| 20199 | if (n < 6 || n & 1) | 20199 | if (n < 6 || n & 1) |
| 20200 | return 0; | 20200 | return 0; |
| 20201 | 20201 | ||
| 20202 | /* Count edge segments intersecting line from (X,Y) to (X,infinity). | 20202 | /* Count edge segments intersecting line from (X,Y) to (X,infinity). |
| @@ -20246,13 +20246,13 @@ find_hot_spot (map, x, y) | |||
| 20246 | return XCAR (map); | 20246 | return XCAR (map); |
| 20247 | map = XCDR (map); | 20247 | map = XCDR (map); |
| 20248 | } | 20248 | } |
| 20249 | 20249 | ||
| 20250 | return Qnil; | 20250 | return Qnil; |
| 20251 | } | 20251 | } |
| 20252 | 20252 | ||
| 20253 | DEFUN ("lookup-image-map", Flookup_image_map, Slookup_image_map, | 20253 | DEFUN ("lookup-image-map", Flookup_image_map, Slookup_image_map, |
| 20254 | 3, 3, 0, | 20254 | 3, 3, 0, |
| 20255 | doc: /* Lookup in image map MAP coordinates X and Y. | 20255 | doc: /* Lookup in image map MAP coordinates X and Y. |
| 20256 | An image map is an alist where each element has the format (AREA ID PLIST). | 20256 | An image map is an alist where each element has the format (AREA ID PLIST). |
| 20257 | An AREA is specified as either a rectangle, a circle, or a polygon: | 20257 | An AREA is specified as either a rectangle, a circle, or a polygon: |
| 20258 | A rectangle is a cons (rect . ((x0 . y0) . (x1 . y1))) specifying the | 20258 | A rectangle is a cons (rect . ((x0 . y0) . (x1 . y1))) specifying the |
| @@ -21125,13 +21125,13 @@ phys_cursor_in_rect_p (w, r) | |||
| 21125 | cursor_glyph = get_phys_cursor_glyph (w); | 21125 | cursor_glyph = get_phys_cursor_glyph (w); |
| 21126 | if (cursor_glyph) | 21126 | if (cursor_glyph) |
| 21127 | { | 21127 | { |
| 21128 | /* r is relative to W's box, but w->phys_cursor.x is relative | 21128 | /* r is relative to W's box, but w->phys_cursor.x is relative |
| 21129 | to left edge of W's TEXT area. Adjust it. */ | 21129 | to left edge of W's TEXT area. Adjust it. */ |
| 21130 | cr.x = window_box_left_offset (w, TEXT_AREA) + w->phys_cursor.x; | 21130 | cr.x = window_box_left_offset (w, TEXT_AREA) + w->phys_cursor.x; |
| 21131 | cr.y = w->phys_cursor.y; | 21131 | cr.y = w->phys_cursor.y; |
| 21132 | cr.width = cursor_glyph->pixel_width; | 21132 | cr.width = cursor_glyph->pixel_width; |
| 21133 | cr.height = w->phys_cursor_height; | 21133 | cr.height = w->phys_cursor_height; |
| 21134 | /* ++KFS: W32 version used W32-specific IntersectRect here, but | 21134 | /* ++KFS: W32 version used W32-specific IntersectRect here, but |
| 21135 | I assume the effect is the same -- and this is portable. */ | 21135 | I assume the effect is the same -- and this is portable. */ |
| 21136 | return x_intersect_rectangles (&cr, r, &result); | 21136 | return x_intersect_rectangles (&cr, r, &result); |
| 21137 | } | 21137 | } |
| @@ -21151,7 +21151,7 @@ x_draw_vertical_border (w) | |||
| 21151 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 21151 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 21152 | 21152 | ||
| 21153 | /* We could do better, if we knew what type of scroll-bar the adjacent | 21153 | /* We could do better, if we knew what type of scroll-bar the adjacent |
| 21154 | windows (on either side) have... But we don't :-( | 21154 | windows (on either side) have... But we don't :-( |
| 21155 | However, I think this works ok. ++KFS 2003-04-25 */ | 21155 | However, I think this works ok. ++KFS 2003-04-25 */ |
| 21156 | 21156 | ||
| 21157 | /* Redraw borders between horizontally adjacent windows. Don't | 21157 | /* Redraw borders between horizontally adjacent windows. Don't |
| @@ -21642,7 +21642,9 @@ syms_of_xdisp () | |||
| 21642 | Qinhibit_free_realized_faces = intern ("inhibit-free-realized-faces"); | 21642 | Qinhibit_free_realized_faces = intern ("inhibit-free-realized-faces"); |
| 21643 | staticpro (&Qinhibit_free_realized_faces); | 21643 | staticpro (&Qinhibit_free_realized_faces); |
| 21644 | 21644 | ||
| 21645 | list_of_error = Fcons (intern ("error"), Qnil); | 21645 | list_of_error = Fcons (Fcons (intern ("error"), |
| 21646 | Fcons (intern ("void-variable"), Qnil)), | ||
| 21647 | Qnil); | ||
| 21646 | staticpro (&list_of_error); | 21648 | staticpro (&list_of_error); |
| 21647 | 21649 | ||
| 21648 | Qlast_arrow_position = intern ("last-arrow-position"); | 21650 | Qlast_arrow_position = intern ("last-arrow-position"); |
| @@ -21698,7 +21700,7 @@ The face used for trailing whitespace is `trailing-whitespace'. */); | |||
| 21698 | DEFVAR_LISP ("void-text-area-pointer", &Vvoid_text_area_pointer, | 21700 | DEFVAR_LISP ("void-text-area-pointer", &Vvoid_text_area_pointer, |
| 21699 | doc: /* *The pointer shape to show in void text areas. | 21701 | doc: /* *The pointer shape to show in void text areas. |
| 21700 | Nil means to show the text pointer. Other options are `arrow', `text', | 21702 | Nil means to show the text pointer. Other options are `arrow', `text', |
| 21701 | `hand', `vdrag', `hdrag', `modeline', and `hourglass'. */); | 21703 | `hand', `vdrag', `hdrag', `modeline', and `hourglass'. */); |
| 21702 | Vvoid_text_area_pointer = Qarrow; | 21704 | Vvoid_text_area_pointer = Qarrow; |
| 21703 | 21705 | ||
| 21704 | DEFVAR_LISP ("inhibit-redisplay", &Vinhibit_redisplay, | 21706 | DEFVAR_LISP ("inhibit-redisplay", &Vinhibit_redisplay, |