diff options
| author | Karoly Lorentey | 2004-07-27 07:43:21 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-07-27 07:43:21 +0000 |
| commit | e1775c3e8209d76d22151282bc5343ed948b948c (patch) | |
| tree | fb6614369baa846adfcc553eda24cc73b3f67961 /src | |
| parent | 15dabcb48a89496d128b7159fbb8d498b7cfbda6 (diff) | |
| parent | 38357a23f4887991726185607297a98a82680ea8 (diff) | |
| download | emacs-e1775c3e8209d76d22151282bc5343ed948b948c.tar.gz emacs-e1775c3e8209d76d22151282bc5343ed948b948c.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-468
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-469
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-222
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 35 | ||||
| -rw-r--r-- | src/abbrev.c | 4 | ||||
| -rw-r--r-- | src/alloc.c | 11 | ||||
| -rw-r--r-- | src/dispextern.h | 3 | ||||
| -rw-r--r-- | src/fileio.c | 2 | ||||
| -rw-r--r-- | src/keyboard.h | 1 | ||||
| -rw-r--r-- | src/window.c | 18 | ||||
| -rw-r--r-- | src/xdisp.c | 11 | ||||
| -rw-r--r-- | src/xfaces.c | 1 |
9 files changed, 75 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8d9d72de9d2..3e6094bbca0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,40 @@ | |||
| 1 | 2004-07-26 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe | ||
| 4 | is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV | ||
| 5 | if target position is at end of display line but char is not a newline. | ||
| 6 | |||
| 7 | 2004-07-25 Richard M. Stallman <rms@gnu.org> | ||
| 8 | |||
| 9 | * window.c (coordinates_in_window): Return ON_SCROLL_BAR | ||
| 10 | instead of ON_VERTICAL_BORDER, when on scroll bar. | ||
| 11 | (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil. | ||
| 12 | |||
| 13 | * dispextern.h (enum window_part): Add ON_SCROLL_BAR. | ||
| 14 | |||
| 15 | * window.c (Fcoordinates_in_window_p): | ||
| 16 | Take account of FRAME_INTERNAL_BORDER_WIDTH. | ||
| 17 | |||
| 18 | * alloc.c (check_cons_list): New function (contents commented out). | ||
| 19 | |||
| 20 | 2004-07-24 Luc Teirlinck <teirllm@auburn.edu> | ||
| 21 | |||
| 22 | * xfaces.c (Fcolor_supported_p): Doc fix. | ||
| 23 | |||
| 24 | * frame.c (Fselect_frame, Fset_frame_selected_window) | ||
| 25 | (Fframe_visible_p, Fraise_frame): Doc fixes. | ||
| 26 | |||
| 1 | 2004-07-24 Richard M. Stallman <rms@gnu.org> | 27 | 2004-07-24 Richard M. Stallman <rms@gnu.org> |
| 2 | 28 | ||
| 29 | * keyboard.h (not_single_kboard_state): Declared. | ||
| 30 | |||
| 31 | * fileio.c (Fwrite_region): Doc fix. | ||
| 32 | |||
| 33 | * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH. | ||
| 34 | |||
| 35 | * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook | ||
| 36 | only when a real abbrev is present. | ||
| 37 | |||
| 3 | * xfns.c (x_icon_verify): New function. | 38 | * xfns.c (x_icon_verify): New function. |
| 4 | (Fx_create_frame): Use it. | 39 | (Fx_create_frame): Use it. |
| 5 | 40 | ||
diff --git a/src/abbrev.c b/src/abbrev.c index ac132f20023..37ab640ee43 100644 --- a/src/abbrev.c +++ b/src/abbrev.c | |||
| @@ -248,8 +248,6 @@ Returns the abbrev symbol, if expansion took place. */) | |||
| 248 | 248 | ||
| 249 | value = Qnil; | 249 | value = Qnil; |
| 250 | 250 | ||
| 251 | Frun_hooks (1, &Qpre_abbrev_expand_hook); | ||
| 252 | |||
| 253 | wordstart = 0; | 251 | wordstart = 0; |
| 254 | if (!(BUFFERP (Vabbrev_start_location_buffer) | 252 | if (!(BUFFERP (Vabbrev_start_location_buffer) |
| 255 | && XBUFFER (Vabbrev_start_location_buffer) == current_buffer)) | 253 | && XBUFFER (Vabbrev_start_location_buffer) == current_buffer)) |
| @@ -326,6 +324,8 @@ Returns the abbrev symbol, if expansion took place. */) | |||
| 326 | if (INTEGERP (sym) || NILP (SYMBOL_VALUE (sym))) | 324 | if (INTEGERP (sym) || NILP (SYMBOL_VALUE (sym))) |
| 327 | return value; | 325 | return value; |
| 328 | 326 | ||
| 327 | Frun_hooks (1, &Qpre_abbrev_expand_hook); | ||
| 328 | |||
| 329 | if (INTERACTIVE && !EQ (minibuf_window, selected_window)) | 329 | if (INTERACTIVE && !EQ (minibuf_window, selected_window)) |
| 330 | { | 330 | { |
| 331 | /* Add an undo boundary, in case we are doing this for | 331 | /* Add an undo boundary, in case we are doing this for |
diff --git a/src/alloc.c b/src/alloc.c index 955f274c270..e1fadc155f6 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2396,6 +2396,17 @@ DEFUN ("cons", Fcons, Scons, 2, 2, 0, | |||
| 2396 | return val; | 2396 | return val; |
| 2397 | } | 2397 | } |
| 2398 | 2398 | ||
| 2399 | /* Get an error now if there's any junk in the cons free list. */ | ||
| 2400 | void | ||
| 2401 | check_cons_list () | ||
| 2402 | { | ||
| 2403 | struct Lisp_Cons *tail = cons_free_list; | ||
| 2404 | |||
| 2405 | #if 0 | ||
| 2406 | while (tail) | ||
| 2407 | tail = *(struct Lisp_Cons **)&tail->cdr; | ||
| 2408 | #endif | ||
| 2409 | } | ||
| 2399 | 2410 | ||
| 2400 | /* Make a list of 2, 3, 4 or 5 specified objects. */ | 2411 | /* Make a list of 2, 3, 4 or 5 specified objects. */ |
| 2401 | 2412 | ||
diff --git a/src/dispextern.h b/src/dispextern.h index c438ad0f9dd..5f293219328 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -99,7 +99,8 @@ enum window_part | |||
| 99 | ON_LEFT_FRINGE, | 99 | ON_LEFT_FRINGE, |
| 100 | ON_RIGHT_FRINGE, | 100 | ON_RIGHT_FRINGE, |
| 101 | ON_LEFT_MARGIN, | 101 | ON_LEFT_MARGIN, |
| 102 | ON_RIGHT_MARGIN | 102 | ON_RIGHT_MARGIN, |
| 103 | ON_SCROLL_BAR | ||
| 103 | }; | 104 | }; |
| 104 | 105 | ||
| 105 | /* Number of bits allocated to store fringe bitmap numbers. */ | 106 | /* Number of bits allocated to store fringe bitmap numbers. */ |
diff --git a/src/fileio.c b/src/fileio.c index f81566a7656..a05d7689c12 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4868,7 +4868,7 @@ instead of any buffer contents; END is ignored. | |||
| 4868 | Optional fourth argument APPEND if non-nil means | 4868 | Optional fourth argument APPEND if non-nil means |
| 4869 | append to existing file contents (if any). If it is an integer, | 4869 | append to existing file contents (if any). If it is an integer, |
| 4870 | seek to that offset in the file before writing. | 4870 | seek to that offset in the file before writing. |
| 4871 | Optional fifth argument VISIT if t means | 4871 | Optional fifth argument VISIT, if t or a string, means |
| 4872 | set the last-save-file-modtime of buffer to this file's modtime | 4872 | set the last-save-file-modtime of buffer to this file's modtime |
| 4873 | and mark buffer not modified. | 4873 | and mark buffer not modified. |
| 4874 | If VISIT is a string, it is a second file name; | 4874 | If VISIT is a string, it is a second file name; |
diff --git a/src/keyboard.h b/src/keyboard.h index 3f38b7ded6b..c079994ca9a 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -307,6 +307,7 @@ extern void echo_now P_ ((void)); | |||
| 307 | extern void init_kboard P_ ((KBOARD *)); | 307 | extern void init_kboard P_ ((KBOARD *)); |
| 308 | extern void delete_kboard P_ ((KBOARD *)); | 308 | extern void delete_kboard P_ ((KBOARD *)); |
| 309 | extern void single_kboard_state P_ ((void)); | 309 | extern void single_kboard_state P_ ((void)); |
| 310 | extern void not_single_kboard_state P_ ((KBOARD *)); | ||
| 310 | extern void push_frame_kboard P_ ((struct frame *)); | 311 | extern void push_frame_kboard P_ ((struct frame *)); |
| 311 | extern void pop_frame_kboard P_ ((void)); | 312 | extern void pop_frame_kboard P_ ((void)); |
| 312 | extern void record_asynch_buffer_change P_ ((void)); | 313 | extern void record_asynch_buffer_change P_ ((void)); |
diff --git a/src/window.c b/src/window.c index 2ab9957153f..5edabc510be 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -581,6 +581,8 @@ display margins, fringes, header line, and/or mode line. */) | |||
| 581 | if it is on the window's modeline, return ON_MODE_LINE; | 581 | if it is on the window's modeline, return ON_MODE_LINE; |
| 582 | if it is on the border between the window and its right sibling, | 582 | if it is on the border between the window and its right sibling, |
| 583 | return ON_VERTICAL_BORDER. | 583 | return ON_VERTICAL_BORDER. |
| 584 | if it is on a scroll bar, | ||
| 585 | return ON_SCROLL_BAR. | ||
| 584 | if it is on the window's top line, return ON_HEADER_LINE; | 586 | if it is on the window's top line, return ON_HEADER_LINE; |
| 585 | if it is in left or right fringe of the window, | 587 | if it is in left or right fringe of the window, |
| 586 | return ON_LEFT_FRINGE or ON_RIGHT_FRINGE, and convert *X and *Y | 588 | return ON_LEFT_FRINGE or ON_RIGHT_FRINGE, and convert *X and *Y |
| @@ -675,7 +677,7 @@ coordinates_in_window (w, x, y) | |||
| 675 | 677 | ||
| 676 | /* Outside any interesting column? */ | 678 | /* Outside any interesting column? */ |
| 677 | if (*x < left_x || *x > right_x) | 679 | if (*x < left_x || *x > right_x) |
| 678 | return ON_VERTICAL_BORDER; | 680 | return ON_SCROLL_BAR; |
| 679 | 681 | ||
| 680 | lmargin_width = window_box_width (w, LEFT_MARGIN_AREA); | 682 | lmargin_width = window_box_width (w, LEFT_MARGIN_AREA); |
| 681 | rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA); | 683 | rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA); |
| @@ -785,8 +787,8 @@ If they are in the windows's left or right marginal areas, `left-margin'\n\ | |||
| 785 | ly = Fcdr (coordinates); | 787 | ly = Fcdr (coordinates); |
| 786 | CHECK_NUMBER_OR_FLOAT (lx); | 788 | CHECK_NUMBER_OR_FLOAT (lx); |
| 787 | CHECK_NUMBER_OR_FLOAT (ly); | 789 | CHECK_NUMBER_OR_FLOAT (ly); |
| 788 | x = FRAME_PIXEL_X_FROM_CANON_X (f, lx); | 790 | x = FRAME_PIXEL_X_FROM_CANON_X (f, lx) + FRAME_INTERNAL_BORDER_WIDTH (f); |
| 789 | y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly); | 791 | y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly) + FRAME_INTERNAL_BORDER_WIDTH (f); |
| 790 | 792 | ||
| 791 | switch (coordinates_in_window (w, &x, &y)) | 793 | switch (coordinates_in_window (w, &x, &y)) |
| 792 | { | 794 | { |
| @@ -820,6 +822,10 @@ If they are in the windows's left or right marginal areas, `left-margin'\n\ | |||
| 820 | case ON_RIGHT_MARGIN: | 822 | case ON_RIGHT_MARGIN: |
| 821 | return Qright_margin; | 823 | return Qright_margin; |
| 822 | 824 | ||
| 825 | case ON_SCROLL_BAR: | ||
| 826 | /* Historically we are supposed to return nil in this case. */ | ||
| 827 | return Qnil; | ||
| 828 | |||
| 823 | default: | 829 | default: |
| 824 | abort (); | 830 | abort (); |
| 825 | } | 831 | } |
| @@ -940,8 +946,10 @@ column 0. */) | |||
| 940 | CHECK_NUMBER_OR_FLOAT (y); | 946 | CHECK_NUMBER_OR_FLOAT (y); |
| 941 | 947 | ||
| 942 | return window_from_coordinates (f, | 948 | return window_from_coordinates (f, |
| 943 | FRAME_PIXEL_X_FROM_CANON_X (f, x), | 949 | (FRAME_PIXEL_X_FROM_CANON_X (f, x) |
| 944 | FRAME_PIXEL_Y_FROM_CANON_Y (f, y), | 950 | + FRAME_INTERNAL_BORDER_WIDTH (f)), |
| 951 | (FRAME_PIXEL_Y_FROM_CANON_Y (f, y) | ||
| 952 | + FRAME_INTERNAL_BORDER_WIDTH (f)), | ||
| 945 | 0, 0, 0, 0); | 953 | 0, 0, 0, 0); |
| 946 | } | 954 | } |
| 947 | 955 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 02f020ed57a..818e2c1a48a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5734,12 +5734,19 @@ move_it_in_display_line_to (it, to_charpos, to_x, op) | |||
| 5734 | #ifdef HAVE_WINDOW_SYSTEM | 5734 | #ifdef HAVE_WINDOW_SYSTEM |
| 5735 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 5735 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 5736 | { | 5736 | { |
| 5737 | if (!get_next_display_element (it) | 5737 | if (!get_next_display_element (it)) |
| 5738 | || BUFFER_POS_REACHED_P ()) | ||
| 5739 | { | 5738 | { |
| 5740 | result = MOVE_POS_MATCH_OR_ZV; | 5739 | result = MOVE_POS_MATCH_OR_ZV; |
| 5741 | break; | 5740 | break; |
| 5742 | } | 5741 | } |
| 5742 | if (BUFFER_POS_REACHED_P ()) | ||
| 5743 | { | ||
| 5744 | if (ITERATOR_AT_END_OF_LINE_P (it)) | ||
| 5745 | result = MOVE_POS_MATCH_OR_ZV; | ||
| 5746 | else | ||
| 5747 | result = MOVE_LINE_CONTINUED; | ||
| 5748 | break; | ||
| 5749 | } | ||
| 5743 | if (ITERATOR_AT_END_OF_LINE_P (it)) | 5750 | if (ITERATOR_AT_END_OF_LINE_P (it)) |
| 5744 | { | 5751 | { |
| 5745 | result = MOVE_NEWLINE_OR_CR; | 5752 | result = MOVE_NEWLINE_OR_CR; |
diff --git a/src/xfaces.c b/src/xfaces.c index ce40e053b20..f664249a290 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -1547,6 +1547,7 @@ DEFUN ("color-supported-p", Fcolor_supported_p, | |||
| 1547 | Scolor_supported_p, 1, 3, 0, | 1547 | Scolor_supported_p, 1, 3, 0, |
| 1548 | doc: /* Return non-nil if COLOR can be displayed on FRAME. | 1548 | doc: /* Return non-nil if COLOR can be displayed on FRAME. |
| 1549 | BACKGROUND-P non-nil means COLOR is used as a background. | 1549 | BACKGROUND-P non-nil means COLOR is used as a background. |
| 1550 | Otherwise, this function tells whether it can be used as a foreground. | ||
| 1550 | If FRAME is nil or omitted, use the selected frame. | 1551 | If FRAME is nil or omitted, use the selected frame. |
| 1551 | COLOR must be a valid color name. */) | 1552 | COLOR must be a valid color name. */) |
| 1552 | (color, frame, background_p) | 1553 | (color, frame, background_p) |