From d176a839b02506ddd4b3a0f0611c6a2339690b20 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 5 Jun 2002 17:14:16 +0000 Subject: [PATCH] (xselect-convert-to-string): If VALUE is a string, return a cons of TYPE and the string. --- lisp/select.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/select.el b/lisp/select.el index 85ca927d7ef..801db31cb61 100644 --- a/lisp/select.el +++ b/lisp/select.el @@ -134,7 +134,9 @@ Cut buffers are considered obsolete; you should use selections instead." (defun xselect-convert-to-string (selection type value) (cond ((stringp value) - value) + ;; Return the type as well, so that xselect.c could honor + ;; requests whose type is STRING. + (cons type value)) ((overlayp value) (save-excursion (or (buffer-name (overlay-buffer value))