1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00

(xselect-convert-to-string): If VALUE is a string,

return a cons of TYPE and the string.
This commit is contained in:
Eli Zaretskii 2002-06-05 17:14:16 +00:00
parent ebadb1e47f
commit d176a839b0

View File

@ -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))