Variable: outline-default-rules
outline-default-rules is a customizable variable defined in
outline.el.gz.
Value
nil
Documentation
Determines visibility of subtree starting at outline-default-state level.
The rules apply if and only if outline-default-state is a
number.
When nil, the subtree is hidden unconditionally.
When equal to a list, each element should be one of the following:
- A cons cell with CAR match-regexp and CDR a regexp, the
subtree will be hidden when the outline heading match the
regexp.
- subtree-has-long-lines to only show the heading branches when
long lines are detected in its subtree (see
outline-default-long-line for the definition of long lines).
- subtree-is-long to only show the heading branches when its
subtree contains more than outline-default-line-count lines.
- A cons cell of the form (custom-function . FUNCTION) where
FUNCTION is a lambda function or function name which will be
called without arguments with point at the beginning of the
heading and the match data set appropriately, the function
being expected to toggle the heading visibility.
This variable was added, or its default value changed, in Emacs 29.1.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/outline.el.gz
(defcustom outline-default-rules nil
"Determines visibility of subtree starting at `outline-default-state' level.
The rules apply if and only if `outline-default-state' is a
number.
When nil, the subtree is hidden unconditionally.
When equal to a list, each element should be one of the following:
- A cons cell with CAR `match-regexp' and CDR a regexp, the
subtree will be hidden when the outline heading match the
regexp.
- `subtree-has-long-lines' to only show the heading branches when
long lines are detected in its subtree (see
`outline-default-long-line' for the definition of long lines).
- `subtree-is-long' to only show the heading branches when its
subtree contains more than `outline-default-line-count' lines.
- A cons cell of the form (custom-function . FUNCTION) where
FUNCTION is a lambda function or function name which will be
called without arguments with point at the beginning of the
heading and the match data set appropriately, the function
being expected to toggle the heading visibility."
:version "29.1"
:type '(choice (const :tag "Hide subtree" nil)
(set :tag "Show subtree unless"
(cons :tag "Heading match regexp"
(const match-regexp) string)
(const :tag "Subtree has long lines"
subtree-has-long-lines)
(const :tag "Subtree is long"
subtree-is-long)
(cons :tag "Custom function"
(const custom-function) function))))