Function: array-current-column
array-current-column is a byte-compiled function defined in
array.el.gz.
Signature
(array-current-column)
Documentation
Return the array column of the field in which the cursor is located.
Source Code
;; Defined in /usr/src/emacs/lisp/array.el.gz
(defun array-current-column ()
"Return the array column of the field in which the cursor is located."
;; Requires array-buffer-line and array-buffer-column to be current.
(and (array-cursor-in-array-range)
;; It's not okay to be on a row number line.
(not (and array-rows-numbered
(zerop (% array-buffer-line array-lines-per-row))))
(+
;; Array columns due to line differences.
(* array-columns-per-line
(if array-rows-numbered
(1- (% array-buffer-line array-lines-per-row))
(% array-buffer-line array-lines-per-row)))
;; Array columns on the current line.
(1+ (floor array-buffer-column array-field-width)))))