Function: xselect-convert-to-charpos

xselect-convert-to-charpos is a byte-compiled function defined in select.el.gz.

Signature

(xselect-convert-to-charpos SELECTION TYPE VALUE)

Source Code

;; Defined in /usr/src/emacs/lisp/select.el.gz
(defun xselect-convert-to-charpos (_selection _type value)
  (when (setq value (xselect--selection-bounds value))
    (let ((beg (1- (nth 0 value))) ; zero-based
	  (end (1- (nth 1 value))))
      (cons 'SPAN (vector (xselect--int-to-cons (min beg end))
			  (xselect--int-to-cons (max beg end)))))))