Variable: so-long-variable-overrides

so-long-variable-overrides is a customizable variable defined in so-long.el.gz.

Value

((bidi-inhibit-bpa . t) (bidi-paragraph-direction . left-to-right)
 (buffer-read-only . t) (global-hl-line-mode) (line-move-visual . t)
 (show-paren-mode) (truncate-lines) (which-func-mode))

Documentation

Variables to override, and the values to override them with.

The variables are given buffer-local values. By default this happens if so-long-action is set to either so-long-mode or so-long-minor-mode(var)/so-long-minor-mode(fun).

If so-long-revert is subsequently invoked, then the variables are restored to their original states.

The combination of line-move-visual(var)/line-move-visual(fun) (enabled) and truncate-lines (disabled) is important for maximizing responsiveness when moving vertically within an extremely long line, as otherwise the full length of the line may need to be scanned to find the next position.

Bidirectional text display -- especially handling the large quantities of nested parentheses which are liable to occur in minified programming code -- can be very expensive for extremely long lines, and so this support is disabled by default (insofar as is supported; in particular bidi-inhibit-bpa is not available in Emacs versions < 27). For more information refer to info node
(emacs) Bidirectional Editing and info node (elisp) Bidirectional Display.

Buffers are made read-only by default to prevent potentially-slow editing from occurring inadvertently, as buffers with excessively long lines are likely not intended to be edited manually.

This variable was added, or its default value changed, in so-long version 1.0.

Source Code

;; Defined in /usr/src/emacs/lisp/so-long.el.gz
(defcustom so-long-variable-overrides
  '((bidi-inhibit-bpa . t)
    (bidi-paragraph-direction . left-to-right)
    (buffer-read-only . t)
    (global-hl-line-mode . nil)
    (line-move-visual . t)
    (show-paren-mode . nil)
    (truncate-lines . nil)
    (which-func-mode . nil))
  "Variables to override, and the values to override them with.

The variables are given buffer-local values.  By default this happens if
`so-long-action' is set to either `so-long-mode' or `so-long-minor-mode'.

If `so-long-revert' is subsequently invoked, then the variables are restored
to their original states.

The combination of `line-move-visual' (enabled) and `truncate-lines' (disabled)
is important for maximizing responsiveness when moving vertically within an
extremely long line, as otherwise the full length of the line may need to be
scanned to find the next position.

Bidirectional text display -- especially handling the large quantities of
nested parentheses which are liable to occur in minified programming code --
can be very expensive for extremely long lines, and so this support is disabled
by default (insofar as is supported; in particular `bidi-inhibit-bpa' is not
available in Emacs versions < 27).  For more information refer to info node
`(emacs) Bidirectional Editing' and info node `(elisp) Bidirectional Display'.

Buffers are made read-only by default to prevent potentially-slow editing from
occurring inadvertently, as buffers with excessively long lines are likely not
intended to be edited manually."
  :type '(alist :key-type (variable :tag "Variable")
                :value-type (sexp :tag "Value"))
  :options '((bidi-inhibit-bpa boolean)
             (bidi-paragraph-direction (choice (const left-to-right)
                                               (const right-to-left)
                                               (const nil)))
             (buffer-read-only boolean)
             (global-hl-line-mode boolean)
             (line-move-visual boolean)
             (show-paren-mode boolean)
             (truncate-lines boolean)
             (which-func-mode boolean))
  :package-version '(so-long . "1.0"))