Function: proced-move-to-goal-column

proced-move-to-goal-column is a byte-compiled function defined in proced.el.gz.

Signature

(proced-move-to-goal-column)

Documentation

Move to goal-column if non-nil. Return position of point.

Source Code

;; Defined in /usr/src/emacs/lisp/proced.el.gz
;; Unlike dired, we do not define our own commands for vertical motion.
;; If `goal-column' is set, `next-line' and `previous-line' are fancy
;; commands to satisfy our modest needs.  If `proced-goal-attribute'
;; and/or `goal-column' are not set, `next-line' and `previous-line'
;; are really what we need to preserve the column of point.
;; We use `proced-move-to-goal-column' for "non-interactive" cases only
;; to get a well-defined position of point.

(defun proced-move-to-goal-column ()
  "Move to `goal-column' if non-nil.  Return position of point."
  (beginning-of-line)
  (unless (eobp)
    (if goal-column
        (forward-char goal-column)
      (forward-char 2)))
  (point))