Commit graph

47 commits

Author SHA1 Message Date
Glenn Morris
aa360da10d Add some compiler declarations, for builds without X. 2008-06-12 03:56:20 +00:00
Juanma Barranquero
29128339b1 (x-get-selection): Fix typo. 2008-06-01 11:54:47 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Chong Yidong
569ac23f8a (xselect-convert-to-string): Send a C_STRING only if the polymorphic
target TEXT is requested.
2008-04-21 02:02:01 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Glenn Morris
b50690ccaf (selection-coding-system): Make it a defcustom, and add the properties
from cus-start.el.  Bump :version.
2008-02-08 20:16:52 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Miles Bader
0bd5084171 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
2007-12-06 09:51:45 +00:00
Juanma Barranquero
c2649d3f84 (x-get-cut-buffer-internal, x-rotate-cut-buffers-internal,
x-store-cut-buffer-internal): Declare as functions.
2007-11-22 13:51:38 +00:00
Kenichi Handa
502597985d (selection-coding-system)
(next-selection-coding-system): Declaration moded from xselect.c.
(x-get-selection): Decode by selection-coding-system if it is
non-nil.  If it is nil, decode by a proper coding system.  Handle
C_STRING.
(ccl-check-utf-8, string-utf-8-p): Delete them.
(xselect-convert-to-string): Fix determining data-type in the case
that TEXT is requested.  Don't use selection-coding-system if it's
not proper for the data-type.
2007-11-18 09:12:14 +00:00
Glenn Morris
4837b516ea Replace `iff' in doc-strings and comments. 2007-08-08 07:40:09 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
c90f275771 Update copyright years. 2006-12-05 07:06:08 +00:00
Jan Djärv
1df04e22ca * select.el (ccl-check-utf-8, string-utf-8-p): New functions
(by Kenichi Handa).
 (xselect-convert-to-string): Decline requests for UTF8_STRING if
 the selection is not UTF-8.
2006-10-19 07:16:27 +00:00
Jan Djärv
b984fed926 * select.el (xselect-convert-to-string): If UTF8_STRING is requested
and the data doesn't look like UTF8, send STRING instead.
2006-09-16 17:12:38 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Kenichi Handa
832fe7204e (x-set-cut-buffer): Cancel previous change. 2004-10-25 00:46:04 +00:00
Kenichi Handa
c0f7266a85 (x-set-cut-buffer): Encode STRING if necessary. 2004-10-25 00:22:02 +00:00
Luc Teirlinck
15a24762a4 (x-get-selection, x-set-selection): Doc fixes. 2004-07-24 21:53:10 +00:00
Luc Teirlinck
b36ee2a6ec (xselect-convert-to-string): Move comment to intended line. 2004-05-03 21:46:00 +00:00
Luc Teirlinck
deae888e00 (xselect-convert-to-string): Bind `inhibit-read-only' to t. 2004-05-03 01:24:47 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kenichi Handa
f147fd76db (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-17 10:54:39 +00:00
Juanma Barranquero
47fb27231c (x-set-cut-buffer): Fix docstring. Check type with `stringp' instead of
`substring'.
2003-01-29 09:19:46 +00:00
Kenichi Handa
eb1416b9bc (xselect-convert-to-string): If TYPE is non-nil,
encode the selection data string.  Always return cons of type and
string.
(selection-converter-alist): Add (UTF8_STRING .
xselect-convert-to-string).
2002-08-14 00:57:55 +00:00
Eli Zaretskii
d176a839b0 (xselect-convert-to-string): If VALUE is a string,
return a cons of TYPE and the string.
2002-06-05 17:14:16 +00:00
Pavel Janík
307645975c Follow coding conventions. 2002-05-02 05:41:46 +00:00
Pavel Janík
47a31c6bab (xselect-convert-to-class, xselect-convert-to-name): Documented. 2001-12-14 19:58:10 +00:00
Pavel Janík
8157ac1432 Follow doc-string conventions. 2001-12-12 20:07:32 +00:00
Pavel Janík
60370d4073 Some fixes to follow coding conventions. 2001-07-15 19:53:53 +00:00
Eli Zaretskii
76058c27ab (x-get-selection): Docstring dix. 2000-11-27 15:35:32 +00:00
Gerd Moellmann
1b270b55c0 (x-set-selection): Call buffer-substring, not
substring.  Also fix docstring
1999-11-12 13:09:37 +00:00
Richard M. Stallman
4029fd9a3f (x-get-selection): Change default for data-type
back to `STRING'.
1997-08-04 07:46:26 +00:00
Karl Heuer
79501c8dd3 (x-get-selection): Set default data-type of selection
to COMPOUND_TEXT.
(selection-converter-alist): Add an entry for COMPOUND_TEXT.
1997-02-20 05:49:58 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
5038b790cf (x-set-selection): Fix up interactive defaults. 1995-04-13 02:34:03 +00:00
Karl Heuer
8f1204db34 Update copyright. 1994-05-03 23:47:06 +00:00
Richard M. Stallman
6eac0de696 (x-valid-simple-selection-p): Accept an overlay.
(xselect-convert-to-string, xselect-convert-to-length):
(xselect-convert-to-filename xselect-convert-to-charpos):
(xselect-convert-to-lineno, xselect-convert-to-colno): Likewise.
1994-03-20 21:12:45 +00:00
Richard M. Stallman
39479f7efa (x-set-cut-buffer): New arg PUSH. 1993-05-24 21:19:26 +00:00
Jim Blandy
7e773fb425 * select.el (xselect-convert-to-class): Just return "Emacs" here.
That's what the class will always be.
1993-05-18 23:25:21 +00:00
Eric S. Raymond
31e1d9206b All fsets changed to defaliases. 1993-04-23 06:51:44 +00:00
Eric S. Raymond
3109d63f84 Initial revision 1993-03-17 17:19:16 +00:00