1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
Commit graph

19268 commits

Author SHA1 Message Date
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
Jan Djärv
bae45dc3a9 * xfns.c (x_set_tool_bar_lines): Check that width and height is greater than
zero before clearing area.
2005-02-07 21:31:56 +00:00
Jan Djärv
caacfeb891 (x_set_tool_bar_lines): Check that width and height is greater than
zero before clearing area.
2005-02-07 21:31:28 +00:00
Jan Djärv
fc34503b56 * xfns.c (Fx_change_window_property): Use long array when format is 32.
(Fx_window_property): If format is 32 and long is bigger than 32 bits,
	convert long array returned from XGetWindowProperty to an int array.

	* xselect.c (x_reply_selection_request): Pass long array to
	XChangeProperty so that 64 bit longs are handeled correctly.
	(x_get_window_property): If format is 32 and long is bigger than 32
	bits convert data from XGetWindowProperty from long array to int array.
	(lisp_data_to_selection_data): When the input is a vector and the
	format is 32, allocate a long array even if long is bigger than 32 bits.
	(x_fill_property_data): Use char, short and long as the man page
	for XChangeProperty specifies.  This way the data returned is OK for
	both 32 and 64 bit machines.
	(x_handle_dnd_message): Calculate size correctly even for 64 bit
	machines.
	(Fx_send_client_event): Undo change from 2005-02-05,
	x_fill_property_data now handles that case.
2005-02-07 20:00:31 +00:00
Jan Djärv
fede04ef9f * xfns.c (Fx_change_window_property): Use long array when format is 32.
(Fx_window_property): If format is 32 and long is bigger than 32 bits,
convert long array returned from XGetWindowProperty to an int array.
2005-02-07 20:00:07 +00:00
Jan Djärv
e22cf39c66 * xselect.c (x_reply_selection_request): Pass long array to
XChangeProperty so that 64 bit longs are handeled correctly.
(x_get_window_property): If format is 32 and long is bigger than 32
bits convert data from XGetWindowProperty from long array to int array.
(lisp_data_to_selection_data): When the input is a vector and the
format is 32, allocate a long array even if long is bigger than 32 bits.
(x_fill_property_data): Use char, short and long as the man page
for XChangeProperty specifies.  This way the data returned is OK for
both 32 and 64 bit machines.
(x_handle_dnd_message): Calculate size correctly even for 64 bit
machines.
(Fx_send_client_event): Undo change from 2005-02-05,
x_fill_property_data now handles that case.
2005-02-07 19:59:36 +00:00
Jan Djärv
3a4415260f * xfns.c (Fx_backspace_delete_keys_p): Added comment about the
reason for the approach in the code.
2005-02-07 12:50:38 +00:00
Kim F. Storm
82ec225b40 *** empty log message *** 2005-02-07 11:44:19 +00:00
Kim F. Storm
4ac0318706 (Fprimitive_undo): Record max one dummmy apply element. 2005-02-07 11:44:00 +00:00
Richard M. Stallman
ba2c991c3b *** empty log message *** 2005-02-06 11:24:11 +00:00
Richard M. Stallman
d5e2c90c44 (Frun_hook_with_args)
(Frun_hook_with_args_until_success)
(Frun_hook_with_args_until_failure): Doc fixes.
2005-02-06 11:23:38 +00:00
Andreas Schwab
e120ea40ca (sys_subshell): Properly terminate execlp argument list. 2005-02-05 19:40:23 +00:00
Jan Djärv
31f16913d7 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
the longs in a XClientMessageEvent correctly when long is 64 bits.
2005-02-05 16:41:38 +00:00
Eli Zaretskii
6082a82045 *** empty log message *** 2005-02-05 12:19:15 +00:00
Eli Zaretskii
6a46b96b70 (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
instead of HAVE_X_WINDOWS, for non-X windowed sessions.
2005-02-05 12:14:45 +00:00
Jan Djärv
96ff33d606 Forgot to remove debug code. 2005-02-03 19:57:33 +00:00
Jan Djärv
c8934d9de9 * gtkutil.c (create_menus): Connect selection-done event instead of
the deactivate event to deactivate_cb.  This will make the last
	leave event come before the call to deactivate_cb, so the leave
	event does not make sit-for exit after a menu selection.
2005-02-03 19:50:08 +00:00
Jan Djärv
81f098775c * xmenu.c (menubar_selection_callback): Force out GTK buffered
events so the menu event comes after them.  This is to prevent sit-for
	from exiting on buffered events directly after a menu selection,
	lisp code for Help => About Emacs uses sit-for.
2005-02-03 19:49:43 +00:00
Jan Djärv
0e95095bfb * xmenu.c (menubar_selection_callback): Force out GTK buffered
events so the menu event comes after them.  This is to prevent sit-for
	from exiting on buffered events directly after a menu selection,
	lisp code for Help => About Emacs uses sit-for.

	* gtkutil.c (create_menus): Connect selection-done event instead of
	the deactivate event to deactivate_cb.  This will make the last
	leave event come before the call to deactivate_cb, so the leave
	event does not make sit-for exit after a menu selection.
2005-02-03 19:48:59 +00:00
Stefan Monnier
97f4312dfd Copyright update. 2005-02-03 16:04:50 +00:00
Kim F. Storm
5b3f855065 (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert. 2005-02-03 14:09:04 +00:00
Kim F. Storm
a6d8ba25ae (x_free_gc) [!GLYPH_DEBUG]: Fix xassert. 2005-02-03 14:08:47 +00:00
Kim F. Storm
498c08eaef (build_frame_matrix_from_leaf_window)
[!GLYPH_DEBUG]: Fix xassert.
2005-02-03 14:08:01 +00:00
Kim F. Storm
5bb6a3c129 *** empty log message *** 2005-02-03 14:07:44 +00:00
YAMAMOTO Mitsuharu
e9859e269b (mac_draw_string_common, x_make_frame_visible): Use
MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by the compiling OS
version.
2005-02-03 11:58:25 +00:00
YAMAMOTO Mitsuharu
50b96379d7 (x_create_tip_frame): Use MAC_OS_X_VERSION_MAX_ALLOWED to
conditionalize by the compiling OS version.
2005-02-03 11:56:47 +00:00