1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
Commit graph

129 commits

Author SHA1 Message Date
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kenichi Handa
e57ad4d894 Don't include cahrset.h, coding.h, composite.h.
(Qforeign_selection): New variable.
(syms_of_xselect): Intern and static it.
(selection_data_to_lisp_data): Return a unibyte string made from
data with `foreign-selection' text property.
2003-06-17 10:51:11 +00:00
Richard M. Stallman
4f06187ff2 (x_handle_selection_request): Move UNGCPRO to very end. 2003-04-06 20:35:06 +00:00
Andreas Schwab
2f51feb82d (selection_data_to_lisp_data): Use int instead of
long for an integer of size 4.
2003-03-12 23:48:40 +00:00
Richard M. Stallman
ceabd2726c Comment change. 2003-01-06 01:10:25 +00:00
Juanma Barranquero
f8f8d46438 (syms_of_xselect): Fix spacing. 2002-09-06 09:05:22 +00:00
Kenichi Handa
5109c8dd99 (QUTF8_STRING): New variable.
(symbol_to_x_atom): Pay attention to QUTF8_STRING.
(x_atom_to_symbol): Likewise.
(x_get_local_selection): New argument local_request.  If it is
nonzero, call handler_fn with the second arg nil.
(x_handle_selection_request): Call x_get_local_selection with
local_request 0.
(lisp_data_to_selection_data): Don't encode the string here.
(Fx_get_selection_internal): Call x_get_local_selection with
local_request 1.
(syms_of_xselect): Intern and staticpro QUTF8_STRING.
2002-08-14 00:58:39 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
aed1337830 Use macro SPECPDL_INDEX. 2002-07-11 14:18:02 +00:00
Juanma Barranquero
331379bfa7 Rename BINDING_STACK_SIZE to SPECPDL_INDEX. 2002-07-10 08:45:24 +00:00
Kenichi Handa
e188533570 (selection_data_to_lisp_data): Disable composition handling. 2002-06-24 00:37:24 +00:00
Sam Steingold
1b65481e29 (lisp_data_to_selection_data): Fix last change:
*data_ret is not a Lisp string, while unibyte_string is.
2002-06-07 22:05:07 +00:00
Eli Zaretskii
9cbd5852b6 (lisp_data_to_selection_data): Fix last change: set size_ret. 2002-06-07 13:44:04 +00:00
Eli Zaretskii
8f9b87b556 (lisp_data_to_selection_data): If the requested type
is STRING, call string_make_unibyte to encode the selected text
as a string.
2002-06-05 17:38:19 +00:00
Eli Zaretskii
f326600bb8 (lisp_data_to_selection_data): Always set selection
type as string if x_encode_text returns streingp non-NULL.
2002-05-31 17:42:32 +00:00
Ken Raeburn
07e9823c69 * xselect.c (symbol_to_x_atom, x_get_foreign_selection): Use
SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
2002-05-20 08:10:41 +00:00
Eli Zaretskii
7b9ae523c5 (lisp_data_to_selection_data): Don't set selection
type if comes from the Lisp object's car.  If the selection
contains a pure ASCII text, always return QSTRING as its type.
2002-05-07 05:46:35 +00:00
Stefan Monnier
31ade731e6 Change defvar_int def and vars to use EMACS_INT instead of just int. 2002-03-04 23:41:00 +00:00
Eli Zaretskii
5a79ea57c6 (Qcompound_text_with_extensions): Renamed from Qcompound_text_no_extensions.
(lisp_data_to_selection_data, syms_of_xselect): Use the new name.
2002-02-26 16:37:15 +00:00
Eli Zaretskii
ecb7ac215a (selection_data_to_lisp_data): Fix last change. 2002-02-23 08:53:27 +00:00
Eli Zaretskii
23e16093ec Fix last change. 2002-02-22 13:20:00 +00:00
Eli Zaretskii
fbbe0aceda <Qcompound_text_with_extensions>: New variable.
(syms_of_xselect): Intern and staticpro it.
(selection_data_to_lisp_data): Run post-read-conversion on decoded
selection text.
(lisp_data_to_selection_data): If next-selection-coding-system is
compound-text-with-extensions, set the type of selection to be
compound-text.
2002-02-22 13:16:35 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Pavel Janík
8c1a1077c0 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-21 12:13:46 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Gerd Moellmann
d9c0d4a31a (x_decline_selection_request): Handle errors
caused by receivers that have vanished.

(TRACE0, TRACE1, TRACE2): New macros, defined
depending on TRACE_SELECTION.  Replace fprintfs in #if 0 with
TRACE macros to facilitate debugging.  Add additional trace
statements.
(toplevel): Add prototypes for file-local functions.
(x_atom_to_symbol): Remove DPYINFO parameter.
2001-07-12 14:38:51 +00:00
Gerd Moellmann
3007ebfbc7 Call redisplay_preserve_echo_area with additional arg. 2001-01-16 12:42:22 +00:00
Gerd Moellmann
ca29f2b87b (selection_request_dpyinfo): New variable.
(x_handle_selection_request): Set it.
(x_selection_request_lisp_error): Don't call
x_decline_selection_request if selection request's display has
been closed.
2001-01-11 16:08:55 +00:00
Gerd Moellmann
47a6ac17a1 (x_reply_selection_request): Add a comment. 2001-01-10 12:23:46 +00:00
Gerd Moellmann
1c4d2069b3 (wait_for_property_change): Update copyright. 2000-11-28 15:36:08 +00:00
Kenichi Handa
0caef0ecf7 Include composite.h.
(selection_data_to_lisp_data): Call compose_chars_in_text on STR.
2000-11-06 12:35:44 +00:00
Kenichi Handa
11270583fe *** empty log message *** 2000-07-21 02:39:45 +00:00
Kenichi Handa
2b38b37ef7 (lisp_data_to_selection_data): Use x_encode_text. 2000-07-21 02:07:14 +00:00
Kenichi Handa
9846d9dbcf (selection_data_to_lisp_data): Setup members
src_multibyte and dst_multibyte of coding.  Adjusted for the
change for find_charset_in_str.
(lisp_data_to_selection_data): Likewise.
2000-05-20 00:08:10 +00:00
Kenichi Handa
99e1184e5c (lisp_data_to_selection_data): Adjusted for the change
for find_charset_in_str.
1999-12-15 00:26:05 +00:00
Gerd Moellmann
378c33ca4b (x_own_selection): Change for Lisp_Object selected_frame.
(Fx_store_cut_buffer_internal): Ditto.
(Fx_rotate_cut_buffers_internal): Ditto.
1999-09-13 11:14:26 +00:00
Ken Raeburn
8e713be64c Use XCAR and XCDR instead of explicit member references. 1999-09-12 07:05:34 +00:00
Richard M. Stallman
e18e6130fa (x_handle_selection_clear): Don't clear the
selection if Emacs still owns it through a different display.
1999-01-24 20:06:34 +00:00
Kenichi Handa
666273c2f0 (lisp_data_to_selection_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Andreas Schwab
aac77ff120 (Vselection_coding_system): Doc fix. 1998-10-30 10:21:58 +00:00
Kenichi Handa
6b123f323b (lisp_data_to_selection_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Richard M. Stallman
d24e26b1a9 (selection_data_to_lisp_data): Code-convert selections
regardless of enable-multibyte-characters.
(lisp_data_to_selection_data): Likewise for decoding.
1998-08-26 21:15:23 +00:00
Kenichi Handa
16cd502924 (Vnext_selection_coding_system): New variable.
(selection_data_to_lisp_data): If Vnext_selection_coding_system is
non-nil, use it.
(lisp_data_to_selection_data): Likewise.
(syms_of_xselect): Declare next-selection-coding-system as a Lisp
variable.
1998-08-15 01:28:14 +00:00
Richard M. Stallman
93e4ce1b88 (Vselection_coding_system):
Renamed from Vclipboard_coding_system.  All uses changed.
(syms_of_xselect): Rename Lisp variable.
1998-07-11 20:42:12 +00:00
Kenichi Handa
061bda8dfd (selection_data_to_lisp_data): Set Vlast_coding_system_used.
(lisp_data_to_selection_data): Likewize.
1998-07-09 02:02:33 +00:00
Kenichi Handa
e550dcb299 (lisp_data_to_selection_data): Call
find_charset_in_str with CMPCHARP 1 to encode Lisp string if it
contains a composite character.
1998-05-21 01:48:52 +00:00
Richard M. Stallman
22e0073908 (Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty. 1998-04-18 22:14:32 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Kenichi Handa
25b98b34c5 (selection_data_to_lisp_data): Give
make_string_from_bytes a correct char size.
1998-04-02 00:25:47 +00:00
Richard M. Stallman
c98265b836 (selection_data_to_lisp_data): Use make_string_from_bytes. 1998-03-21 17:49:39 +00:00