*** empty log message ***
authorKenichi Handa <handa@m17n.org>
Tue, 17 Jun 2003 11:14:25 +0000 (11:14 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 17 Jun 2003 11:14:25 +0000 (11:14 +0000)
etc/NEWS
lisp/ChangeLog
src/ChangeLog

index aa7547a..8866dd7 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -364,6 +364,11 @@ these extensions, and is now used by default for encoding and decoding
 X selections.  If you don't want this support, set
 `selection-coding-system' to `compound-text'.
 
+** The new variable `x-select-request-type' controls how Emacs
+requests X selection.  The default value is nil, which means that
+Emacs requests X selection with types COMPOUND_TEXT and UTF8_STRING,
+and use the more appropriately result.
+
 +++
 ** The parameters of automatic hscrolling can now be customized.
 The variable `hscroll-margin' determines how many columns away from
index f8e46dc..cf4c24b 100644 (file)
@@ -1,3 +1,15 @@
+2003-06-17  Kenichi Handa  <handa@m17n.org>
+
+       * term/x-win.el (x-select-request-type): New variable.
+       (x-select-utf8-or-ctext): New function.
+       (x-selection-value): New function.
+       (x-cut-buffer-or-selection-value): Call x-selection-value to get
+       a selection data.  Set next-selection-coding-system to nil.
+
+       * select.el (x-get-selection): If the string returned by
+       x-get-selection-internal has text property `foreign-selection',
+       decode it while preserving that property.
+
 2003-06-16  Luc Teirlinck  <teirllm@mail.auburn.edu>
 
        * simple.el (vis-mode): New function.
index 08b9ec3..c3c2ed1 100644 (file)
@@ -1,3 +1,14 @@
+2003-06-17  Kenichi Handa  <handa@m17n.org>
+
+       * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
+       composite.h.
+
+       * xselect.c: Don't include charset.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-15  Stefan Monnier  <monnier@cs.yale.edu>
 
        * termhooks.h (EVENT_INIT): New macro.