Variable: line-move-ignore-invisible

line-move-ignore-invisible is a customizable variable defined in simple.el.gz.

Value

t

Documentation

Non-nil means commands that move by lines ignore invisible newlines.

When this option is non-nil, C-n (next-line), C-p (previous-line), C-e (move-end-of-line), and C-a (move-beginning-of-line) behave as if newlines that are invisible didn't exist, and count only visible newlines. Thus, moving across 2 newlines one of which is invisible will be counted as a one-line move. Also, a non-nil value causes invisible text to be ignored when counting columns for the purposes of keeping point in the same column by C-n (next-line) and C-p (previous-line).

Outline mode sets this.

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defcustom line-move-ignore-invisible t
  "Non-nil means commands that move by lines ignore invisible newlines.
When this option is non-nil, \\[next-line], \\[previous-line], \\[move-end-of-line], and \\[move-beginning-of-line] behave
as if newlines that are invisible didn't exist, and count
only visible newlines.  Thus, moving across 2 newlines
one of which is invisible will be counted as a one-line move.
Also, a non-nil value causes invisible text to be ignored when
counting columns for the purposes of keeping point in the same
column by \\[next-line] and \\[previous-line].

Outline mode sets this."
  :type 'boolean
  :group 'editing-basics)