]> git.eshelyaron.com Git - emacs.git/commit
Defer triggering `so-long' until the buffer is displayed
authorPhil Sainty <psainty@orcon.net.nz>
Mon, 21 Oct 2019 10:52:29 +0000 (23:52 +1300)
committerPhil Sainty <psainty@orcon.net.nz>
Thu, 14 Nov 2019 11:39:13 +0000 (00:39 +1300)
commite9dca2b5aa43116980321259682ad0c68fd0f937
treeec5e008d2a211de16bfabf298c99558ab17fc37c
parent90290745d74b18f8a824ea90fe6c6bf5110d716d
Defer triggering `so-long' until the buffer is displayed

* lisp/so-long.el (so-long-invisible-buffer-function): New user option.
(so-long--set-auto-mode): Use so-long-invisible-buffer-function.
(so-long-deferred): New function/value for so-long-invisible-buffer-function.
(so-long, so-long--disable): Support for so-long-deferred.

* test/lisp/so-long-tests/autoload-longlines-mode-tests.el
* test/lisp/so-long-tests/autoload-major-mode-tests.el
* test/lisp/so-long-tests/autoload-minor-mode-tests.el
* test/lisp/so-long-tests/so-long-tests.el:
Support for so-long-deferred.

Pre-existing tests have been updated to ensure the buffer is already
displayed in cases where a call to `normal-mode' is the (potential)
trigger for `so-long'.
lisp/so-long.el
test/lisp/so-long-tests/autoload-longlines-mode-tests.el
test/lisp/so-long-tests/autoload-major-mode-tests.el
test/lisp/so-long-tests/autoload-minor-mode-tests.el
test/lisp/so-long-tests/so-long-tests.el