summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/lisp-mnt-tests.el
diff options
context:
space:
mode:
authorF. Jason Park <jp@neverwas.me>2023-04-14 00:07:31 -0700
committerF. Jason Park <jp@neverwas.me>2023-05-05 17:18:01 -0700
commitb0d761be0f9b0180566d7cde1ef2eea33402dd4e (patch)
treeb36e54f3a9374c08558910f267096f1a188c4c68 /test/lisp/emacs-lisp/lisp-mnt-tests.el
parent2e18ba6302f3e4aa5485eeaca39c747beb55ca8f (diff)
downloademacs-b0d761be0f9b0180566d7cde1ef2eea33402dd4e.tar.gz
emacs-b0d761be0f9b0180566d7cde1ef2eea33402dd4e.tar.bz2
emacs-b0d761be0f9b0180566d7cde1ef2eea33402dd4e.zip
Restore module var toggles in ERC's Custom buffers
* lisp/erc/erc-common.el (erc--neuter-custom-variable-state): Remove function. ERC famously toggles global minor-mode vars during normal operations, which adds noise to its customization buffers because `customize-variable-state' always sees an activated module's mode variable as having "CHANGED". To suppress this annoyance, a workaround was employed that used a dishonest `:get' function to simply return the "saved value," when present. While this improved the Customize experience, it also misled users, which likely wasn't justified. (erc--make-show-me-widget): Add helper to avoid forward declarations. (erc--prepare-custom-module-type): Don't deprive users of a working minor-mode toggle. (erc--find-feature): New function to guess the feature of a module's containing library. (define-erc-module): Remove `:get' keyword. Specify `:require' instead, whose value may be nil. Users who currently have mode vars in their `custom-file' won't be impacted by this addition because those `custom-set-variables' entries will still lack a REQUEST list and hence won't incur a startup penalty. And new users intent on using the toggle will hopefully do so with the knowledge they're opting in to requiring ERC on startup, which is not the case if they follow the recommended practice of using `erc-modules' instead. (erc-with-server-buffer): Inline `erc-server-buffer'. * test/lisp/erc/erc-tests.el (erc-process-input-line): Use helper. (define-erc-module--global): Change expected expansion. (Bug#60935)
Diffstat (limited to 'test/lisp/emacs-lisp/lisp-mnt-tests.el')
0 files changed, 0 insertions, 0 deletions