1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-16 13:11:14 -08:00
Commit graph

19187 commits

Author SHA1 Message Date
Kim F. Storm
dbd8ee1913 (x_clip_to_row): Ensure y >= 0.
(x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2005-01-27 22:34:05 +00:00
Kim F. Storm
2049265a5b (get_phys_cursor_geometry): New function to calculate
phys cursor position and size for hollow cursor.  Position is
aligned with get_glyph_string_clip_rect and ensures that a hollow
cursor is shown, even when the actual glyph is not visible.
2005-01-27 22:33:52 +00:00
Kim F. Storm
4d91ce74c7 (x_draw_hollow_cursor): Use get_phys_cursor_geometry. 2005-01-27 22:33:39 +00:00
Kim F. Storm
4f5d664038 (get_phys_cursor_geometry): Add prototype. 2005-01-27 22:33:01 +00:00
Kim F. Storm
caf533af49 *** empty log message *** 2005-01-27 22:32:41 +00:00
Stefan Monnier
043f7f7333 (x_error_quitter): Add a prototype. Make it static again. 2005-01-27 17:00:38 +00:00
Kim F. Storm
999f5a607e (get_glyph_string_clip_rect): Always show a cursor
glyph, even when row is only partially visible and actual cursor
position is not visible.
2005-01-27 00:16:28 +00:00
Kim F. Storm
889f36418f *** empty log message *** 2005-01-27 00:16:00 +00:00
Richard M. Stallman
29099c2f2b *** empty log message *** 2005-01-25 01:59:39 +00:00
Richard M. Stallman
b70001a192 (x_error_quitter): No longer static, and moved after x_error_handler. 2005-01-25 01:26:57 +00:00
Kim F. Storm
6adb6f0130 *** empty log message *** 2005-01-24 20:44:39 +00:00
Steven Tamm
4d904fa0b2 * dispextern.h (struct glyph_string): New members clip_head and
clip_tail.
* xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
	region to the area between clip_head and clip_tail.
	(draw_glyphs): Record the area that need to be actually redrawn to
	the new variables clip_head and clip_tail when there are
	overhangs.  Set values of these variables to the corresponding
	members in struct glyph_string.  Refine x coordinates for
	notice_overwritten_cursor using clip_head and clip_tail.
* macgui.h (STORE_XCHARSETSTRUCT): New macro.
* macterm.c (mac_compute_glyph_string_overhangs): Implement with
	QDTextBounds.
	(x_draw_glyph_string): Don't fill the background of the successor
	of a glyph with a right overhang if the successor will draw a
	cursor.
	(XLoadQueryFont): Obtain font metrics using QDTextBounds.
	(x_redisplay_interface): Add entry for
	compute_glyph_string_overhangs.
2005-01-24 18:00:43 +00:00
Steven Tamm
8c2da0fa6c * dispextern.h (struct glyph_string): New members clip_head and
clip_tail.
* xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
	region to the area between clip_head and clip_tail.
	(draw_glyphs): Record the area that need to be actually redrawn to
	the new variables clip_head and clip_tail when there are
	overhangs.  Set values of these variables to the corresponding
	members in struct glyph_string.  Refine x coordinates for
* macgui.h (STORE_XCHARSETSTRUCT): New macro.
* macterm.c (mac_compute_glyph_string_overhangs): Implement with
	QDTextBounds.
	(x_draw_glyph_string): Don't fill the background of the successor
	of a glyph with a right overhang if the successor will draw a
	cursor.
	(XLoadQueryFont): Obtain font metrics using QDTextBounds.
	(x_redisplay_interface): Add entry for
	compute_glyph_string_overhangs.
2005-01-24 17:59:36 +00:00
Kim F. Storm
e856c2162b (window_scroll_pixel_based): Fix scrolling in the wrong
direction if window height was smaller than next-screen-context-lines.
Now always scroll at least one line in the requested direction.
Ensure that we actually do scroll backwards when requested to do so.
2005-01-24 13:22:29 +00:00
Kim F. Storm
6f67f013b6 (redisplay_window): Only try to make cursor line fully
visible once (to avoid redisplay loop).
2005-01-24 13:22:07 +00:00
Kim F. Storm
f2417699a5 *** empty log message *** 2005-01-24 13:17:37 +00:00
Stefan Monnier
e01732fa58 (Fcurrent_column): Doc fix. 2005-01-23 22:18:26 +00:00
Kim F. Storm
8f958b40cc *** empty log message *** 2005-01-23 13:31:53 +00:00
Kim F. Storm
5b1ba1e330 * window.c (Fpos_visible_in_window_p): Simplify return value for
partially visible rows.
(window_scroll_pixel_based): Adapt to that change.
2005-01-23 13:13:03 +00:00
Kim F. Storm
6b3d88f70e *** empty log message *** 2005-01-23 13:11:00 +00:00
Kim F. Storm
5c20cae25b *** empty log message *** 2005-01-23 00:53:10 +00:00
Kim F. Storm
78465f3a8c (pos_visible_p): Fix calculation of y.
Clear last_height before calling line_bottom_y to get real height.
2005-01-23 00:50:52 +00:00
Kim F. Storm
bed83ee4dd (window_scroll_pixel_based): Force moving to next line
if scrolling doesn't move start point, e.g. if looking at tall image.
2005-01-23 00:50:24 +00:00
Kim F. Storm
a2962d06de (pos_visible_p): Return 0 if non-interactive. 2005-01-22 23:55:00 +00:00
Kim F. Storm
a354b72c97 *** empty log message *** 2005-01-22 23:54:43 +00:00
Steven Tamm
d9e7c62260 * s/darwin.h: Removed PTY_ITERATION from here.
(DARWIN): Defined.
* process.c (init_process): Default process-connection-type to
	nil on darwin 6 or less, t if it is 7 or higher.  This way the
	broken pty behavior is still allowed on darwin 6 for interactive
	processes for people that know what they are doing.
2005-01-22 15:54:04 +00:00
Kim F. Storm
d00e399ac9 *** empty log message *** 2005-01-22 01:43:55 +00:00
Kim F. Storm
f9e697040d (pos_visible_p): Fix prototype. 2005-01-22 01:41:59 +00:00
Kim F. Storm
e56263e526 (auto_window_vscroll_p): New boolean.
(syms_of_window): DEFVAR_BOOL it.
(Fpos_visible_in_window_p): Extend return value to include RTOP
and RBOT values if FULLY is nil.
(window_scroll_pixel_based): Adjust vscroll for partially visible
rows if auto_window_vscroll_p is set.
(Fset_window_vscroll): Do nothing if vscroll is not modified.
2005-01-22 01:41:47 +00:00
Kim F. Storm
f15f5495d9 (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
to return number of partially invisible pixels at top and bottom
of the dislay row at POS.
2005-01-22 01:41:36 +00:00
Richard M. Stallman
f95a20e78d *** empty log message *** 2005-01-21 20:53:02 +00:00
Richard M. Stallman
7f08b80e33 (Fcopy_file): Doc fix. 2005-01-21 20:51:52 +00:00
Jan Djärv
eee141ce69 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
(xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
start of function for older compilers.
2005-01-21 05:59:21 +00:00
Richard M. Stallman
6f771c32b0 *** empty log message *** 2005-01-21 00:33:07 +00:00
Richard M. Stallman
674a954a1d (Fmessage): If arg is "", return "" (as before). 2005-01-21 00:32:36 +00:00
Richard M. Stallman
7f3e88596f (access_keymap): Protect from bad value of meta_prefix_char. 2005-01-21 00:31:40 +00:00
Richard M. Stallman
0e73312bed (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable. 2005-01-21 00:30:56 +00:00
Steven Tamm
a15252fdfb * editfns.c (Voperating_system_release): Added.
(init_editfns): Assign new variable operating-system-release
	based on call to uname if available.
	(get_operating_system_release): Added function to
	allow c-level access to operating system release.
* config.h: Regenerated.
* s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or
	less.
	(MIN_PTY_KERNEL_VERSION): Defined minimum kernel version for
	using ptys as '7'.
* term/mac-win.el (process-connection-type): Removed.
	Controlled now by s/darwin.h:PTY_ITERATION.
2005-01-20 18:13:48 +00:00
Kim F. Storm
b059de99a9 (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean. 2005-01-20 15:37:41 +00:00
Kim F. Storm
62fc9b0f7d *** empty log message *** 2005-01-20 15:37:13 +00:00
Kim F. Storm
82ead4b142 (x_draw_glyph_string_box): Fix last_x for full width rows. 2005-01-20 15:23:22 +00:00
Kim F. Storm
c310aca4a7 *** empty log message *** 2005-01-20 15:21:45 +00:00
Kim F. Storm
8fd7aa51de (Fvertical_motion): Temporarily disable selective display. 2005-01-19 23:17:00 +00:00
Kim F. Storm
3d6a4b2d44 *** empty log message *** 2005-01-19 23:16:39 +00:00
Steven Tamm
3bb9abc888 * editfns.c (Voperating_system_release): Added.
(init_editfns): Assign new variable operating-system-release
	based on call to uname if available.
* config.h: Regenerated.
2005-01-19 19:09:42 +00:00
Kim F. Storm
9c25f170b6 (note_mode_line_or_margin_highlight): Fix :pointer
image property.
2005-01-19 10:05:28 +00:00
Kim F. Storm
77db5cf358 *** empty log message *** 2005-01-19 10:05:04 +00:00
Kim F. Storm
d278cde036 (sweep_weak_table): Advance prev pointer when we keep a pair. 2005-01-19 00:08:30 +00:00
Kim F. Storm
27c8be4585 *** empty log message *** 2005-01-19 00:08:10 +00:00
Stefan Monnier
adeeafe5d2 (syms_of_emacs): Improve docstring of `system-type'. 2005-01-18 18:34:10 +00:00