Function: compilation-move-to-column

compilation-move-to-column is a byte-compiled function defined in compile.el.gz.

Signature

(compilation-move-to-column COL SCREEN)

Documentation

Go to column COL on the current line.

If SCREEN is non-nil, columns are screen columns, otherwise, they are just char-counts.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defun compilation-move-to-column (col screen)
  "Go to column COL on the current line.
If SCREEN is non-nil, columns are screen columns, otherwise, they are
just char-counts."
  (setq col (- col compilation-first-column))
  (if screen
      ;; Presumably, the compilation tool doesn't know about our current
      ;; `tab-width' setting, so it probably assumed 8-wide TABs (bug#21038).
      (let ((tab-width 8)) (move-to-column (max col 0)))
    (goto-char (min (+ (line-beginning-position) col) (line-end-position)))))