1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-29 11:02:01 +00:00
Commit Graph

13762 Commits

Author SHA1 Message Date
Andrew Innes
f986cd144e ($(BLD)\dired.obj): Remove reference to VMS header
files.
($(BLD)\dispnew.obj):
($(BLD)\editfns.obj):
($(BLD)\fileio.obj):
($(BLD)\filelock.obj):
($(BLD)\keyboard.obj):
($(BLD)\w32proc.obj):
($(BLD)\process.obj):
($(BLD)\sysdep.obj): Ditto.
2001-02-22 23:22:52 +00:00
Gerd Moellmann
516957462d (forward_to_next_line_start): When taking the shortcut
at the start of the function, check that the \n in it->c is
from the iterator's current position.
2001-02-22 13:56:35 +00:00
Gerd Moellmann
a61b70582c (handle_single_display_prop): Add parameter
DISPLAY_REPLACED_BEFORE_P.  If it is non-zero ignore display
properties which replace the display of text with something else.
(handle_display_prop): Call handle_single_display_prop with
additional argument saying if we already replaced text display
with something else.  Use AREF.
(with_echo_area_buffer_unwind_data, display_menu_bar)
(decode_mode_spec_coding): Use AREF and ASIZE.
2001-02-22 13:26:12 +00:00
Gerd Moellmann
3473f362e6 *** empty log message *** 2001-02-22 12:01:57 +00:00
Gerd Moellmann
7c0be49625 Update copyright notice. 2001-02-22 11:56:33 +00:00
Gerd Moellmann
2bb58df3ab Add copyright notice. 2001-02-22 11:55:40 +00:00
Gerd Moellmann
c224f70be5 (direct_output_for_insert): Give up if we are showing
a message or just cleared the message because we might need to
resize the echo area window or display an empty echo area.
2001-02-22 11:46:14 +00:00
Richard M. Stallman
851e6368e2 Add copyright and permissions. 2001-02-22 01:49:37 +00:00
Gerd Moellmann
0528abe1c6 (redisplay_internal): Do the
mark_window_display_accurate after all windows have been
redisplayed because this call resets flags in buffers which are
needed for proper redisplay.
2001-02-21 16:20:24 +00:00
Gerd Moellmann
ffc9ff0cf5 *** empty log message *** 2001-02-21 14:10:41 +00:00
Gerd Moellmann
df6c90d8de Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
the old names.
2001-02-21 13:58:57 +00:00
Gerd Moellmann
526a058f12 Use display_hourglass_p, start_hourglass,
cancel_hourglass instead of the old names.
2001-02-21 13:57:40 +00:00
Gerd Moellmann
5fa360661b (struct x_output): Rename busy_cursor to
hourglass_cursor, busy_window to hourglass_window, busy_p to
hourglass_p.
2001-02-21 13:56:29 +00:00
Gerd Moellmann
231c4d5cf0 (struct x_output): Rename busy_window to
hourglass_window, busy_p to hourglass_p.
2001-02-21 13:56:00 +00:00
Gerd Moellmann
0af913d7b6 Rename everything containing *busy_cursor* and similar
to *hourglass*.
(syms_of_w32fns): Rename x-busy-pointer-shape to
x-hourglass-pointer-shape, display-busy-cursor to
display-hourglass, busy-cursor-delay to hourglass-delay.
2001-02-21 13:55:14 +00:00
Gerd Moellmann
2533c408d2 (XTread_socket): Test x_output's hourglass_p instead
of its busy_p flag.
2001-02-21 13:54:09 +00:00
Gerd Moellmann
6a2b797773 (start_hourglass, cancel_hourglass)
(display_hourglass_p): Renamed from *busy_cursor*.
2001-02-21 13:52:52 +00:00
Gerd Moellmann
d17e49a898 (read_char): When an event from unread-command-events
is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
2001-02-20 18:12:44 +00:00
Gerd Moellmann
fa97adf6e5 *** empty log message *** 2001-02-20 16:00:45 +00:00
Gerd Moellmann
99593a9de0 (Fwindow_end): Handle case that WINDOW's buffer is not
equal to the current buffer.
2001-02-20 16:00:18 +00:00
Gerd Moellmann
ab2c5f0a5d (setup_echo_area_for_printing): Set truncate_lines to
nil, otherwise we're left with truncate_lines t when a message
is printed with message-truncate-lines bound to t.
2001-02-20 14:54:50 +00:00
Gerd Moellmann
b3ae7a0a1e Add copyright notice. 2001-02-20 13:36:21 +00:00
Gerd Moellmann
e3efab9cbe Add copyright notice. 2001-02-20 11:00:55 +00:00
Gerd Moellmann
c8bc6f6559 (Fmove_to_window_line): Undo last change.
(displayed_window_lines): Call line_bottom_y to determine
the line's bottom position.
2001-02-19 16:44:07 +00:00
Gerd Moellmann
8b6ea97f85 (line_bottom_y): New function extracted from
pos_visible_p.
(pos_visible_p): Use it.
2001-02-19 16:43:09 +00:00
Gerd Moellmann
5be57d4965 (line_bottom_y): Add prototype. 2001-02-19 16:42:21 +00:00
Gerd Moellmann
980a2d69dd (recursive_edit_1): Bind `inhibit-redisplay' and
set redisplaying_p to 0 here instead of in Frecursive_edit.
(Frecursive_edit): Don't bind `inhibit-redisplay' and don't
set redisplaying_p.
2001-02-19 13:58:17 +00:00
Gerd Moellmann
184d2372c5 *** empty log message *** 2001-02-19 13:55:36 +00:00
Gerd Moellmann
e1477f43fd (Qinhibit_menubar_update, inhibit_menubar_update):
New variables.
(syms_of_xdisp): Initialize new variables.
(update_menu_bar): Do nothing if inhibit_menubar_update is set.
Specbind `inhibit-menubar-update' when updating the menu bar.
2001-02-19 13:48:28 +00:00
Gerd Moellmann
65048e9733 (update_menu_bar): Run activate-menu-bar-hook with
safe_run_hooks.
2001-02-19 13:30:31 +00:00
Gerd Moellmann
950eaee7c6 (set_frame_menubar): Run acivate-menu-bar-hook with
safe_run_hooks.
2001-02-19 13:29:21 +00:00
Gerd Moellmann
a57c4026f2 (malloc_initialize_hook): Handle case thet `environ'
is null.
2001-02-19 12:23:46 +00:00
Gerd Moellmann
aeac019e2f (__morecore) [!SYSTEM_MALLOC]: Move declaration
to the start of the file.
2001-02-19 12:20:08 +00:00
Gerd Moellmann
f3f053f31f *** empty log message *** 2001-02-16 15:55:20 +00:00
Gerd Moellmann
1c686c993f (set_window_buffer): Fix last change. 2001-02-16 15:50:33 +00:00
Gerd Moellmann
25237df59e *** empty log message *** 2001-02-16 15:16:50 +00:00
Gerd Moellmann
bc41dd5a0a (set_window_buffer): Set window's vscroll to 0. 2001-02-16 15:12:14 +00:00
Gerd Moellmann
dad7558892 (coordinates_in_window): Increase width of area
where the vertical line can be dragged.
2001-02-16 14:57:10 +00:00
Gerd Moellmann
c220b7538e *** empty log message *** 2001-02-16 13:21:43 +00:00
Gerd Moellmann
c56b1c1bc9 *** empty log message *** 2001-02-16 13:17:38 +00:00
Gerd Moellmann
eb79f5cc4d (x_set_glyph_string_background_width): Extend the
background face to the end of the drawing area in the text
area, only.
2001-02-16 12:44:32 +00:00
Gerd Moellmann
bf0ab8a291 (x_insert_glyphs): Call window_box_left to obtain
the left x-coordinate of the area to shift.
2001-02-16 12:36:34 +00:00
Gerd Moellmann
7728f17b18 (direct_output_for_insert): Recognize more cases where
glyphs can be written instead of being inserted.
2001-02-16 12:36:03 +00:00
Gerd Moellmann
e187cf7170 (handle_single_display_prop): Set iterator's position
to where the `display' property starts, like for images.
(dump_glyph): New function.
(dump_glyph_row): Use it.  Dump info about marginal areas.
2001-02-16 12:35:09 +00:00
Gerd Moellmann
76846b315d (directory_files_internal): Set result list to nil
before retrying.
2001-02-16 09:55:39 +00:00
Kenichi Handa
0fc71a7725 (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
invalid mulitbyte sequence, treat *SRC as a character of
eight-bit-graphic.
2001-02-15 13:10:38 +00:00
Eli Zaretskii
25078b542c (Fset_text_properties): Doc fix. 2001-02-15 12:36:44 +00:00
Gerd Moellmann
8399f8a0cd (update_text_area): Undo change of 2001-01-12. 2001-02-15 12:30:16 +00:00
Dave Love
9a2a6f7352 *** empty log message *** 2001-02-15 10:12:44 +00:00
Dave Love
5549605438 Comment fixes. 2001-02-14 23:51:03 +00:00
Dave Love
8ca3766acc Doc and message fixes. 2001-02-14 23:50:05 +00:00
Dave Love
41a9839149 Fix problems confusing authors.el. 2001-02-14 20:23:45 +00:00
Andrew Innes
bf853fee22 (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
Emacs frame above the screen size.
2001-02-14 13:01:09 +00:00
Gerd Moellmann
78c663d858 (reseat_1): Set iterator's end_charpos to ZV. 2001-02-14 11:39:05 +00:00
Gerd Moellmann
0a41199524 (del_range_1, del_range_byte, del_range_both): Handle
case that TO ends up beyond ZV after running before-change-functions.
2001-02-13 16:29:20 +00:00
Gerd Moellmann
5ddc1b75c6 (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
the selected window if it is showing the buffer in question.
2001-02-13 15:44:58 +00:00
Gerd Moellmann
2e6621ca8c (best_matching_font): New parameter width_ratio.
Multiply avgwidth by width_ratio.
(choose_face_font): Call best_matching_font with width_ratio
calculated from the column width of C.
2001-02-13 15:23:17 +00:00
Gerd Moellmann
7cc9f69fd9 (directory_files_internal): Initialize errno.
(toplevel): Include errno.h.
2001-02-13 15:14:22 +00:00
Andrew Innes
60222d69c6 (x_produce_image_glyph): Pay attention to the case that
face->box_line_width is negative.
(x_produce_stretch_glyph): Likewise.
(x_produce_glyphs): Likewise.
(x_estimate_mode_line_height): Likewise.
(x_draw_glyph_string_background): Likewise.
(x_draw_glyph_string_foreground): Likewise.
(x_draw_composite_glyph_string_foreground): Likewise.
(x_draw_glyph_string_box): Likewise.
(x_draw_image_foreground): Likewise.
(x_draw_image_relief): Likewise.
(x_draw_image_foreground_1): Likewise.
(x_draw_image_glyph_string): Likewise.
2001-02-12 14:50:08 +00:00
Kenichi Handa
9804b84670 *** empty log message *** 2001-02-09 12:35:22 +00:00
Kenichi Handa
08f9976fd4 (struct face): Add comment for how to handle a negative value in
box_line_width.
2001-02-09 12:35:06 +00:00
Kenichi Handa
89624b8b7c (Finternal_set_lisp_face_attribute): The value of :box
and :line-width can be negative.
(realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
negative.
2001-02-09 12:34:17 +00:00
Kenichi Handa
ea2ba0d40e (x_produce_image_glyph): Pay attention to the case that
face->box_line_width is negative.
(x_produce_stretch_glyph): Likewise.
(x_produce_glyphs): Likewise.
(x_estimate_mode_line_height): Likewise.
(x_draw_glyph_string_background): Likewise.
(x_draw_glyph_string_foreground): Likewise.
(x_draw_composite_glyph_string_foreground): Likewise.
(x_draw_glyph_string_box): Likewise.
(x_draw_image_foreground): Likewise.
(x_draw_image_relief): Likewise.
(x_draw_image_foreground_1): Likewise.
(x_draw_image_glyph_string): Likewise.
2001-02-09 12:33:58 +00:00
Jason Rumney
49be9f70fb (w32_encode_char): Treat eight bit graphic and control
characters the same as ASCII and latin-1.
(x_display_and_set_cursor): Check for the focus	frame's selected
window instead of selected_window.
(x_after_update_window_line): Don't clear if frame's internal
border width is zero.
(x_new_font): Don't change a tooltip's size.
(w32_initialize): Set char_ins_del_ok to 1.
2001-02-09 10:03:42 +00:00
Jason Rumney
aca583b261 (init-environment): Duplicate local string before putenv. 2001-02-09 09:57:04 +00:00
Jason Rumney
dc2202434b (Fx_show_tip): Fix calls to make_number.
(x_set_font): If font hasn't changed, avoid recomputing
	faces and other things.
	(x_set_tool_bar_lines): Do nothing if frame is
	minibuffer-only,
	(Fx_create_frame): Add the tool bar height to the frame
	height.
	(x_create_tip_frame): Prevent changing the tooltip's
	background color by specifying a color for the default font
	in .Xdefaults.
	(Qcancel_timer): New variable.
	(syms_of_w32fns): Initialize and staticpro it.
	(Fx_hide_tip, Fx_show_tip): Use it.
	(Fx_show_tip): Make sure to set tip_timer to nil when canceling
	the timer.
	(toplevel): Lisp code for generating parts of syms_of_w32fns removed.
(Fx_show_tip): Fix calls to make_number.
	(x_set_font): If font hasn't changed, avoid recomputing
	faces and other things.
	(x_set_tool_bar_lines): Do nothing if frame is
	minibuffer-only,
	(Fx_create_frame): Add the tool bar height to the frame
	height.
	(x_create_tip_frame): Prevent changing the tooltip's
	background color by specifying a color for the default font
	in .Xdefaults.
	(Qcancel_timer): New variable.
	(syms_of_w32fns): Initialize and staticpro it.
	(Fx_hide_tip, Fx_show_tip): Use it.
	(Fx_show_tip): Make sure to set tip_timer to nil when canceling
	the timer.
	(toplevel): Lisp code for generating parts of syms_of_w32fns removed.
2001-02-09 09:55:43 +00:00
ShengHuo ZHU
555e35d2da 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
* charset.c (Fstring): A typo.
2001-02-09 06:13:57 +00:00
Kenichi Handa
603a8d59d2 (Fchar_to_string): If CHARACTER is less than 256,
return a unibyte string.
2001-02-09 05:32:46 +00:00
Kenichi Handa
5729c92fb2 (Fstring): If all arguments are less than 256, return a unibyte
string.
2001-02-09 05:32:24 +00:00
Kenichi Handa
e47a1c3370 *** empty log message *** 2001-02-09 05:29:17 +00:00
Kenichi Handa
d280ccb69e (code_convert_region): After detecting a coding, if
nothing found, set coding->composing to COMPOSITION_NO.
(decode_coding_string): Likewise.
2001-02-08 23:29:44 +00:00
Kenichi Handa
19c92c9426 *** empty log message *** 2001-02-08 23:29:18 +00:00
Stefan Monnier
d8e675f595 (w32_set_scroll_bar_thumb): Use double' for range' to avoid overflow. 2001-02-08 15:07:23 +00:00
Kenichi Handa
740f080d09 (parse_str_to_multibyte): New function. 2001-02-07 04:24:49 +00:00
Kenichi Handa
347abaf721 (parse_str_to_multibyte): Extern it. 2001-02-07 04:24:28 +00:00
Kenichi Handa
a76ef35dce (print_string): If we are going to print a unibyte
string into a multibyte buffer, convert the string to multibyte by
str_to_multibyte.
2001-02-07 04:24:14 +00:00
Kenichi Handa
bd503487d8 *** empty log message *** 2001-02-07 04:23:59 +00:00
Andrew Innes
a8370d728c (select_palette): Do nothing if palette hasn't yet
been created.  It seems we can get sent window messages such as
WM_ERASEBKGND before we properly update a frame.
2001-02-06 22:20:12 +00:00
Gerd Moellmann
c363a1d6fd (update_frame_line): Rename parameter FRAME to F.
Avoid some unnecessary cursor positioning.
2001-02-06 13:58:18 +00:00
Gerd Moellmann
a08332c0e5 (split_font_name): Compute numeric value of
XLFD_AVGWIDTH.
(LFACE_AVGWIDTH): New macro.
(LFACEP): Use AREF.
(check_lface_attrs): Check LFACE_AVGWIDTH.
(lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
(set_lface_from_font_name): Set LFACE_AVGWIDTH.
(merge_face_vectors): Check LFACE_AVGWIDTH.
(Finternal_make_lisp_face): Use AREF.
(xm_set_menu_resources_from_menu_face)
(xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
(Finternal_lisp_face_empty_p): Use AREF.
(lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
(better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
Compare average widths..
(best_matching_font): Arrange for comparing average widths.
2001-02-05 20:01:01 +00:00
Gerd Moellmann
670019ba28 (enum lface_attribute_index): Add
LFACE_AVGWIDTH_INDEX (invisible from Lisp).
2001-02-05 19:58:32 +00:00
Dave Love
5cb3c8d44c *** empty log message *** 2001-02-05 17:47:32 +00:00
Dave Love
d665e35445 Revert last change following loadup.el change. 2001-02-05 17:41:40 +00:00
Andrew Innes
193fba8770 *** empty log message *** 2001-02-05 16:59:20 +00:00
Andrew Innes
0533c860f2 ($(EMACS)): Use $(THISDIR) instead of . in
invocation of temacs, to work with Windows 2000.
(bootstrap-emacs): Ditto.
2001-02-05 16:57:21 +00:00
Gerd Moellmann
7a58ab59f4 (x_display_and_set_cursor): Check for the focus
frame's selected window instead of selected_window.
2001-02-05 15:48:00 +00:00
Gerd Moellmann
e89aaabdcb (try_scrolling): If point is in the line below the
window, make sure to move the iterator at least a canonical
char height down.
2001-02-05 13:02:51 +00:00
Gerd Moellmann
e16f52ce8f *** empty log message *** 2001-02-05 12:24:27 +00:00
Gerd Moellmann
f53df7de16 (Fmove_to_window_line): Don't add 1 if window is
vscrolled.
2001-02-05 12:24:00 +00:00
Kenichi Handa
3116502899 (CCL_WRITE_CHAR): Check if CH is valid or not. If
invalid, execute CCL_INVALID_CMD.
(ccl_driver): If the CCL program is terminated because of
CCL_STAT_INVALID_CMD, copy the remaining source data to the
destination instead of throwing them away.
2001-02-05 01:20:55 +00:00
Kenichi Handa
789ce87553 *** empty log message *** 2001-02-05 01:20:37 +00:00
Stefan Monnier
85eb236c0a *** empty log message *** 2001-02-02 18:21:56 +00:00
Gerd Moellmann
79fb38c035 *** empty log message *** 2001-02-02 15:28:28 +00:00
Gerd Moellmann
1d09060524 (x_set_font): If font hasn't changed, avoid recomputing
faces and other things.
2001-02-02 15:27:55 +00:00
Gerd Moellmann
20b28f82e4 *** empty log message *** 2001-02-02 12:32:16 +00:00
Gerd Moellmann
7eee47cc5e (get_next_display_element): Fix case of empty
display table entry.
2001-02-02 11:51:06 +00:00
Eli Zaretskii
eb24d0bfe7 (Fconstrain_to_field): Doc fix. 2001-02-02 07:54:48 +00:00
Eli Zaretskii
6a3f48c7ea (Fclear_face_cache): Rename the `thorougly' argument
into `thoroughly', to make it consistent with the doc string.
2001-02-02 07:50:18 +00:00
Eli Zaretskii
5a72551e18 (Fenlarge_window, Fshrink_window): Doc fix. 2001-02-02 07:42:05 +00:00
Gerd Moellmann
0353b28fe4 (search_buffer): Call set_search_regs with a byte
position, not a character position.
2001-02-01 19:21:52 +00:00
Gerd Moellmann
01acdb05c3 *** empty log message *** 2001-02-01 15:37:03 +00:00
Gerd Moellmann
e870b7bad6 (x_set_tool_bar_lines): Do nothing If frame is
minibuffer-only,
2001-02-01 15:01:11 +00:00
Eli Zaretskii
e86b51338d (Fmodify_frame_parameters): Doc fix. 2001-02-01 14:09:49 +00:00
Gerd Moellmann
84e01749c6 Change the include blocker to the same form as in other header
files.
2001-01-31 20:34:39 +00:00
Gerd Moellmann
843c999901 (EMACS_FRAME_H_INCLUDED): Use an include blocker
identifier which is not reserved by Standard C.
2001-01-31 20:32:40 +00:00
Gerd Moellmann
7442878f82 (enum window_part): New enumeration.
(Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
Qright_bitmap_area.
(coordinates_in_window): Return an enumerator from enum
window_part.  Fix handling of right scroll bar.
(Fcoordinates_in_window_p): Doc fix.  Return `left-fringe' and
`right-fringe' instead of `left-bitmap-area' and
`right-bitmap-area'.  Use enumerators from enum window_part
instead of hard-coded integers.
(check_window_containing, window_from_coordinates): Use
enumerators from enum window_part instead of hard-coded integers.
(syms_of_window): Replace Qleft_bitmap_area and
Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2001-01-31 20:28:13 +00:00
Gerd Moellmann
1f9228342c Update copyright. 2001-01-31 20:25:41 +00:00
Gerd Moellmann
7d81cf83bd (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define. 2001-01-31 20:24:36 +00:00
Dave Love
d61c7afe56 *** empty log message *** 2001-01-31 20:03:46 +00:00
Dave Love
be9e83310e (hook-run): Define to run xreload. 2001-01-31 18:33:30 +00:00
Eli Zaretskii
7c132cba8b (Fformat_time_string): Doc fix. 2001-01-31 17:05:55 +00:00
Stefan Monnier
c359dd9e5d *** empty log message *** 2001-01-31 15:19:39 +00:00
Stefan Monnier
60dc655805 (Fwhere_is_internal): Use the first valid binding
if no ascii binding is found (when firstonly is t).
2001-01-31 15:19:30 +00:00
Gerd Moellmann
b4f30ec503 *** empty log message *** 2001-01-31 15:11:07 +00:00
Gerd Moellmann
e0f331ab4c (interactive_p): New function.
(Finteractive_p): Use it.
2001-01-31 14:48:31 +00:00
Gerd Moellmann
1ee4d0e69d (interactive_p): Add prototype. 2001-01-31 14:48:07 +00:00
Gerd Moellmann
f5686fbd5a (Fscroll_right, Fscroll_left): Use interactive_p
instead of Finteractive_p.
2001-01-31 14:47:44 +00:00
Gerd Moellmann
ce070307f0 (Fmake_list): Add a QUIT in the loop; unroll the loop. 2001-01-31 12:22:58 +00:00
Dave Love
f57b6e648c *** empty log message *** 2001-01-31 01:20:04 +00:00
Dave Love
a63643cd04 (Fset_text_properties): Fix newline in doc string. 2001-01-31 01:00:17 +00:00
Gerd Moellmann
eef93f9914 *** empty log message *** 2001-01-30 15:18:45 +00:00
Gerd Moellmann
c3d761736c (build_desired_tool_bar_string, syms_of_xdisp): Use
DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
2001-01-30 15:05:45 +00:00
Gerd Moellmann
6a1bcd0112 (Fx_create_frame): Add the tool bar height to the frame
height.
2001-01-30 15:05:04 +00:00
Gerd Moellmann
cc4cb7559c (Vtool_bar_button_margin:): Declare extern.
(DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
(DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2001-01-30 15:04:35 +00:00
Dave Love
d9c1f6f955 (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
AFTER_POTENTIAL_GC.
2001-01-30 10:07:18 +00:00
Gerd Moellmann
e8f044a008 *** empty log message *** 2001-01-29 21:27:53 +00:00
Gerd Moellmann
96111f4813 (Fbyte_code) <Bcurrent_column>: Add
BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
2001-01-29 20:44:42 +00:00
Gerd Moellmann
fdbbf26657 Undo last change. 2001-01-29 20:04:42 +00:00
Gerd Moellmann
341e4f2465 (mouse_key_p): New function.
(where_is_internal, Fwhere_is_internal): Use it.
2001-01-29 19:52:22 +00:00
Eli Zaretskii
8e1db7b326 *** empty log message *** 2001-01-29 17:07:38 +00:00
Eli Zaretskii
2b5f21c23c (Fset_text_properties): Doc fix. 2001-01-29 16:49:57 +00:00
Gerd Moellmann
4eefd9d210 (forward_to_next_line_start): Remove xassert. 2001-01-29 16:31:00 +00:00
Eli Zaretskii
fccb828847 (x_draw_row_bitmaps): Delay obtaining HDC to avoid returning without
releasing it.
2001-01-29 12:36:52 +00:00
Kenichi Handa
e7c7212283 (w32_font_match): Allocate three more bytes to regex
for '^', '$', and '\0'.
2001-01-28 23:48:02 +00:00
Kenichi Handa
76581eab9b *** empty log message *** 2001-01-28 23:47:30 +00:00
Andrew Choi
5604ec34e4 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
regex for '^', '$', and '\0'.
2001-01-28 15:41:57 +00:00
Andrew Choi
83a96b4d54 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
only if current_sblock has been initialized.

* frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
terminal frame even if it is the only visible frame.

* src/macfns.c (QCconversion): Replaces QCalgorithm.

* src/macfns.c (image_ascent, lookup_image): Adapt to change of
image margins.

* src/macterm.c (x_produce_image_glyph, x_draw_image_foreground)
(x_draw_image_relief, x_draw_image_foreground_1)
(x_draw_image_glyph_string): Adapt to change of image margins.

* src/macterm.c (mac_to_x_fontname): Change charset name of
Simplify Chinese fonts from gb2312 to gb2312.1980 and Korean fonts
from ksc5601 to ksc5601.1989.
2001-01-28 11:23:07 +00:00
Kenichi Handa
8d04974a78 (font_family_registry): Even if FONTNAME conform to
XLFD, if it specifies other fields than family and registry,
return FONTANME.  New argument FORCE if nonzero cancel that
feature.
(fontset_font_pattern): Call font_family_registry with FORCE 1 for
a signle byte character.  Don't set FAMILY part to nil here.  It
is handled by the caller choose_face_font.
(Fnew_fontset): Call font_family_registry with FORCE 0.
(Fset_fontset_font): Likewise.
2001-01-28 01:12:01 +00:00
Kenichi Handa
c09a644047 *** empty log message *** 2001-01-28 01:11:38 +00:00
Gerd Moellmann
4dcd74e647 (display_line): Don't treat a newline as fitting
on the line.
2001-01-27 12:40:49 +00:00
Gerd Moellmann
0130fe1af3 (size_window): Set the window's orig_top to nil when
changing heights, so that a future shrink_mini_window won't
restore a bogus height.
2001-01-26 20:02:19 +00:00
Gerd Moellmann
550f0e6a23 (do_switch_frame): If selected frame has a mini-window,
resize that to exact size.
2001-01-26 14:41:54 +00:00
Gerd Moellmann
b7b20fbd16 (adjust_glyph_matrix): Always clear desired matrices. 2001-01-26 14:19:34 +00:00
Gerd Moellmann
8af1308e28 (echo_area_display): Comment fix. 2001-01-26 11:23:52 +00:00
Gerd Moellmann
a47b7816d6 *** empty log message *** 2001-01-26 10:26:19 +00:00
Gerd Moellmann
202c1b5b8b (display_line): Simplify check for glyphs fitting
entirely in the line.
2001-01-26 10:25:48 +00:00
Gerd Moellmann
d2906bf8fb *** empty log message *** 2001-01-26 09:35:23 +00:00
Gerd Moellmann
5df79d3d88 (xic_style): New variable.
(create_frame_xic): Move static variable to global scope for
the case that `static' get's defined away.
2001-01-26 09:34:55 +00:00
Kenichi Handa
8844fa83d3 (decode_coding): Set a flag for inhibiting
inconsistent eol.
(code_convert_region): Always set saved_coding_symbol.
(decode_coding_string): Likewise.  Update coding->symbol when we
encounter a inconsistent eol by the same way as
code_convert_region.
2001-01-26 06:10:21 +00:00
Kenichi Handa
73df2b1e65 *** empty log message *** 2001-01-26 06:07:48 +00:00
Gerd Moellmann
c5e6e06b5b (x_after_update_window_line): Don't clear if frame's
internal border width is zero.
(x_clear_area): New function.
(x_after_update_window_line, x_clear_end_of_line)
(x_scroll_bar_create, x_scroll_bar_set_handle)
(XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
instead of XClearArea.
2001-01-25 20:27:30 +00:00
Gerd Moellmann
4629a73ab8 (x_clear_area): Add prototype. 2001-01-25 20:26:04 +00:00
Gerd Moellmann
161d30fdcb * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
XClearArea.
2001-01-25 20:25:33 +00:00
Gerd Moellmann
3be7e41764 Update a comment. 2001-01-25 16:01:56 +00:00
Gerd Moellmann
6613cfc490 *** empty log message *** 2001-01-25 15:58:51 +00:00
Gerd Moellmann
b17a50b7b4 (Fx_file_dialog): Remove a workaround for Lesstif
which doesn't seem necessary anymore with Lesstif 0.92.
2001-01-25 15:39:26 +00:00
Dave Love
34ac336760 *** empty log message *** 2001-01-25 13:39:11 +00:00
Dave Love
e94e008ba3 (BASE_PURESIZE): Up to 720000. 2001-01-25 13:36:51 +00:00
Dave Love
650cc6cce2 *** empty log message *** 2001-01-25 13:00:15 +00:00
Eli Zaretskii
c3d0ee5124 Fix a typo in a comment. 2001-01-25 13:00:13 +00:00
Dave Love
0482803f6b (Fwhere_is_internal): Declare gcpro3, gcpro4. 2001-01-25 12:58:22 +00:00
Gerd Moellmann
e1e441f9c8 *** empty log message *** 2001-01-25 12:40:49 +00:00
Gerd Moellmann
c3e6cafd61 (echo_area_display): Don't call redisplay_internal
when Emacs is shutting down.  We can't run hooks etc. that
would be necessary to do a redisplay.
2001-01-25 12:40:22 +00:00
Gerd Moellmann
5e37dc220a (read_integer): Use type EMACS_INT instead of int. 2001-01-25 11:57:14 +00:00
Eli Zaretskii
0fb94c7feb (ccl_driver): Fix last change. 2001-01-25 09:46:23 +00:00
Eli Zaretskii
bb26451898 Fix a typo in the last entry for ccl.c. 2001-01-25 09:21:17 +00:00
Stefan Monnier
609b757aa4 (mutually_exclusive_p): Add missing break' at the end of charset' processing. 2001-01-25 01:44:54 +00:00
Kenichi Handa
e3778624f9 *** empty log message *** 2001-01-24 23:43:56 +00:00
Kenichi Handa
bd64290dac (ccl_coding_driver): Setup ccl->suppress_error.
(Fset_terminal_coding_system_internal): Set the member
suppress_error to 1.
(Fset_safe_terminal_coding_system_internal): Likewise.
2001-01-24 23:30:34 +00:00
Kenichi Handa
6041c9ce6b (struct coding_system): New member suppress_error. 2001-01-24 23:30:16 +00:00
Kenichi Handa
ae08ba36c9 (ccl_driver): If ccl->suppress_error is nonzeor, don't
insert error message to the output.
(setup_ccl_program): Initialize ccl->suppress_error to 0.
2001-01-24 23:29:59 +00:00
Kenichi Handa
64068fbfc1 (sturct ccl_program): New member suppress_error. 2001-01-24 23:29:42 +00:00
Stefan Monnier
245ed2b17a *** empty log message *** 2001-01-24 23:26:48 +00:00
Stefan Monnier
411e420305 (mutually_exclusive_p): Don't blindly handle `charset_not'
as if it was a `charset'.
2001-01-24 23:11:40 +00:00
Gerd Moellmann
f9aaedb634 (Fwhere_is_internal): Don't nreverse the cached
value in where_is_cache; the next lookup in the cache returns
something bogus if we do.
2001-01-24 19:42:17 +00:00
Eli Zaretskii
c3902c3ecb *** empty log message *** 2001-01-24 17:33:32 +00:00
Eli Zaretskii
99a5de87f1 (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
if HAVE_WINDOW_SYSTEM isn't defined.
2001-01-24 17:31:52 +00:00
Gerd Moellmann
e7e415845b *** empty log message *** 2001-01-24 16:22:46 +00:00
Gerd Moellmann
1e54671434 (sweep_weak_table): Fix code taking items out of
the hash collision chain.  Some cleanup.
2001-01-24 16:10:06 +00:00
Gerd Moellmann
6801a5720e (x_create_tip_frame): Prevent changing the tooltip's
background color by specifying a color for the default font
in .Xdefaults.
2001-01-24 14:21:48 +00:00
Gerd Moellmann
3497f73e06 (x_new_font): Don't change a tooltip's size. 2001-01-24 14:21:11 +00:00
Kenichi Handa
0ee1088b3e (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
(CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
(ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
statement.
2001-01-24 06:53:23 +00:00
Kenichi Handa
96531b20fa *** empty log message *** 2001-01-24 06:52:54 +00:00
Kenichi Handa
9977c49154 (CCL_READ_CHAR): Change the argument name from r to REG
as a workaround for SunOS 4's cc.
2001-01-24 00:12:24 +00:00
Kenichi Handa
3d48e6875a *** empty log message *** 2001-01-24 00:12:10 +00:00
Gerd Moellmann
a30629d2a8 *** empty log message *** 2001-01-23 12:57:22 +00:00
Gerd Moellmann
499b1844b5 (x_set_window_size_1): New function extracted from
x_set_window_size.
(x_set_window_size): Use it.
(x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
doesn't have a widget, like tooltips.
2001-01-23 12:55:15 +00:00
Eli Zaretskii
5a43decfe0 *** empty log message *** 2001-01-23 11:33:29 +00:00
Eli Zaretskii
2afb2f41d0 (syms_of_window) <scroll-preserve-screen-position>: Doc fix. 2001-01-23 11:32:56 +00:00
Kenichi Handa
b0e988670b *** empty log message *** 2001-01-23 01:36:00 +00:00
Kenichi Handa
1e70fc65bc (Fset_char_table_default): Fix to make sub char-table correctly. 2001-01-23 01:34:55 +00:00
Dave Love
d8e4f486d9 comment fixes 2001-01-22 23:20:06 +00:00
Gerd Moellmann
cb2ddc5366 (build_desired_tool_bar_string): Make sure we have
a desired tool bar string, even if there are not tool bar
items.
2001-01-22 19:13:08 +00:00
Gerd Moellmann
57c28064ec (Ftool_bar_lines_needed): New function.
(syms_of_xdisp): Defsubr it.
2001-01-22 15:17:50 +00:00
Gerd Moellmann
50606b4c01 (Fformat): Don't extend text properties from arguments
to padding chars in the result.
2001-01-22 13:10:49 +00:00
Eli Zaretskii
2f169c3858 (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS. 2001-01-20 18:20:59 +00:00
Andrew Innes
0f32f0232b (w32_ring_bell): Only support visible bell on w32
frames.
(w32_initialize): Don't set term hooks that aren't actually needed
in windowed mode.
2001-01-20 14:04:28 +00:00
Andrew Innes
1a89b7c6f7 (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
redefinition.
2001-01-20 13:57:24 +00:00
Andrew Innes
ff8d4bf4a6 (Qw32_console): Remove variable.
(Fframep): Remove references to it.
(syms_of_frame): Ditto.
(Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2001-01-20 13:56:49 +00:00
Andrew Innes
57fa06b798 (output_method): Remove output_w32_console method.
(FRAME_W32_CONSOLE_P): Remove macro.
2001-01-20 13:56:17 +00:00
Andrew Innes
f2adda5eac (Fredraw_frame): Remove reference to
FRAME_W32_CONSOLE_P.
2001-01-20 13:55:52 +00:00
Andrew Innes
e4093f387b (handle_single_display_prop): Remove references to
FRAME_W32_CONSOLE_P.
2001-01-20 13:55:02 +00:00
Andrew Innes
e689ec067a (realize_default_face):
(realize_face):
(realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2001-01-20 13:53:57 +00:00
Kenichi Handa
e1e40b38d1 (Fformat): Use lisp_string_width instead of strwidth. 2001-01-19 23:38:06 +00:00
Kenichi Handa
7173eadaf1 *** empty log message *** 2001-01-19 23:37:52 +00:00
Andrew Innes
755b45ce47 *** empty log message *** 2001-01-19 14:56:24 +00:00
Andrew Innes
cc14250a79 (init_environment): Add a version-independent site-lisp
directory to EMACSLOADPATH, after the version dependent one.
2001-01-19 14:56:06 +00:00
Gerd Moellmann
8501998aff *** empty log message *** 2001-01-19 10:13:09 +00:00
Gerd Moellmann
ba976213c3 (Fbuffer_substring): Doc fix. 2001-01-19 10:12:44 +00:00
Gerd Moellmann
0a94981197 *** empty log message *** 2001-01-19 09:40:14 +00:00
Gerd Moellmann
1e313f2809 (message_dolog, message2, message2_nolog): Rename
parameter LEN to NBYTES.
2001-01-19 09:39:47 +00:00
Kenichi Handa
d26b89b811 (store_frame_title): Pay attention to width of non-ASCII
characters by calling c_string_width.
(x_consider_frame_title): Get byte length of frame tile string
correctly.
(display_mode_element): Pay attention to width of non-ASCII
characters by calling strwidth.
2001-01-19 05:23:16 +00:00
Kenichi Handa
2d75794b0e (doprnt1): Get byte length of Lisp string correctly. 2001-01-19 05:22:51 +00:00
Kenichi Handa
417ef8f6f8 (c_string_width, lisp_string_width): Extern them. 2001-01-19 05:22:38 +00:00
Kenichi Handa
beeedaada9 (strwidth): Use c_string_width.
(c_string_width): New function.
(lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
Caller changed.
2001-01-19 05:22:21 +00:00
Kenichi Handa
200ecca2d2 *** empty log message *** 2001-01-19 05:22:01 +00:00
Kenichi Handa
9ee6df62dd (check_composition): Check validity of composition. 2001-01-19 03:50:40 +00:00
Kenichi Handa
e6ebcbbed8 *** empty log message *** 2001-01-19 03:50:24 +00:00
Gerd Moellmann
8962e30335 *** empty log message *** 2001-01-18 14:49:07 +00:00
Gerd Moellmann
ae782866b6 (Qcancel_timer): New variable.
(syms_of_xfns): Initialize and staticpro it.
(Fx_hide_tip, Fx_show_tip): Use it.
(Fx_show_tip): Make sure to set tip_timer to nil when canceling
the timer.
(toplevel): Lisp code for generating parts of syms_of_xfns removed.
2001-01-18 14:48:38 +00:00
Gerd Moellmann
91523be925 (WINDOW_LIVE_P): New macro. 2001-01-18 14:10:06 +00:00
Gerd Moellmann
9e571f494c * window.c (Fwindow_live_p): Use WINDOW_LIVE_P. 2001-01-18 14:09:17 +00:00
Gerd Moellmann
b0b7ed0e41 (window_size_fixed): New variable.
(syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
the doc string.
2001-01-18 13:46:46 +00:00
Gerd Moellmann
06bccf8e72 (specbind): If binding a per-buffer variable which
doesn't have a buffer-local value in the current buffer, change
the global value by changing the value of the symbol bound in all
buffers not having their own value, to make it consistent with
what happens with other buffer-local variables.
2001-01-18 13:21:51 +00:00
Gerd Moellmann
9017309fb5 (x_initialize): Set char_ins_del_ok to 1. 2001-01-18 12:30:25 +00:00
Gerd Moellmann
8692ca9275 (forward_to_next_line_start): Stop at end of buffer
when searching for a newline.
2001-01-18 12:29:55 +00:00
Kenichi Handa
9299cb1520 (display_string): Fix previous change. 2001-01-18 12:14:48 +00:00
Kenichi Handa
bb3a3b5034 *** empty log message *** 2001-01-18 12:14:25 +00:00
Jason Rumney
c2cc16fa2b (x_produce_stretch_glyph): Only use Qspace when GLYPH_DEBUG is defined.
(x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
true for images with `:ascent 100'.
(x_set_mouse_face_gc): If the last used mouse face has gone in the
meantime, use face MOUSE_FACE_ID.
If first glyph isn't a character glyph, use the ASCII NUL
character to determine the face.
(expose_area): Do not treat left margin specially.
(note_mode_line_highlight): If no local_map, check global keymap.
(note_mouse_highlight): Initialize overlay.
(clear_mouse_face): Don't return if tip_frame is non-nil.
(show_scroll_bars): Remove unused function.
(w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
(x_draw_bar_cursor): Remove extra test for out of bounds cursor.
Clip to row.
(x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
(x_free_frame_resources): Unload relief colors.
2001-01-18 09:19:39 +00:00
Gerd Moellmann
3aec872292 (forward_to_next_line_start): Avoid calling
get_next_display_element when the newline is already found.  This
may change the iterator's position, when its current position is
equal to the iterator's stop_charpos.
2001-01-17 20:11:33 +00:00
Gerd Moellmann
f3ffc2c358 (direct_output_for_insert): If char_ins_del_ok is
zero, use this method only at the end of a line.
2001-01-17 16:54:20 +00:00
Sam Steingold
d51ffa0ebe removed x-list-font.c per change 2001-01-17 Gerd Moellmann <gerd@gnu.org> 2001-01-17 16:18:45 +00:00
Gerd Moellmann
a86110a8e3 (x_face_list_fonts): Don't BLOCK_INPUT around the
call to x_list_fonts.  Call x_list_fonts with SIZE -1 only
if SCALABLE_FONTS_P is set.
2001-01-17 15:56:25 +00:00
Gerd Moellmann
d26d6fd916 (x_face_list_fonts): Call x_list_fonts with SIZE -1,
so that scalable fonts are included.

(x_face_list_fonts): Use x_list_fonts instead of
XListFonts to take advantage of font caching.
2001-01-17 15:51:32 +00:00
Gerd Moellmann
9c11f79e2d (x_list_fonts): Allow scalable fonts if SIZE is < 0,
In the cache, use a key containing the information if scalable
fonts are included.
(x_load_font): Adapt to change of keys in the font cache.

(x_list_fonts): Ensure caching font information when
called for a null frame, which is the case frequently when Emacs
starts.
2001-01-17 15:46:49 +00:00
Gerd Moellmann
f864120fde *** empty log message *** 2001-01-17 14:11:43 +00:00
Gerd Moellmann
ecd01a0e00 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
of :algorithm.
2001-01-17 13:14:45 +00:00
Gerd Moellmann
d2dc816719 (QCconversion): Replaces QCalgorithm. 2001-01-17 13:14:01 +00:00
Gerd Moellmann
a93f45669c (QCconversion): Replaces QCalgorithm. Update copyright. 2001-01-17 13:13:34 +00:00
Gerd Moellmann
e37d1417a6 *** empty log message *** 2001-01-17 13:00:16 +00:00
Gerd Moellmann
6e33e6f097 (redisplay_tool_bar): Change tool bar's height when
not everything could be displayed.
2001-01-17 12:59:47 +00:00
Gerd Moellmann
51446987ae *** empty log message *** 2001-01-17 12:07:03 +00:00
Andrew Innes
9ad4f3e556 (directory_files_internal): Convert result from readdir
to a unibyte string initially, to avoid possible misinterpretation
of some bytes as the internal form of Emacs characters.
2001-01-17 11:11:53 +00:00
Kenichi Handa
3bd00f3b93 (concat): Be sure to avoid putting the same `composition'
property on the adjacent regions.
2001-01-17 05:55:31 +00:00
Kenichi Handa
2eda09b59d *** empty log message *** 2001-01-17 05:55:12 +00:00
Gerd Moellmann
f251459d42 *** empty log message *** 2001-01-16 15:00:06 +00:00
Gerd Moellmann
c67fa41033 (Fset_window_hscroll): Don't set window's min_hscroll
here.
(Fscroll_right, Fscroll_left): Set it here instead, if called
interactively.
2001-01-16 14:59:37 +00:00
Gerd Moellmann
d57b83b374 (Fset_buffer_modified_p): Set buffer's
prevent_redisplay_optimizations_p flag.
2001-01-16 14:21:59 +00:00
Gerd Moellmann
826f3788b6 *** empty log message *** 2001-01-16 12:56:19 +00:00
Gerd Moellmann
3007ebfbc7 Call redisplay_preserve_echo_area with additional arg. 2001-01-16 12:42:22 +00:00