diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-19 16:42:02 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-19 17:07:41 +0200 |
commit | 12efa07f95d96fe42d6c72794e3bf4fac62a4bf4 (patch) | |
tree | c12f38c593d87baecf3713f4e571116852cf4c71 /lisp/erc/erc-goodies.el | |
parent | 416b83e90724f0026fb757362e113cd542fe3de6 (diff) | |
download | emacs-12efa07f95d96fe42d6c72794e3bf4fac62a4bf4.tar.gz |
Don't have erc-goodies and erc-ring register functions multiple times
* lisp/erc/erc-goodies.el (noncommands): Don't register functions
twice.
* lisp/erc/erc-ring.el (ring): Ditto.
Diffstat (limited to 'lisp/erc/erc-goodies.el')
-rw-r--r-- | lisp/erc/erc-goodies.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/erc/erc-goodies.el b/lisp/erc/erc-goodies.el index 41083829bac..ff5539e7928 100644 --- a/lisp/erc/erc-goodies.el +++ b/lisp/erc/erc-goodies.el @@ -177,7 +177,7 @@ does not appear in the ERC buffer after the user presses ENTER.") "This mode distinguishes non-commands. Commands listed in `erc-insert-this' know how to display themselves." - ((push 'erc-send-distinguish-noncommands erc-pre-send-functions)) + ((cl-pushnew 'erc-send-distinguish-noncommands erc-pre-send-functions)) ((setq erc-pre-send-functions (delq 'erc-send-distinguish-noncommands erc-pre-send-functions)))) |