]> git.eshelyaron.com Git - emacs.git/commit
Support 'preserved' variables and minor modes in `so-long-mode'
authorPhil Sainty <psainty@orcon.net.nz>
Sun, 10 Jan 2021 02:02:58 +0000 (15:02 +1300)
committerPhil Sainty <psainty@orcon.net.nz>
Tue, 3 Aug 2021 11:20:07 +0000 (23:20 +1200)
commit10bd4bc6ecf8c4e2b22e02872823212a94a72ecc
treeb55533abefbd631b0439fe1283b2f277c86a4de5
parent0ec67a295632f3c4ac92e0b6a0070f67dedac4eb
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.
etc/NEWS
lisp/so-long.el
test/lisp/so-long-tests/so-long-tests-helpers.el
test/lisp/so-long-tests/so-long-tests.el