Commit graph

18083 commits

Author SHA1 Message Date
Stefan Monnier
d58f8753fb *** empty log message *** 2004-04-21 16:09:23 +00:00
Kim F. Storm
c7b08a9de6 (image_ascent): Remove prototype. 2004-04-20 22:22:45 +00:00
Kim F. Storm
57326d9998 (x_draw_relief_rect): Add top_p and bot_p args.
(x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
(x_draw_image_foreground, x_draw_image_relief)
(x_draw_image_foreground_1, x_draw_image_glyph_string):
Draw sliced images.
2004-04-20 22:19:23 +00:00
Kim F. Storm
e893970b97 (Qslice): New variable.
(syms_of_xdisp): Intern and staticpro it.
(pos_visible_p): Return pixel position in new x and y args.
(init_iterator): Reset it->slice info.
(handle_display_prop): Parse (slice ...) property.
(push_it, pop_it): Save/restore slice info.
(make_cursor_line_fully_visible): Fix 2004-04-14 change.  Do not
force repositioning of tall row if window is vscrolled, as that
would reset vscroll.
(append_space): Set it->constrain_row_ascent_descent_p to avoid
increasing row height if row is non-empty.
(fill_image_glyph_string): Copy slice info.
(take_vertical_position_into_account): Simplify.
(produce_image_glyph): Handle iterator slice info, setup glyph
slice info.  Do not force minimum line height.
(x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
do not increase height (ascent/descent) of non-empty row when
adding normal character glyph; instead reduce glyph ascent/descent
appropriately; if row is higher than current glyph, adjust glyph
descent/ascent to reposition glyph within the existing row.
Likewise, when char is newline, only set ascent/descent if row is
currently empty.
(note_mouse_highlight): Handle hotspots with sliced image.
2004-04-20 22:19:09 +00:00
Kim F. Storm
754dc3d823 (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN. 2004-04-20 22:18:43 +00:00
Kim F. Storm
0cc1039fe1 (Fpos_visible_in_window_p): Return pixel position if
PARTIALLY arg is non-nil.  Simplify.  Doc fix.
(Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
to return/set vscroll in pixels.
2004-04-20 22:18:33 +00:00
Kim F. Storm
cb0b194af0 (w32_draw_relief_rect): Add top_p and bot_p args.
(x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
(x_draw_image_foreground, x_draw_image_relief)
(w32_draw_image_foreground_1, x_draw_image_glyph_string):
Draw sliced images.
2004-04-20 22:17:56 +00:00
Kim F. Storm
ffe8b3f4e8 (x_draw_relief_rect): Add top_p and bot_p args.
(x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
(x_draw_image_foreground, x_draw_image_relief)
(x_draw_image_foreground_1, x_draw_image_glyph_string):
Draw sliced images.
2004-04-20 22:17:34 +00:00
Kim F. Storm
b1bd813495 (pos_visible_p): Fix prototype. 2004-04-20 22:17:08 +00:00
Kim F. Storm
ec026e7a3e (Fposn_at_x_y, Fposn_at_point): New defuns.
(syms_of_keyboard): Defsubr them.
2004-04-20 22:16:46 +00:00
Kim F. Storm
1938bc365d (image_ascent): Add slice arg; calculate ascent for
image slice (or full image).
2004-04-20 22:16:33 +00:00
Kim F. Storm
cedd7cd9f1 (buffer_posn_from_coords): Return full image width
and height even for image slices (posn is relative to full image).
(marginal_area_string): Adjust x0,y0 for image slice.
2004-04-20 22:16:19 +00:00
Kim F. Storm
0633d52c3e (struct glyph_slice): New struct.
(struct glyph): New member slice.
(GLYPH_SLICE_EQUAL_P): New macro.
(GLYPH_EQUAL_P): Use it.
(struct glyph_string): New member slice.
(struct it_slice): New struct.
(struct it): New member slice, add member to stack too.
New member constrain_row_ascent_descent_p.
(image_ascent): Add prototype.
2004-04-20 22:16:07 +00:00
Kim F. Storm
ae7ab2d30f Add image slices. 2004-04-20 22:15:41 +00:00
Stefan Monnier
07f60146b3 (Fkey_description): Fix the usual int/Lisp_Object mixup. 2004-04-20 19:44:26 +00:00
John Paul Wallington
4ce2719dbb (regularize_fontname): Renamed from regulalize_fontname. 2004-04-20 00:26:36 +00:00
John Paul Wallington
474d05350a (Fassoc, Feql): Fix indentation. 2004-04-20 00:17:46 +00:00
John Paul Wallington
95f8c3b95d (Feql): New function.
(syms_of_fns): defsubr it.
2004-04-19 15:17:53 +00:00
Jason Rumney
6383ca22fc (Fw32_set_clipboard_data): Get sequence number after closing the clipboard. 2004-04-18 18:34:03 +00:00
Jason Rumney
b7e85537d8 *** empty log message *** 2004-04-18 18:33:01 +00:00
Luc Teirlinck
5a72efd483 (Fbuffer_base_buffer): Doc fix. 2004-04-17 02:04:27 +00:00
Stefan Monnier
da879ae870 *** empty log message *** 2004-04-16 23:56:04 +00:00
Kim F. Storm
a1bfe073ea (Fkey_description): Change callers. 2004-04-16 21:19:16 +00:00
Kim F. Storm
b378e2c736 (Fkey_description): Fix prototype.
(describe_vector): Remove prototype.
2004-04-16 21:17:02 +00:00
Kim F. Storm
f8d8ba4051 (Fkey_description): Add optional PREFIX arg.
Combine prefix with KEYS to make up the full key sequence to describe.
Correlate meta_prefix_char and following (simple) key to describe
as meta modifier.  All callers changed.
(describe_map): Rename arg `keys' to `prefix'.  Remove local
`elt_prefix' var.  Use Fkey_description with prefix instead of
elt_prefix combined with Fsingle_key_description.
(describe_vector): Declare static.  Replace arg `elt_prefix' with
`prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
if !KEYMAP_P. Use Fkey_description with prefix instead of
Fsingle_key_description.
2004-04-16 21:16:33 +00:00
Kim F. Storm
60962ec4c2 *** empty log message *** 2004-04-16 21:16:06 +00:00
Kim F. Storm
409368b902 (update_overlay_arrows): Fix handling of up_to_date < 0. 2004-04-16 20:11:47 +00:00
Kim F. Storm
1f0268990d (PNG_BG_COLOR_SHIFT): Remove.
(png_load): Fix calculation of transparent background color on X
and W32 platforms.
2004-04-16 20:08:15 +00:00
Kim F. Storm
20dc858387 *** empty log message *** 2004-04-16 20:07:49 +00:00
Juanma Barranquero
75c5501b44 (try_scrolling): Make sure `scroll-conservatively' is not too large before
computing how much to scroll.
2004-04-16 19:33:45 +00:00
Stefan Monnier
d8e18df75c (Ffile_attributes): Don't pass extra nil arg to file-handler. 2004-04-15 21:02:33 +00:00
Luc Teirlinck
d01ca4a8d2 (Fverify_visited_file_modtime, Fvisited_file_modtime):
Add hyperlink to Elisp manual to the docstring.
2004-04-15 02:32:32 +00:00
Stefan Monnier
572943b30c *** empty log message *** 2004-04-14 20:45:43 +00:00
Stefan Monnier
5dc0561826 (fix_command): Use XDCR. 2004-04-14 20:45:02 +00:00
Nick Roberts
a899216fb7 (Fget_lru_window): Doc fix. 2004-04-14 20:03:42 +00:00
Nick Roberts
5e30a0fbb8 *** empty log message *** 2004-04-14 20:02:33 +00:00
Miles Bader
927138414c Changes from arch/CVS synchronization 2004-04-13 23:32:57 +00:00
Kim F. Storm
a27ddfaf2b *** empty log message *** 2004-04-13 22:24:34 +00:00
Stefan Monnier
d0abdf7e83 (scan_lists): Simplify backward string scan.
Fix off-by-one boundary check for string and comment fences.
2004-04-13 21:45:13 +00:00
Kim F. Storm
cb9d4a9f65 (get_glyph_string_clip_rect): Fix reduction of cursor
height to glyph height when cursor row is not fully visible.
(make_cursor_line_fully_visible): Add FORCE_P arg to return
failure in case row is higher than window.  Callers changed.
(try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
Try to scroll partially visible, higher-than-window cursor row.
(redisplay_window): Always try to scroll partially visible,
higher-than-window cursor row - both initially and again with
centering_position = 0.
Clear desired matrix before retrying with centering_position = 0.
2004-04-13 21:31:23 +00:00
Kim F. Storm
ed8226ea41 (update_window): Only set changed_p if
scrolling_window actually did scroll.
(scrolling_window): Only return 1 if we actually did scroll.
2004-04-13 21:30:56 +00:00
Kim F. Storm
d68de522ca (Fformat): Fix allocation size of precision array. 2004-04-13 21:30:16 +00:00
Stefan Monnier
5fc16e8e03 *** empty log message *** 2004-04-13 20:21:43 +00:00
Stefan Monnier
3e62da9572 New file. 2004-04-13 20:08:53 +00:00
Stefan Monnier
40899d7b75 *** empty log message *** 2004-04-13 16:06:38 +00:00
Luc Teirlinck
c9aac8e688 (Fmake_indirect_buffer): Throw an error if the intended base buffer
has been killed.  Correct the error message if the base buffer does
not exist.
2004-04-13 01:16:22 +00:00
Stefan Monnier
1e88a355b5 *** empty log message *** 2004-04-12 19:43:37 +00:00
Stefan Monnier
d845b2f364 Link changes for Cygwin unexec() support. 2004-04-12 19:43:10 +00:00
Stefan Monnier
451f03a04f Changes for Cygwin unexec() support, changes in Cygwin itself.
Add support for Xaw3d scrollbars.
2004-04-12 19:42:52 +00:00
Stefan Monnier
ef6d103984 (__default_morecore): Use bss_sbrk(), not __sbrk(), before Cygwin unexec. 2004-04-12 19:41:56 +00:00