Variable: so-long-predicate

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

Value

so-long-statistics-excessive-p

Documentation

Function called after set-auto-mode to decide whether action is needed.

This affects the behavior of global-so-long-mode(var)/global-so-long-mode(fun).

Only called if the major mode is a member of so-long-target-modes.

The specified function will be called with no arguments. If it returns non-nil then so-long will be invoked.

Defaults to so-long-statistics-excessive-p starting from Emacs 28.1, or so-long-detected-long-line-p in earlier versions.

Note that so-long-statistics-excessive-p requires Emacs 28.1 or later.

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

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/so-long.el.gz
(defcustom so-long-predicate (if (fboundp 'buffer-line-statistics)
                                 'so-long-statistics-excessive-p
                               'so-long-detected-long-line-p)
  "Function called after `set-auto-mode' to decide whether action is needed.

This affects the behavior of `global-so-long-mode'.

Only called if the major mode is a member of `so-long-target-modes'.

The specified function will be called with no arguments.  If it returns non-nil
then `so-long' will be invoked.

Defaults to `so-long-statistics-excessive-p' starting from Emacs 28.1, or
`so-long-detected-long-line-p' in earlier versions.

Note that `so-long-statistics-excessive-p' requires Emacs 28.1 or later."
  :type '(radio (const so-long-statistics-excessive-p)
                (const so-long-detected-long-line-p)
                (function :tag "Custom function"))
  :package-version '(so-long . "1.1"))