1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-19 22:50:29 -08:00
Commit graph

12529 commits

Author SHA1 Message Date
Gerd Moellmann
7396a36c10 (access_keymap): If IDX has a meta prefix, and there's
no map for meta_prefix_char, don't try to use it as a keymap.
Instead, if T_OK is non-zero, look up a default binding, if any,
otherwise, if T_OK is zero, return nil.
2000-10-18 14:20:53 +00:00
Gerd Moellmann
a42943e93e (allocate_string) [GC_CHECK_STRING_BYTES]: Call
check_string_bytes only if not noninteractive, increase count to 50.
2000-10-18 11:59:20 +00:00
Gerd Moellmann
70772ed1ac (struct x_display_info): Add color_cells and ncolor_cells.
(x_query_color, x_query_colors): Add prototype.
2000-10-18 11:58:27 +00:00
Gerd Moellmann
f04e1297ec (x_color_cells, x_query_colors, x_query_color): New
functions.
(x_alloc_nearest_color): Use it to reduce calls to XQueryColors
which can be slow.
(x_copy_color, x_alloc_lighter_color): Likewise.
2000-10-18 11:58:07 +00:00
Gerd Moellmann
a31fedb766 (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
(x_to_xcolors, png_load): Use x_query_color.
2000-10-18 11:57:35 +00:00
Miles Bader
00de298745 (adjust_markers_for_delete): Handle before-insertion markers correctly. 2000-10-18 06:20:27 +00:00
Gerd Moellmann
1f0b3fd207 (pure_bytes_used): Renamed from pureptr.
(ALIGN): New macro.
(pure_alloc): New function.
(make_pure_string, pure_cons, make_pure_float, make_pure_vector):
Use it.
(Fpurecopy): Use PURE_POINTER_P.
2000-10-17 19:39:17 +00:00
Gerd Moellmann
68c5d1db4a (try_cursor_movement): Use cursor_row_p also when
PT has moved backward.
2000-10-17 19:32:44 +00:00
Gerd Moellmann
9a03888161 (cursor_row_p): Take continued lines into account. 2000-10-17 16:08:57 +00:00
Gerd Moellmann
361b097f3a (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
string's size_byte.
(check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
(check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
(allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
string allocated.
2000-10-17 15:38:30 +00:00
Gerd Moellmann
54918e2b47 (forward_to_next_line_start): Switch iterator's handling
of selective display off while searching for the next line start.
2000-10-17 14:08:06 +00:00
Jeff Bailey
6a45ac9cbd Remove warning that noone noticed anyway 2000-10-17 06:55:04 +00:00
Kenichi Handa
7dd2a2b276 (term.o): Depend on dispextern.h. 2000-10-17 02:53:36 +00:00
Kenichi Handa
03ed080689 *** empty log message *** 2000-10-17 02:53:19 +00:00
Stefan Monnier
7e05cdaf48 (keymap_memberp): Ensure that nil is not a member. 2000-10-16 21:57:56 +00:00
Gerd Moellmann
483de32b26 (set_iterator_to_next): Reset box start and flags of the
iterator at the beginning, so that they can be set later on, for
instance in reseat_at_next_visible_line_start without being
overwritten.
2000-10-16 21:05:03 +00:00
Gerd Moellmann
a6801fd168 *** empty log message *** 2000-10-16 20:04:39 +00:00
Gerd Moellmann
be0b1fac0a (pbm_format): Add :foreground and :background keywords.
(PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
(xbm_load): Recoghnize foreground and background color
specifications.
2000-10-16 19:57:04 +00:00
Eli Zaretskii
dbf1fcc120 *** empty log message *** 2000-10-16 19:21:17 +00:00
Eli Zaretskii
546701f50f (IT_set_face): Compare highlighted face with the default
face, and invert colors if these faces' colors are identical.
(Fmsdos_remember_default_colors): Don't swap foreground and
background colors in initial_colors[].
(IT_set_frame_parameters): Don't swap frame's foreground and
background pixels.  If ALIST includes "(reverse . t)", swap
foreground-color and background-color properties in frame's
param_alist.  If the original frame's param_alist doesn't specify
the colors, store unspecified-fg and unspecified-bg, reversed if
required.
2000-10-16 19:16:20 +00:00
Eli Zaretskii
e1d0bbc974 (Fframe_parameters): If a tty's frame's param_alist says
the colors are unspecified and reversed, reverse fore- and back-
ground in the returned value.
(Fframe_parameter): Ditto.
2000-10-16 19:15:09 +00:00
Eli Zaretskii
c3c9847319 (unspecified_fg, unspecified_bg): Remove extern declaration. 2000-10-16 19:14:14 +00:00
Eli Zaretskii
f0ba2d22e1 (unspecified_fg, unspecified_bg): Declare. 2000-10-16 19:13:19 +00:00
Gerd Moellmann
3a6b59d900 *** empty log message *** 2000-10-16 16:01:13 +00:00
Gerd Moellmann
1ec185cb4a (find_last_unchanged_at_beg_row): Renamed from
get_last_unchanged_at_beg_row.
(find_first_unchanged_at_end_row): Renamed from
get_first_unchanged_at_end_row.
(find_first_unchanged_at_end_row): Convert assertions to
unconditional tests which abort.  When looking for a row in
unchanged text, don't go further back than first_text_row.
2000-10-16 15:39:59 +00:00
Miles Bader
ac62982394 *** empty log message *** 2000-10-16 14:55:17 +00:00
Miles Bader
836765981d Revert last change. 2000-10-16 14:45:44 +00:00
Gerd Moellmann
b41fe2c315 *** empty log message *** 2000-10-16 14:22:37 +00:00
Gerd Moellmann
b8a63ccb80 (try_scrolling) <cursor in scroll margin at the bottom>:
Don't add in the last line's height when deciding if the new
position is below the scroll margin.
2000-10-16 13:56:12 +00:00
Miles Bader
9d1af64f7a (xpm_lookup_color):
Make h unsigned to avoid wackiness when the high bit gets set.
2000-10-16 11:48:31 +00:00
Miles Bader
f657bbf68b (Fconstrain_to_field): Check carefully for field boundaries if either
OLD_POS or NEW_POS has a non-nil field property, even if they're the same.
2000-10-16 07:28:24 +00:00
Kenichi Handa
58e4fce895 (x_draw_box_rect): Fix the calculation of width and height for
XFillRectangle.
2000-10-16 04:20:36 +00:00
Kenichi Handa
c412cb7bc6 *** empty log message *** 2000-10-16 04:13:28 +00:00
Stefan Monnier
5586f3ebef *** empty log message *** 2000-10-15 22:27:48 +00:00
Stefan Monnier
d671382e93 (describe_syntax): Add code for comment and string fences. 2000-10-15 22:12:01 +00:00
Stefan Monnier
c65adb44b0 (Fstring_to_syntax): New function extracted from Fmodify_syntax_entry.
(Fmodify_syntax_entry): Use it and document the ! and | fences.
(skip_chars, Fforward_comment): Remove unused variables.
(syms_of_syntax): Add defsubr for string-to-syntax.
2000-10-15 21:42:41 +00:00
Stefan Monnier
a0ad02f7fb (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
Mostly, just a test of the CVS repository.
2000-10-15 16:44:45 +00:00
Eli Zaretskii
ef6d59c99e Fix wording in a comment. 2000-10-15 05:55:40 +00:00
Stefan Monnier
1ed6d8ef37 (Fkeymap_parent): Undefined autoload -> 1. 2000-10-15 03:34:18 +00:00
Stefan Monnier
db785038bb * keymap.c (access_keymap): Add AUTOLOAD parameter.
Do the meta->esc mapping.  Call get_keyelt before returning.
Start scanning from the second element (the first is always `keymap')
to make it easier to detect when we reach a parent map.
Handle the case of inheriting from a symbol whose function is a map.
(Fkeymap_parent): Also handle the `inherit from symbol' case.
(fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
(get_keyelt, Flookup_key): Update call to access_keymap.
Remove the meta->esc mappings.
(define_as_prefix): Delete old disabled code.
(menu_item_p): New function.
(where_is_internal_1): Skip over the few remaining menu items.
* lisp.h (access_keymap): Update prototype.
* keyboard.c (read_char, menu_bar_items, tool_bar_items):
Update call to access_keymap.
(follow_key, read_key_sequence): Update calls to access_keymap.
Remove the meta->esc mappings.
2000-10-15 03:31:32 +00:00
Gerd Moellmann
a2e2a7f656 (direct_output_for_insert): Call set_iterator_to_next
with additional argument.
2000-10-13 18:27:25 +00:00
Gerd Moellmann
cafafe0b81 (cursor_row_p): New function.
(try_cursor_movement, display_line): Use it.

(append_space): Also save/restore iterator's current
character and its length.

(init_from_display_pos): Add an assertion.
(handle_stop): Don't set iterator's add_overlay_start.
(handle_invisible_prop): Likewise.
(load_overlay_strings): If text under an overlay is invisible,
take both before- and after-strings into account when the iterator
is positioned either at the start or at the end of the overlay.
(forward_to_next_line_start): Rewritten.
(reseat_at_next_visible_line_start): Rewritten.
(set_iterator_to_next): Add parameter RESEAT_P.
2000-10-13 13:11:49 +00:00
Gerd Moellmann
ff2a2e6b9e (struct it): Remove member add_overlay_start.
(set_iterator_to_next): Change prototype.
2000-10-13 13:08:45 +00:00
Kenichi Handa
e2c06b17a9 (decode_coding_string): Set coding->src_multibyte and
coding->dst_multibyte before using CODING_REQUIRE_DECODING.
(encode_coding_string): Set coding->src_multibyte and
coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
2000-10-13 08:21:20 +00:00
Kenichi Handa
e4a3f4e178 *** empty log message *** 2000-10-13 08:19:47 +00:00
Kenichi Handa
62b3ef1d94 (code_convert_region): Be sure to initialize coding->category_idx. 2000-10-13 08:01:24 +00:00
Kenichi Handa
c744452b31 *** empty log message *** 2000-10-13 08:01:04 +00:00
Stefan Monnier
321fd26fa9 (Fx_create_frame): Don't bother calling
face-set-after-frame-default since the caller does it for us anyway.
2000-10-12 20:33:26 +00:00
Eli Zaretskii
768324397d (coordinates_in_window): Fix detection of vertical line
on character terminals.
2000-10-12 15:40:53 +00:00
Gerd Moellmann
2483cf581b (save_excursion_save): Additionally record the
selected window.
(save_excursion_restore): If buffer was visible in a window, and a
different window was selected, and the old selected window is
still live, restore point in that window.
2000-10-12 13:06:00 +00:00