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:
parent
ebadb1e47f
commit
d176a839b0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user