Function: rectangle-position-as-coordinates

rectangle-position-as-coordinates is a byte-compiled function defined in rect.el.gz.

Signature

(rectangle-position-as-coordinates POSITION)

Documentation

Return cons of the column and line values of POSITION.

POSITION specifies a position of the current buffer. The value returned has the form (COLUMN . LINE).

Source Code

;; Defined in /usr/src/emacs/lisp/rect.el.gz
(defun rectangle-position-as-coordinates (position)
   "Return cons of the column and line values of POSITION.
POSITION specifies a position of the current buffer.  The value
returned has the form (COLUMN . LINE)."
  (save-excursion
    (goto-char position)
    (let ((col (current-column))
          (line (line-number-at-pos)))
      (cons col line))))