aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/so-long.el14
2 files changed, 14 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index c9fb2d48c19..4f49d2a6e44 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2830,8 +2830,8 @@ predicate (replacing 'so-long-detected-long-line-p').
2830 2830
2831--- 2831---
2832*** 'so-long-threshold' and 'so-long-max-lines' have been raised to 2832*** 'so-long-threshold' and 'so-long-max-lines' have been raised to
283310000 bytes and 500 lines respectively, to reduce the likelihood 283310000 bytes and 500 lines respectively, to reduce the likelihood of
2834of false-positives when 'global-so-long-mode' is enabled. The latter 2834false-positives when 'global-so-long-mode' is enabled. The latter
2835value is now only used by the old predicate, as the new predicate 2835value is now only used by the old predicate, as the new predicate
2836knows the longest line in the entire buffer. 2836knows the longest line in the entire buffer.
2837 2837
diff --git a/lisp/so-long.el b/lisp/so-long.el
index b1a3de1f725..829afd63eab 100644
--- a/lisp/so-long.el
+++ b/lisp/so-long.el
@@ -535,6 +535,10 @@ the `so-long-predicate' function is `so-long-statistics-excessive-p'."
535(defcustom so-long-max-lines 500 535(defcustom so-long-max-lines 500
536 "Number of non-blank, non-comment lines to test for excessive length. 536 "Number of non-blank, non-comment lines to test for excessive length.
537 537
538This option normally has no effect in Emacs versions >= 28.1, as the default
539`so-long-predicate' sees the entire buffer. Older versions of Emacs still make
540use of this option.
541
538If nil then all lines will be tested, until either a long line is detected, 542If nil then all lines will be tested, until either a long line is detected,
539or the end of the buffer is reached. 543or the end of the buffer is reached.
540 544
@@ -549,6 +553,10 @@ See `so-long-detected-long-line-p' for details."
549(defcustom so-long-skip-leading-comments t 553(defcustom so-long-skip-leading-comments t
550 "Non-nil to ignore all leading comments and whitespace. 554 "Non-nil to ignore all leading comments and whitespace.
551 555
556This option normally has no effect in Emacs versions >= 28.1, as the default
557`so-long-predicate' sees the entire buffer. Older versions of Emacs still make
558use of this option.
559
552If the file begins with a shebang (#!), this option also causes that line to be 560If the file begins with a shebang (#!), this option also causes that line to be
553ignored even if it doesn't match the buffer's comment syntax, to ensure that 561ignored even if it doesn't match the buffer's comment syntax, to ensure that
554comments following the shebang will be ignored. 562comments following the shebang will be ignored.
@@ -613,8 +621,10 @@ Only called if the major mode is a member of `so-long-target-modes'.
613The specified function will be called with no arguments. If it returns non-nil 621The specified function will be called with no arguments. If it returns non-nil
614then `so-long' will be invoked. 622then `so-long' will be invoked.
615 623
616Defaults to `so-long-statistics-excessive-p' starting from Emacs 28, or 624Defaults to `so-long-statistics-excessive-p' starting from Emacs 28.1, or
617`so-long-detected-long-line-p' in earlier versions." 625`so-long-detected-long-line-p' in earlier versions.
626
627Note that `so-long-statistics-excessive-p' requires Emacs 28.1 or later."
618 :type '(radio (const so-long-statistics-excessive-p) 628 :type '(radio (const so-long-statistics-excessive-p)
619 (const so-long-detected-long-line-p) 629 (const so-long-detected-long-line-p)
620 (function :tag "Custom function")) 630 (function :tag "Custom function"))