[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xselect.c
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/src/xselect.c |
Date: |
Fri, 22 Feb 2002 08:15:47 -0500 |
Index: emacs/src/xselect.c
diff -c emacs/src/xselect.c:1.108 emacs/src/xselect.c:1.109
*** emacs/src/xselect.c:1.108 Fri Nov 2 15:39:03 2001
--- emacs/src/xselect.c Fri Feb 22 08:15:47 2002
***************
*** 97,102 ****
--- 97,104 ----
Lisp_Object QCOMPOUND_TEXT; /* This is a type of selection. */
+ Lisp_Object Qcompound_text_with_extensions;
+
#ifdef CUT_BUFFER_SUPPORT
Lisp_Object QCUT_BUFFER0, QCUT_BUFFER1, QCUT_BUFFER2, QCUT_BUFFER3,
QCUT_BUFFER4, QCUT_BUFFER5, QCUT_BUFFER6, QCUT_BUFFER7;
***************
*** 1650,1655 ****
--- 1652,1661 ----
str = make_string_from_bytes ((char *) buf,
coding.produced_char, coding.produced);
xfree (buf);
+
+ if (SYMBOLP (coding.post_read_conversion)
+ && !NILP (Ffboundp (coding.post_read_conversion)))
+ str = run_pre_post_conversion_on_str (str, coding, 0);
Vlast_coding_system_used = coding.symbol;
}
compose_chars_in_text (0, XSTRING (str)->size, str);
***************
*** 1756,1765 ****
Vnext_selection_coding_system = Vselection_coding_system;
*format_ret = 8;
! *data_ret = x_encode_text (obj, Vnext_selection_coding_system,
(int *) size_ret, &stringp);
*nofree_ret = (*data_ret == XSTRING (obj)->data);
! if (NILP (type))
type = (stringp ? QSTRING : QCOMPOUND_TEXT);
Vlast_coding_system_used = (*nofree_ret
? Qraw_text
--- 1762,1774 ----
Vnext_selection_coding_system = Vselection_coding_system;
*format_ret = 8;
! *data_ret = x_encode_text (obj, Vnext_selection_coding_system, 1,
(int *) size_ret, &stringp);
*nofree_ret = (*data_ret == XSTRING (obj)->data);
! if (EQ (Vnext_selection_coding_system,
! Qcompound_text_with_extensions))
! type = QCOMPOUND_TEXT;
! else if (NILP (type))
type = (stringp ? QSTRING : QCOMPOUND_TEXT);
Vlast_coding_system_used = (*nofree_ret
? Qraw_text
***************
*** 2426,2431 ****
--- 2435,2442 ----
QATOM = intern ("ATOM"); staticpro (&QATOM);
QATOM_PAIR = intern ("ATOM_PAIR"); staticpro (&QATOM_PAIR);
QNULL = intern ("NULL"); staticpro (&QNULL);
+ Qcompound_text_with_extensions = intern ("compound-text-with-extensions");
+ staticpro (&Qcompound_text_with_extensions);
#ifdef CUT_BUFFER_SUPPORT
QCUT_BUFFER0 = intern ("CUT_BUFFER0"); staticpro (&QCUT_BUFFER0);
- [Emacs-diffs] Changes to emacs/src/xselect.c, Eli Zaretskii, 2002/02/22
- [Emacs-diffs] Changes to emacs/src/xselect.c, Eli Zaretskii, 2002/02/22
- [Emacs-diffs] Changes to emacs/src/xselect.c,
Eli Zaretskii <=
- [Emacs-diffs] Changes to emacs/src/xselect.c, Eli Zaretskii, 2002/02/22
- [Emacs-diffs] Changes to emacs/src/xselect.c, Eli Zaretskii, 2002/02/23
- [Emacs-diffs] Changes to emacs/src/xselect.c, Eli Zaretskii, 2002/02/23
- [Emacs-diffs] Changes to emacs/src/xselect.c, Eli Zaretskii, 2002/02/26
- [Emacs-diffs] Changes to emacs/src/xselect.c, Kenichi Handa, 2002/02/28