Kenichi Handa
9391d06ab4
(selection_data_to_lisp_data): Adjusted for the change
...
of decode_coding.
(lisp_data_to_selection_data): Adjusted for the change of
encode_coding.
(syms_of_xselect): Initialize clipboard-coding-system to
compound-text.
1998-01-22 01:26:45 +00:00
Richard M. Stallman
4a2f9c6aef
Update copyright year.
1998-01-21 23:32:12 +00:00
Richard M. Stallman
0120fdf9e3
(lisp_data_to_selection_data): Use size_byte.
...
(Fx_store_cut_buffer_internal): Use size_byte.
(selection_data_to_lisp_data): Use make_multibyte_string.
1998-01-09 23:22:10 +00:00
Richard M. Stallman
88623f1c40
(Fx_rotate_cut_buffers_internal): Doc fix.
1997-12-28 19:06:57 +00:00
Andreas Schwab
44d4653154
(Fx_disown_selection_internal): Fix type of EVENT.
1997-11-25 13:48:10 +00:00
Karl Heuer
4feb31b211
(x_handle_selection_request): Use xfree, not free.
...
(unexpect_property_change, x_get_window_property_as_lisp_data): Ditto.
(x_handle_property_notify, receive_incremental_selection): Ditto.
(selection_data_to_lisp_data, Fx_get_cut_buffer_internal): Ditto.
1997-11-15 20:16:49 +00:00
Kenichi Handa
5faa9b4571
Include buffer.h.
...
(selection_data_to_lisp_data): Do not perform code conversion if
the default value of enable-multibyte-characters is nil.
(lisp_data_to_selection_data): Likewise. Access the array
`charsets' in the correct way.
1997-10-21 10:43:40 +00:00
Richard M. Stallman
4cf066bb98
(syms_of_xselect): Doc syntax fixes.
1997-08-06 18:56:43 +00:00
Kenichi Handa
2584c9ec2b
(Vclipboard_coding_system): New variable.
...
(selection_data_to_lisp_data): Decode text by
Vclipboard_coding_system.
(lisp_data_to_selection_data): Encode text by
Vclipboard_coding_system.
(syms_of_xselect): Declare clipboard-coding-system as Lisp
variable and initialize it.
1997-08-03 03:02:05 +00:00
Richard M. Stallman
937a3875a4
(selection_data_to_lisp_data):
...
Make the vector the right size, when format is 16.
1997-07-24 21:29:24 +00:00
Richard M. Stallman
e607a484ef
(selection_data_to_lisp_data): Convert Fmake_vector
...
and Faset arguments to Lisp_Integer.
(clean_local_selection_data): Likewise.
1997-07-12 06:36:06 +00:00
Kenichi Handa
b58fda2e96
(selection_data_to_lisp_data): Call free instead of
...
xfree.
1997-07-02 12:53:50 +00:00
Kenichi Handa
569e0c76bd
(selection_data_to_lisp_data): Change coding system
...
name to iso-latin-1.
(lisp_data_to_selection_data): Likewise.
1997-06-09 13:00:16 +00:00
Kenichi Handa
fb5e77f716
(lisp_data_to_selection_data): charsets from char' to int.
1997-05-19 03:33:50 +00:00
Kenichi Handa
f78da51e8d
(selection_data_to_lisp_data): If TYPE is `STRING'
...
and DATA contains 8-bit codes, decode them as Latin-1 characters.
(lisp_data_to_selection_data): Supply 4th arg TABLE as Qnil to
find_charset_in_str.
1997-05-10 03:37:01 +00:00
Richard M. Stallman
f5c7718e0e
(x_reply_selection_request): Delete the inner
...
unbind_to call, since x_uncatch_errors does the job.
1997-05-05 19:14:27 +00:00
Richard M. Stallman
ad7f9d12c8
(x_reply_selection_request): Fix previous change.
1997-05-01 21:35:31 +00:00
Richard M. Stallman
5a49969629
(x_own_selection, x_reply_selection_request)
...
(x_get_foreign_selection):
Save value of x_catch_errors and pass to x_uncatch_errors.
1997-05-01 01:58:47 +00:00
Karl Heuer
6c070502b6
(expect_property_change): Fix Lisp_Object/integer confusion.
1997-04-10 22:32:00 +00:00
Kenichi Handa
467e767554
Adjusted for the change of MAX_CHARSET.
1997-03-18 23:31:34 +00:00
Kenichi Handa
90da0ee653
(lisp_data_to_selection_data, selection_data_to_lisp_data):
...
Remove prefix "coding-system-" from coding system symbol names.
1997-02-27 06:55:57 +00:00
Karl Heuer
e6c7c98823
Include charset.h and coding.h.
...
(QCOMPOUND_TEXT): New variable.
(symbol_to_x_atom): Handle it.
(selection_data_to_lisp_data): Decode a selection data if
selection type is TEXT or COMPOUND_TEXT.
(lisp_data_to_selection_data): Encode a text to COMPOUND_TEXT if
it contains multibyte characters.
(syms_of_xselect): Initialize and staticpro QCOMPOUND_TEXT.
1997-02-20 06:58:45 +00:00
Erik Naggum
a0d76c279e
Reorganize function definitions so etags finds them.
1996-10-31 13:43:37 +00:00
Karl Heuer
296744455f
(last_event_timestamp): Declare, but don't define.
1996-07-16 05:19:28 +00:00
Miles Bader
996b804dde
(x_clear_frame_selections): Don't call redisplay_preserve_echo_area here.
1996-07-02 16:25:19 +00:00
Richard M. Stallman
002bbc0ed3
(xfree): Macro deleted.
...
Callers changed to use `free' directly.
1996-01-25 22:00:11 +00:00
Richard M. Stallman
0158abbc71
(x_get_window_property_as_lisp_data): Use xfree, not XFree.
...
(x_get_window_property): Use XFree for tmp_data.
1996-01-25 21:57:22 +00:00
Erik Naggum
3b7ad313e0
Update FSF's address in the preamble.
1996-01-15 09:18:04 +00:00
Karl Heuer
606140dd71
(x_handle_selection_notify): Give an indication
...
in reading_selection_reply of whether the request succeeded.
(x_get_foreign_selection): Do error if foreign selection was cleared.
1996-01-09 23:47:09 +00:00
Richard M. Stallman
5d0ba25bac
Undo previous change, except for comments and doc strings.
1996-01-05 07:19:49 +00:00
Karl Heuer
2a1a4c9d30
(x_get_foreign_selection): Renamed local variables
...
requester_window (from requestor_window), requester_time (from
requestor_time).
(syms_of_xselect): Doc fix for x-selection-timeout.
1996-01-04 22:58:25 +00:00
Richard M. Stallman
d31b6237e9
(syms_of_xselect): Doc fix.
1995-11-15 18:33:45 +00:00
Richard M. Stallman
0d199f9c6b
(x_clear_frame_selections): Get selection_symbol properly.
...
(x_clear_frame_selections): Undo previous change.
1995-11-15 18:32:09 +00:00
Karl Heuer
144025039f
(x_clear_frame_selections): Delete duplicate code.
1995-07-17 22:14:00 +00:00
Karl Heuer
ab552306a8
(queue_selection_requests_unwind): Add return value.
...
(wait_for_property_change_unwind): Likewise.
1995-05-24 22:08:58 +00:00
Karl Heuer
137edb72be
(x_get_window_property): Cast args of XGetWindowProperty.
1995-05-23 03:02:17 +00:00
Richard M. Stallman
8f4f023fe0
(Vx_sent_selection_hooks, Vx_lost_selection_hooks, Vselection_alist)
...
(Vselection_converter_alist, x_selection_timeout): Make static.
1995-05-05 03:00:07 +00:00
Karl Heuer
f8c25f1b67
Update copyright.
1995-04-07 02:21:52 +00:00
Karl Heuer
19126e1177
New arg DPYINFO to all callers of x_window_to_frame, x_any_window_to_frame,
...
and x_top_window_to_frame.
1995-04-03 23:37:17 +00:00
Karl Heuer
04649dbcaf
(Fx_store_cut_buffer_internal): Use the flag in the
...
frame's x_display_info, not a global flag.
(Fx_rotate_cut_buffers_internal): Likewise.
1995-03-31 03:40:01 +00:00
Richard M. Stallman
55b2d45daa
(x_get_foreign_selection, x_reply_selection_request):
...
Use an unwind-protect to call x_stop_queuing_selection_requests.
(some_frame_on_display): New function.
(queue_selection_requests_unwind): New function.
1995-02-06 22:53:58 +00:00
Richard M. Stallman
afe1529d6f
(wait_for_property_change): Avoid unlikely timing error.
...
(x_get_foreign_selection): Pass display to
x_start_queueing_selection_events and x_stop_queueing_selection_events.
(x_reply_selection_request): Call x_start_queueing_selection_events
and x_stop_queueing_selection_events. Handle X protocol errors.
1995-02-02 18:49:38 +00:00
Karl Heuer
c4898489b1
(wait_for_property_change): Encode location as a cons of two integers instead
...
of lying about the type.
(wait_for_property_change_unwind): Decode it likewise.
1994-11-16 01:26:39 +00:00
Richard M. Stallman
a7b24d4689
(x_own_selection, x_get_foreign_selection): Change calls
...
to x_catch_errors and friends.
1994-10-26 04:58:18 +00:00
Richard M. Stallman
c6423dc1ac
(Fx_selection_exists_p): Fix backwards if.
1994-10-25 10:34:49 +00:00
Richard M. Stallman
b8c70430de
(Fx_selection_exists_p): If selected_frame isn't an x frame, return nil.
1994-10-24 21:59:55 +00:00
Richard M. Stallman
5c3a351a29
Use XFlush, not XFlushQueue, throughout.
...
(Xatom_*): Variables deleted.
Use slots in x_display_info structure instead.
(symbol_to_x_atom, x_atom_to_symbol):
New arg dpyinfo. All callers changed.
(xatoms_of_xselect): Function deleted.
1994-10-23 09:38:50 +00:00
Richard M. Stallman
2408b3a17c
Log omitted from previous checkin:
...
(x_own_selection, x_get_foreign_selection): Pass frame
to x_catch_errors, x_check_errors, x_uncatch_errors.
1994-10-20 04:40:28 +00:00
Richard M. Stallman
3834c318df
(x_get_foreign_selection): Get display from
...
selected_frame. Pass frame to x_stop_queuing_selection_requests and
x_start_queuing_selection_requests.
(x_own_selection, Fx_disown_selection_internal, Fx_selection_exists_p)
(Fx_store_cut_buffer_internal, Fx_get_cut_buffer_internal)
(Fx_rotate_cut_buffers_internal): Get display from selected_frame.
1994-10-20 04:39:13 +00:00
Karl Heuer
90851bbe34
(x_clear_frame_selections, wait_for_property_change): Use new accessor macros
...
instead of calling XSET directly.
1994-10-04 12:36:03 +00:00