1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-06 07:31:13 -08:00
Commit graph

19293 commits

Author SHA1 Message Date
Lute Kamstra
b02c3eedd3 *** empty log message *** 2005-02-23 09:13:52 +00:00
Lute Kamstra
563f712898 (Foverlay_buffer): Doc fix. 2005-02-23 08:45:04 +00:00
Kim F. Storm
b686dd591d *** empty log message *** 2005-02-22 20:52:19 +00:00
Kim F. Storm
3809648a76 (Ftry_completion, Fall_completions): Allow both string
and symbol keys in alists and hash tables.
2005-02-22 20:39:23 +00:00
Kim F. Storm
e3198b7748 (fast_find_position): Fix search for start of overlay. 2005-02-22 11:04:18 +00:00
Kim F. Storm
c8500765dc *** empty log message *** 2005-02-22 11:04:07 +00:00
Kim F. Storm
aed328bfc3 (window_scroll_pixel_based): When scrolling backwards,
handle partial visible line at end of window even when we hit PT.
2005-02-21 22:34:34 +00:00
Kim F. Storm
81c85b536e *** empty log message *** 2005-02-21 22:33:36 +00:00
Stefan Monnier
9df747e1c9 *** empty log message *** 2005-02-21 13:44:11 +00:00
Stefan Monnier
478a161d79 Declare Fcurrent_active_maps, used in doc.c. 2005-02-21 13:39:53 +00:00
Kim F. Storm
d782c34829 (move_it_vertically_backward): Eliminate two xasserts.
I think those asserts are bogus if buffer contains invisible text
or images.
2005-02-21 09:01:04 +00:00
Kim F. Storm
0dd5a842d9 *** empty log message *** 2005-02-21 09:00:43 +00:00
Kim F. Storm
c43923ad7c (xg_create_frame_widgets): UNBLOCK_INPUT on error. 2005-02-21 08:51:52 +00:00
Kim F. Storm
19e05d1f33 *** empty log message *** 2005-02-21 08:51:09 +00:00
Kim F. Storm
e10ee30cc5 (pos_visible_p): Be sure to move to the specified
position.  Always get the full ascent / descent of the
corresponding row, to return reliable rtop and rbot values.
(back_to_previous_visible_line_start): Fix 2005-01-18 change.
Must look one character back, as back_to_previous_line_start
returns position after the newline.
(move_it_vertically_backward): Fix heuristic for when to move further
back in case line_height * 2/3 is larger than window height.
(cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
as it does not do anything anymore.  Add arg current_matrix_p to
use current matrix rather than desired matrix when set.
(try_cursor_movement): Don't scroll to make cursor row fully
visible if cursor didn't move.  This avoids unexpected recentering
in case of blinking cursor or accepting process output.
Use current matrix to check cursor row visibility.
(redisplay_window): Fix whether to recenter or move to top in case
cursor line is taller than window height.
(find_first_unchanged_at_end_row): Stop search if we reach a row
which not enabled (instead of abort).
2005-02-19 23:30:51 +00:00
Kim F. Storm
0fba9f25f2 *** empty log message *** 2005-02-19 23:30:12 +00:00
Kim F. Storm
91c212f159 (Finternal_set_lisp_face_attribute): Allow :color property
to be nil in a :box attribute value list; customize prints that
as lisp value when no box color is specified.
2005-02-18 22:55:53 +00:00
Kim F. Storm
c2ee48fb08 *** empty log message *** 2005-02-18 22:55:37 +00:00
Kim F. Storm
afca296c98 (pitx, pit): Pretty print display iterator.
(prowx, prow): Pretty print glyph row.
(pcursorx, pcursor): Pretty print a window cursor.
(pwinx, pwin): Pretty print struct window.
2005-02-18 22:21:36 +00:00
Kim F. Storm
b1c2adc30d *** empty log message *** 2005-02-18 22:20:38 +00:00
Stefan Monnier
f102186f2d *** empty log message *** 2005-02-18 18:17:16 +00:00
Stefan Monnier
f501ccb45f (BLOCK_BYTES): Harmless typo. 2005-02-18 18:16:09 +00:00
Andreas Schwab
9b516537a9 (handle_one_xevent): Use union of struct input_event and
struct selection_input_event to avoid aliasing issues.
(SET_SAVED_MENU_EVENT): Adapt reference to inev.
2005-02-17 12:52:35 +00:00
Andreas Schwab
31df61d662 (Fx_disown_selection_internal): Use union of struct
input_event and struct selection_input_event to avoid aliasing
issues.
2005-02-17 12:50:08 +00:00
Andreas Schwab
a3db4b2691 (hack_wm_protocols): Use correct type for last parameter
of XGetWindowProperty to avoid aliasing issues.
(Fx_window_property): Likewise.
2005-02-17 12:49:34 +00:00
Kim F. Storm
a6f82cc4ec (check_it, init_from_display_pos, handle_stop)
(setup_for_ellipsis, handle_single_display_spec)
(handle_composition_prop, next_overlay_string)
(get_overlay_strings, reseat_1, reseat_to_string)
(next_element_from_ellipsis, BUFFER_POS_REACHED_P)
(in_display_vector_p, display_line, get_next_display_element):
Change it->method from function pointer to enum.
(get_next_element): New array to map it->method to function.
(get_next_display_element): Use it.
(set_iterator_to_next): Use switch instead of if/else chain.
2005-02-16 23:45:03 +00:00
Kim F. Storm
6a88f968f9 (enum it_method): New enum.
(GET_FROM_*): Its members.
(struct it): Change member method from function pointer to enum.
2005-02-16 23:44:48 +00:00
Kim F. Storm
886b1418e0 *** empty log message *** 2005-02-16 23:44:28 +00:00
Jason Rumney
99ee2c6a36 Fix typo in date 2005-02-15 23:29:17 +00:00
Jason Rumney
52c7f9eea2 2004-11-08 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
* w32select.c: Summary: Thorough rework to implement Unicode
        clipboard operations and delayed rendering.

        Drop last_clipboard_text and related code, keep track of
        ownership via clipboard_owner instead.  Drop old #if0
        sections.

        (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
        (clipboard_owner, modifying_clipboard, cfg_coding_system)
        (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
        (current_coding_system, current_requires_encoding)
        (current_num_nls, current_clipboard_type, current_lcid): New
        static variables.

        (convert_to_handle_as_ascii, convert_to_handle_as_coded)
        (render, render_all, run_protected, lisp_error_handler)
        (owner_callback, create_owner, setup_config)
        (enum_locale_callback, cp_from_locale, coding_from_cp): New
        local functions.

        (term_w32select, globals_of_w32select): New global functions.

        (Fw32_set_clipboard_data): Ignore parameter FRAME, use
        clipboard_owner instead.  Use delayed rendering and provide
        all text formats.  Provide CF_LOCALE if necessary.

        (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
        CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
        available.  Force DOS line-ends for decoding.

        (Fx_selection_exists_p): Handle CF_UNICODETEXT.

        (syms_of_w32select): Init and register new variables.

        * w32.h: Add prototypes for globals_of_w32select and
        term_w32select.  Make the neighboring K&R declarations into
        prototypes, too.

        * emacs.c: Include w32.h to get function prototypes.
        (main): Call globals_of_w32select.

        * w32.c (term_ntproc): Call term_w32select.

        * mule-cmds.el (set-locale-environment): Remove call to
        set-selection-coding-system on Windows.

        * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
2005-02-15 23:19:26 +00:00
Kim F. Storm
d02d0705b3 (BUFFER_POS_REACHED_P): Return true if pos reached and
at end of display vector.
2005-02-15 23:04:45 +00:00
Kim F. Storm
86e6158692 *** empty log message *** 2005-02-15 23:04:21 +00:00
Richard M. Stallman
6407f07b6f (get_next_display_element): Fix escape-glyph criterion
for mode and header lines.
2005-02-15 06:50:48 +00:00
Richard M. Stallman
0a25a2013e (syms_of_lread) <user-init-file>: Doc fix. 2005-02-15 06:44:50 +00:00
Richard M. Stallman
633e4bd48f (describe_map_tree): Change decl. 2005-02-15 06:42:06 +00:00
Richard M. Stallman
0b5d283ff2 (command_loop_1): Always use safe_run_hooks to run Qdeferred_action_function. 2005-02-15 06:41:26 +00:00
Richard M. Stallman
b88e82fd1f (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
(describe_map, describe_vector): Likewise.  When it's 1,
don't omit shadowed bindings, instead mark them as shadowed.
2005-02-15 06:39:18 +00:00
Richard M. Stallman
e679a3c1d5 (Fsubstitute_command_keys): Compute list of shadowing maps
for describe_map_tree.  Pass 1 for MENTION_SHADOWS.
2005-02-15 06:36:17 +00:00
Richard M. Stallman
7a7df7ac8f (Fsetq_default): Allow no arg case. 2005-02-15 06:33:15 +00:00
Kenichi Handa
3bb917bff6 (encode_coding_string): Always return a unibyte string.
If NOCOPY is nonzero and there's no need of encoding, make STR
unibyte directly.
2005-02-14 01:04:50 +00:00
Kenichi Handa
1bd70c6e1d (lisp_data_to_selection_data): If OBJ is a non-ASCII
multibyte string, signal an error instead of aborting.
2005-02-14 00:59:42 +00:00
Dan Nicolaescu
e31d908ff2 If HAVE_FCNTL_H include fcntl.h. 2005-02-13 00:21:11 +00:00
Kim F. Storm
83e2a07aa0 (expose_window): Don't fix overlaps for mode lines. 2005-02-12 18:36:01 +00:00
Kim F. Storm
48e029b6a8 *** empty log message *** 2005-02-12 18:35:45 +00:00
Kim F. Storm
f1deb763a4 (try_window_id): Set first_unchanged_at_end_row to NULL
if it moves outside window or it doesn't display text.
2005-02-10 22:49:16 +00:00
Kim F. Storm
c10bb00a96 *** empty log message *** 2005-02-10 22:48:35 +00:00
Kim F. Storm
a7a39468d6 (Fprimitive_undo): Check that undo function does not switch buffer. 2005-02-09 21:49:12 +00:00
Kim F. Storm
9ca0f64a8a *** empty log message *** 2005-02-09 21:48:36 +00:00
Jan Djärv
b8d6f4af97 * xselect.c (selection_data_to_lisp_data): For the special case
type == XA_ATOM, data contains array of int, not array of Atom.
(x_property_data_to_lisp, selection_data_to_lisp_data): Comment
update: data must be array of int for format == 32.
2005-02-08 21:27:01 +00:00
Stefan Monnier
3419757dfd (Fprimitive_undo): Check veracity of delta,start,end. 2005-02-08 20:49:16 +00:00