Function: rectangle--col-pos
rectangle--col-pos is a byte-compiled function defined in rect.el.gz.
Signature
(rectangle--col-pos COL KIND)
Source Code
;; Defined in /usr/src/emacs/lisp/rect.el.gz
(defun rectangle--col-pos (col kind)
(let ((c (move-to-column col)))
(if (and (= c col) (not (eolp)))
(if (eq kind 'point)
(if (window-parameter nil 'rectangle--point-crutches)
(setf (window-parameter nil 'rectangle--point-crutches) nil))
(if rectangle--mark-crutches (setq rectangle--mark-crutches nil)))
;; If move-to-column overshot, move back one char so we're
;; at the position where rectangle--highlight-for-redisplay
;; will add the overlay (so that the cursor can be drawn at the
;; right place).
(when (> c col) (forward-char -1))
(setf (if (eq kind 'point)
(window-parameter nil 'rectangle--point-crutches)
rectangle--mark-crutches)
(cons (point) col)))))