diff options
author | Phil Sainty <psainty@orcon.net.nz> | 2021-01-10 15:02:58 +1300 |
---|---|---|
committer | Phil Sainty <psainty@orcon.net.nz> | 2021-08-03 23:20:07 +1200 |
commit | 10bd4bc6ecf8c4e2b22e02872823212a94a72ecc (patch) | |
tree | b55533abefbd631b0439fe1283b2f277c86a4de5 /etc | |
parent | 0ec67a295632f3c4ac92e0b6a0070f67dedac4eb (diff) | |
download | emacs-10bd4bc6ecf8c4e2b22e02872823212a94a72ecc.tar.gz |
Support 'preserved' variables and minor modes in `so-long-mode'
The default values support preserving the state of `view-mode' when
switching to (and reverting from) `so-long-mode' (bug#45084).
* lisp/so-long.el (so-long-mode-preserved-variables)
(so-long-mode-preserved-minor-modes): New user options.
(so-long-mode-maintain-preserved-variables)
(so-long-mode-maintain-preserved-minor-modes): New functions.
(so-long-remember-all, so-long-after-change-major-mode)
(so-long-mode-revert): Use them.
* etc/NEWS: Describe changes.
* test/lisp/so-long-tests/so-long-tests-helpers.el:
* test/lisp/so-long-tests/so-long-tests.el: Update tests.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2868,6 +2868,12 @@ 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 user options 'so-long-mode-preserved-minor-modes' and +'so-long-mode-preserved-variables' allow specified mode and variable +states to be maintained if 'so-long-mode' replaces the original major +mode. By default, these new options support 'view-mode'. + * New Modes and Packages in Emacs 28.1 |