1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00
Commit graph

14477 commits

Author SHA1 Message Date
Miles Bader
33c2d29f6c (Fsave_excursion, Fsave_current_buffer)
(Fsave_restriction): Add usage: string to doc string.
2001-10-21 15:21:33 +00:00
Miles Bader
512ca171d4 (Vhelp_manyarg_func_alist): Variable removed.
(Fdocumentation): Don't use it.
(syms_of_doc): Don't initialize it.
2001-10-21 15:20:42 +00:00
Miles Bader
a58d71cbdd (Ffind_operation_coding_system): Add usage: string to doc string. 2001-10-21 15:20:20 +00:00
Jason Rumney
9f5a911b46 (remember_mouse_glyph): New function.
(w32_mouse_position): Use it.
(note_mouse_movement): If the mouse moved off the glyph, remember its
new position.

Sync with xterm.c:
(notice_overwritten_cursor): Renamed from note_overwritten_text_cursor.
Rewritten to take glyph widths into account.
(x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
(fast_find_string_pos): New function.
(fast_find_position): Return the correct vpos.  Add parameter STOP.
In the final row, stop before glyphs having STOP as object.
Don't consider glyphs that are not from a buffer.
(fast_find_position) [0]: Add a presumably more correct version for after 21.1.
(expose_window_tree, expose_frame): Don't compute intersections here.
(expose_window): Do it here instead.
(expose_window_tree, expose_window, expose_line): Return 1 when
overwriting mouse-face.
(expose_window): If W is the window currently being updated, mark
the frame garbaged.
(expose_frame): If mouse-face was overwritten, redo it.
(x_use_underline_position_properties): New variable.
(syms_of_xterm): DEFVAR_BOOL it.
(x_draw_glyph_string): Add comment to use it in future.
(x_draw_glyph_string): Restore clipping after drawing box.
Fix a computation of the underline position.
(w32_get_glyph_string_clip_rect): Minor cleanup.
(x_fill_stretch_glyph_string): Remove an assertion.
(x_produce_glyphs): Don't convert multibyte characters
to unibyte characters in unibyte buffers.
(cursor_in_mouse_face_p): New function.
(x_draw_stretch_glyph_string): Use it to choose a different GC
when drawing a cursor within highlighted text.  Don't draw
background again if it has already been drawn.
(x_draw_glyph_string_box): Don't draw a full-width
box just because the glyph row's full_width_p flag is set.
(x_draw_glyphs): Fix computation of rightmost x for full-width rows.
(x_dump_glyph_string): Put in #if GLYPH_DEBUG.
(w32_draw_relief_rect): Extend left shadow to the bottom and left;
change bottom shadow accordingly. Some cleanup.
(x_update_window_end): Handle overwritten mouse face
also for tool bar windows.
(show_mouse_face): Set the glyph row's mouse_face_p flag also when
DRAW is DRAW_IMAGE_RAISED.
(clear_mouse_face): Return 1 if text with mouse face was
actually redrawn.  Make the function static.  Reset
dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
optimize away highlighting if we pass over that same overlay again.
(note_mouse_highlight): Call mouse_face_overlay_overlaps
to detect a case where we have to highlight a different region
despite not having left the currently highlighted region.
Set mouse_face_overlay in the x_display_info.  Avoid changing the
mouse pointer shape when show_mouse_face has already done it, or
there is no need.  Handle mouse-face and help-echo in strings.
(glyph_rect): New function.
(w32_mouse_position): Use it to raise the threshold for mouse
movement event generation.
(w32_initialize_display_info): Initialize the x_display_info's
mouse_face_overlay.
(w32_set_vertical_scroll_bar): Don't clear a zero height or width area.
(w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
a widget to zero height.
2001-10-21 15:20:03 +00:00
Miles Bader
a3b10252a6 *** empty log message *** 2001-10-21 14:44:58 +00:00
Miles Bader
e02cec3393 (Finsert_string, Fml_if, Fml_provide_prefix_argument)
(Fml_prefix_argument_loop): Add usage: string to doc string.
2001-10-21 14:20:44 +00:00
Miles Bader
4bf8e2a32e (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply, Fmake_hash_table):
Add usage: string to doc string.
2001-10-21 14:19:57 +00:00
Miles Bader
4bfbe194ac (Finsert, Finsert_and_inherit, Finsert_before_markers, Fmessage)
(Fmessage_box, Fmessage_or_box, Fpropertize, Fformat, Fencode_time)
(Finsert_and_inherit_before_markers): Add usage: string to doc string.
2001-10-21 14:18:44 +00:00
Pavel Janík
888ebd132e (Finsert_file_contents): Remove unused variable `gap_size'. 2001-10-21 13:28:46 +00:00
Pavel Janík
c6f73eec53 *** empty log message *** 2001-10-21 12:23:10 +00:00
Pavel Janík
8c1a1077c0 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-21 12:13:46 +00:00
Pavel Janík
dfe45eff10 (delete-exited-processes): Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-21 12:08:54 +00:00
Jason Rumney
3cf3436ebc (Fx_file_dialog): Pass a filter to GetOpenFileName.
Sync with xfns.c:
(x_laplace_read_row, x_laplace_write_row): Removed.
(postprocess_image): New function.
(lookup_image): Call it for all image types except PostScript.
(x_kill_gs_process): Call postprocess_image.
(tiff_error_handler, tiff_warning_handler): New functions.
(tiff_load): Install them as handlers.
(x_kill_gs_process): Recognize if someone has cleared the image
cache under us.
(valid_image_p): Protect better against invalid image
specifications.  Previous code could signal an error.
(Fx_hide_tip, Fshow_tip): Doc fix.
(Fv_max_tooltip_size): New variable.
(syns_of_xfns): DEFVAR_LISP it.
(Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
window buffer to *tip* right after creating the frame. Set frame's
window_width.  Use a maximum tooltip size specified by
Vx_max_tooltip_size, if that has valid contents.
(compute_tip_xy): Add parameters WIDTH and HEIGHT.
Make sure the tooltip is completely visible.
(x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
(Fx_create_frame): Adjust the frame's height for presence
of the tool bar before calling x_figure_window_size.
(x_set_tool_bar_lines): Clear the tool bar window's current matrix
when the window gets smaller.
(x_set_foreground_color): Set frame's cursor_pixel.
(x_set_foreground_color, x_set_background_color): Cleaned up.
(x_set_font): Handle case of x_new_fontset returning the same name
as before, although there was a change in fontsets.
2001-10-21 11:45:21 +00:00
Jason Rumney
292508513c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
Protect unibyte stings created by replacing their multibyte
equivalents in menu_items.
(w32_menu_show): Don't overwrite an item's name with its key
description in case the description is a multibyte string.
(single_submenu): Some cleanup.
2001-10-21 10:54:17 +00:00
Miles Bader
386ca3619c *** empty log message *** 2001-10-21 10:25:36 +00:00
Miles Bader
f44fba9ec2 (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior, Flogxor):
Add usage: string to doc string.
2001-10-21 10:00:33 +00:00
Miles Bader
5f5d497ee4 (Fstring): Add usage: string to doc string. 2001-10-21 09:59:56 +00:00
Miles Bader
d98b59b593 (Fcall_process_region, Fcall_process): Add usage: string to doc string. 2001-10-21 09:53:01 +00:00
Miles Bader
ae8e81224e (Fmake_byte_code, Fvector, Flist): Add usage: string to doc string. 2001-10-21 09:51:56 +00:00
Gerd Moellmann
71431a0ea1 *** empty log message *** 2001-10-21 09:04:46 +00:00
Pavel Janík
03be269465 (Finsert_abbrev_table_description): Reindent. 2001-10-21 08:52:17 +00:00
Pavel Janík
efc7e75ff0 Reindent DEFUNs and DEFVARs woth doc: keywords. 2001-10-21 08:49:43 +00:00
Pavel Janík
a6266d23cb Reindent DEFUNs with doc: keywords. 2001-10-21 08:48:26 +00:00
Pavel Janík
14ff1ee0a4 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-21 07:29:22 +00:00
Pavel Janík
fdb82f9337 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-20 20:56:10 +00:00
Pavel Janík
c0a53abba1 (invisible_text_between_p): Put prototype inside #if 0 because unused. 2001-10-20 20:52:22 +00:00
Pavel Janík
a5218868b3 (x_laplace_read_row, x_laplace_write_row): Prototypes removed. 2001-10-20 20:24:29 +00:00
Pavel Janík
39f624fabd Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-20 15:11:10 +00:00
Miles Bader
54800acbf3 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Variables removed.
(term_init): Don't set them.
Turn off any standout/underline modes that require magic cookies.
(ins_del_lines, highlight_if_desired, background_highlight)
(turn_on_highlight, turn_off_highlight, reset_terminal_modes):
Remove special processing for magic-cookie standout modes.
(turn_off_face, turn_on_face): Remove special processing for
underline magic-cookie glitch.
2001-10-20 10:33:48 +00:00
Miles Bader
abcce93ae3 (IT_reassert_line_highlight, IT_change_line_highlight): Functions removed.
(internal_terminal_init): Don't set reassert_line_highlight_hook
or change_line_highlight_hook.
(highlight): Variable removed.
(IT_set_face, IT_update_begin, IT_update_end, IT_set_terminal_modes):
Don't set or use it.
2001-10-20 05:55:56 +00:00
Miles Bader
8ede64a55f (reassert_line_highlight_hook, change_line_highlight_hook): Variables removed.
(reassert_line_highlight, change_line_highlight): Functions removed.
(standout_requested): Variable removed.
(update_end, highlight_if_desired): Don't use it.
(chars_wasted, copybuf): Variables removed.
(write_standout_marker): Function removed.
(cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
(clear_end_of_line_raw, write_glyphs, ins_del_lines):
Don't use `chars_wasted' or `copybuf'.
(calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
Set `costs_set' to true.
(cursor_to, clear_end_of_line): Test `costs_set' instead of `chars_wasted'.
(clear_end_of_line): Function removed.
(clear_end_of_line_raw): Renamed to `clear_end_of_line'.
(clear_to_end): Call `clear_end_of_line' instead of `clear_end_of_line_raw'.
2001-10-20 05:53:04 +00:00
Miles Bader
dd70d37f40 (reassert_line_highlight_hook, change_line_highlight_hook):
Declarations removed.
2001-10-20 05:51:38 +00:00
Miles Bader
e850a61568 (reassert_line_highlight, change_line_highlight): Functions removed.
(initialize_w32_display): Don't set reassert_line_highlight_hook
or change_line_highlight_hook.
(hl_mode): Function removed.
(reset_terminal_modes, set_terminal_modes, update_begin)
(update_end, w32_face_attributes, initialize_w32_display):
(clear_frame, ins_del_lines): Don't call it.
2001-10-20 05:50:33 +00:00
Miles Bader
e617a35b40 (x_fix_overlapping_area, x_write_glyphs, expose_area)
(expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
(w32_reassert_line_highlight, x_change_line_highlight): Functions removed.
2001-10-20 05:49:35 +00:00
Miles Bader
0ad3872928 (dump_glyph_row, display_mode_line): Don't use `inverse_p' field. 2001-10-20 05:47:06 +00:00
Miles Bader
153f5ed71f (x_fix_overlapping_area, x_write_glyphs, expose_area)
(expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
(XTreassert_line_highlight, x_change_line_highlight):
Functions removed.
(x_initialize): Don't set reassert_line_highlight_hook or
change_line_highlight_hook.
2001-10-20 05:44:30 +00:00
Miles Bader
4cecaab842 (update_frame_line): Don't call reassert_line_highlight.
(line_hash_code, row_equal_p, fake_current_matrices)
(build_frame_matrix_from_leaf_window, update_frame_line)
(update_frame_line, update_frame_line, update_frame_line):
Don't use `inverse_p' field.
2001-10-20 05:42:06 +00:00
Miles Bader
236f384702 (struct glyph_row): Remove `inverse_p' field.
(reassert_line_highlight, change_line_highlight): Declarations removed.
2001-10-20 05:40:56 +00:00
Richard M. Stallman
04b905441b Clarify previous change. 2001-10-19 23:37:53 +00:00
Richard M. Stallman
875470a566 (syms_of_eval): Doc fixes. 2001-10-19 23:33:55 +00:00
Richard M. Stallman
0b5f679f6d *** empty log message *** 2001-10-19 23:33:29 +00:00
Gerd Moellmann
5a4a5bd47d *** empty log message *** 2001-10-19 11:31:35 +00:00
Gerd Moellmann
3fa69ee7cd (redisplay_internal): Don't clear echo area if the
mini-window is selected.
2001-10-19 11:04:00 +00:00
Miles Bader
f8d397ee6b (text_property_stickiness): Really fix it this time. 2001-10-19 07:45:58 +00:00
Miles Bader
b57c2708f0 (text_property_stickiness): Non-rear-non-stickiness doesn't take
precedence if the affected property's value is nil.

(Fencode_time): Escape a BOL paren in the doc-string.
2001-10-19 07:08:29 +00:00
Miles Bader
79f1f96cb1 *** empty log message *** 2001-10-19 06:26:06 +00:00
Miles Bader
6d57c3189e (Fline_beginning_position, Fline_end_position): Clarify documentation. 2001-10-19 06:22:46 +00:00
Miles Bader
8abc9869bb (Fbeginning_of_line, Fend_of_line): Clarify interaction with fields and
suggest using `forward-line' to avoid them.
2001-10-19 06:19:07 +00:00
Stefan Monnier
ef879104ac (current_minor_maps): `override' only shadows its
correspondent in minor-mode-map-alist, not the whole tail.
2001-10-18 22:14:45 +00:00
Stefan Monnier
3090347973 *** empty log message *** 2001-10-18 22:13:21 +00:00