[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/so-long fbb3a89 04/10: Make `global-so-long-mode' handle unrecog
From: |
Phil Sainty |
Subject: |
scratch/so-long fbb3a89 04/10: Make `global-so-long-mode' handle unrecognised file types |
Date: |
Thu, 29 Jul 2021 23:59:38 -0400 (EDT) |
branch: scratch/so-long
commit fbb3a895cc35480ba0ca6ad04bb9b3ad21df680e
Author: Phil Sainty <psainty@orcon.net.nz>
Commit: Phil Sainty <psainty@orcon.net.nz>
Make `global-so-long-mode' handle unrecognised file types
* lisp/so-long.el (so-long-target-modes): Add `fundamental-mode'
* etc/NEWS: Describe changes.
This doesn't affect buffers which are simply in `fundamental-mode' by
default. It only affects buffers for which `set-auto-mode' has been
called (normally via `find-file') without establishing a different
major mode.
---
etc/NEWS | 7 +++++++
lisp/so-long.el | 5 +++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index efeb523..103d91b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2827,6 +2827,13 @@ personal key ring.
10000 characters and 500 lines respectively, to reduce the likelihood
of false-positives when 'global-so-long-mode' is enabled.
+---
+*** 'so-long-target-modes' now includes 'fundamental-mode' by default,
+meaning that 'global-so-long-mode' will also process files which were
+not recognised. (This only has an effect if 'set-auto-mode' chooses
+'fundamental-mode'; buffers which are simply in 'fundamental-mode' by
+default are unaffected.)
+
* New Modes and Packages in Emacs 28.1
diff --git a/lisp/so-long.el b/lisp/so-long.el
index e949ccd..dbbba3c 100644
--- a/lisp/so-long.el
+++ b/lisp/so-long.el
@@ -393,6 +393,7 @@
;;
;; 1.1 - Increase `so-long-threshold' from 250 to 10,000.
;; - Increase `so-long-max-lines' from 5 to 500.
+;; - Include `fundamental-mode' in `so-long-target-modes'.
;; 1.0 - Included in Emacs 27.1, and in GNU ELPA for prior versions of Emacs.
;; - New global mode `global-so-long-mode' to enable/disable the library.
;; - New user option `so-long-action'.
@@ -525,7 +526,7 @@ See `so-long-detected-long-line-p' for details."
:package-version '(so-long . "1.0"))
(defcustom so-long-target-modes
- '(prog-mode css-mode sgml-mode nxml-mode)
+ '(prog-mode css-mode sgml-mode nxml-mode fundamental-mode)
"`so-long' affects only these modes and their derivatives.
Our primary use-case is minified programming code, so `prog-mode' covers
@@ -538,7 +539,7 @@ files would prevent Emacs from handling them correctly."
;; Use 'symbol', as 'function' may be unknown => mismatch.
:type '(choice (repeat :tag "Specified modes" symbol)
(const :tag "All modes" t))
- :package-version '(so-long . "1.0"))
+ :package-version '(so-long . "1.1"))
(defcustom so-long-invisible-buffer-function #'so-long-deferred
"Function called in place of `so-long' when the buffer is not displayed.
- branch scratch/so-long created (now 3d685ba), Phil Sainty, 2021/07/29
- scratch/so-long 3555187 01/10: ; * lisp/so-long.el: Documentation, Phil Sainty, 2021/07/29
- scratch/so-long d7de002 02/10: ; * lisp/so-long.el: Bump to version 1.1, Phil Sainty, 2021/07/29
- scratch/so-long fbb3a89 04/10: Make `global-so-long-mode' handle unrecognised file types,
Phil Sainty <=
- scratch/so-long 57d7cb6 05/10: * lisp/so-long.el (so-long-minor-modes): Additional modes to disable, Phil Sainty, 2021/07/29
- scratch/so-long cf5ef99 07/10: ; so-long-tests.el: Suppress expected warnings, Phil Sainty, 2021/07/29
- scratch/so-long 3a109aa 08/10: Support 'preserved' variables and minor modes in `so-long-mode', Phil Sainty, 2021/07/29
- scratch/so-long 3d685ba 10/10: Make `global-so-long-mode' use `buffer-line-statistics', Phil Sainty, 2021/07/29
- scratch/so-long f019be5 03/10: Increase `so-long-threshold' and `so-long-max-lines' defaults, Phil Sainty, 2021/07/29
- scratch/so-long 0e0d677 06/10: ; * lisp/so-long.el: Minor bug fixes, Phil Sainty, 2021/07/29
- scratch/so-long 647eb06 09/10: ; Revert "Make `so-long' restore `view-mode'", Phil Sainty, 2021/07/29