aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorF. Jason Park2025-09-03 17:48:21 -0700
committerF. Jason Park2025-09-04 17:12:25 -0700
commitfca0dbe0ab2930e39aaec304df3e6bb7cad17995 (patch)
treecae959434e5492a237b8b7d61fead28d4d5f2db2 /java
parentb3abbab63254fd18e1c7bad56d3401b49dd8604c (diff)
downloademacs-fca0dbe0ab2930e39aaec304df3e6bb7cad17995.tar.gz
emacs-fca0dbe0ab2930e39aaec304df3e6bb7cad17995.zip
Make function erc-scrolltobottom-mode idempotent
* lisp/erc/erc-goodies.el (erc-scrolltobottom-mode) (erc-scrolltobottom-enable): Always remove hook functions whose membership hinges on the value of `erc-scrolltobottom-all'. In ERC 5.6, an init file's `setopt' form containing an `erc-modules' assignment before an `erc-scrolltobottom-all' one would result in conflicting sets of hook members come `erc-open'. Having such option-dependent branching in module setup, while difficult to maintain, is a long held ERC practice, as seen in functions like `erc-nickserv-identify-mode'. Making all new modules "local" may be the most manageable solution because existing global modules can't be made to require prior deactivation.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions