diff options
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/so-long.el | 14 |
2 files changed, 14 insertions, 4 deletions
| @@ -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 |
| 2833 | 10000 bytes and 500 lines respectively, to reduce the likelihood | 2833 | 10000 bytes and 500 lines respectively, to reduce the likelihood of |
| 2834 | of false-positives when 'global-so-long-mode' is enabled. The latter | 2834 | false-positives when 'global-so-long-mode' is enabled. The latter |
| 2835 | value is now only used by the old predicate, as the new predicate | 2835 | value is now only used by the old predicate, as the new predicate |
| 2836 | knows the longest line in the entire buffer. | 2836 | knows 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 | ||
| 538 | This 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 | ||
| 540 | use of this option. | ||
| 541 | |||
| 538 | If nil then all lines will be tested, until either a long line is detected, | 542 | If nil then all lines will be tested, until either a long line is detected, |
| 539 | or the end of the buffer is reached. | 543 | or 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 | ||
| 556 | This 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 | ||
| 558 | use of this option. | ||
| 559 | |||
| 552 | If the file begins with a shebang (#!), this option also causes that line to be | 560 | If the file begins with a shebang (#!), this option also causes that line to be |
| 553 | ignored even if it doesn't match the buffer's comment syntax, to ensure that | 561 | ignored even if it doesn't match the buffer's comment syntax, to ensure that |
| 554 | comments following the shebang will be ignored. | 562 | comments following the shebang will be ignored. |
| @@ -613,8 +621,10 @@ Only called if the major mode is a member of `so-long-target-modes'. | |||
| 613 | The specified function will be called with no arguments. If it returns non-nil | 621 | The specified function will be called with no arguments. If it returns non-nil |
| 614 | then `so-long' will be invoked. | 622 | then `so-long' will be invoked. |
| 615 | 623 | ||
| 616 | Defaults to `so-long-statistics-excessive-p' starting from Emacs 28, or | 624 | Defaults 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 | |||
| 627 | Note 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")) |