aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notes/java
diff options
context:
space:
mode:
authorF. Jason Park2024-01-01 23:18:54 -0800
committerF. Jason Park2024-01-07 15:11:26 -0800
commitfad2d1e2acc12cf8b1770d821738d924105acd8a (patch)
treef544dea958976c54dc451a4a6cf1760d37b797e3 /admin/notes/java
parent74f022b2797567ab04405af37b877d94cc4fdca2 (diff)
downloademacs-fad2d1e2acc12cf8b1770d821738d924105acd8a.tar.gz
emacs-fad2d1e2acc12cf8b1770d821738d924105acd8a.zip
Use global window hook for erc-keep-place-indicator
* lisp/erc/erc-goodies.el (erc--keep-place-indicator-on-window-buffer-change): Expect a frame instead of a window argument for the only parameter, which is now ignored, and exit early when entering a minibuffer. (erc--keep-place-indicator-setup): Remove function because local modules don't need a separate setup function. (erc-keep-place-indicator-mode): Add autoload cookie even though this is a local module, since this particular one is intended for more granular, interactive activation. This is mostly a formality because it only matters in the unlikely event `erc-modules' is missing all other modules defined in `erc-goodies'. (erc-keep-place-indicator-mode, erc-keep-place-indicator-enable, erc-keep-place-indicator-disable): Move functionality from `erc--keep-place-indicator-setup' into enable body. Use global instead of local members for `erc-keep-place-mode-hook' and `window-buffer-change-functions'. (erc--keep-place-indicator-on-global-module): Perform necessary action in all ERC buffers, not just the current one, where the user has ostensibly disabled `erc-keep-place-mode'. * test/lisp/erc/erc-goodies-tests.el (erc-goodies-tests--assert-kp-indicator-on, erc-goodies-tests--assert-kp-indicator-off): Change expected hook membership for dependencies from global to local. (erc-goodies-tests--keep-place-indicator): Use new helpers from the `erc-tests-common' library. (Bug#59943)
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions