emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 12efa07 1/2: Don't have erc-goodies and erc-ring re


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 12efa07 1/2: Don't have erc-goodies and erc-ring register functions multiple times
Date: Wed, 19 Jun 2019 11:07:50 -0400 (EDT)

branch: master
commit 12efa07f95d96fe42d6c72794e3bf4fac62a4bf4
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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.
---
 lisp/erc/erc-goodies.el | 2 +-
 lisp/erc/erc-ring.el    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/erc/erc-goodies.el b/lisp/erc/erc-goodies.el
index 4108382..ff5539e 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))))
 
diff --git a/lisp/erc/erc-ring.el b/lisp/erc/erc-ring.el
index 2ee78f4..aaf4bd8 100644
--- a/lisp/erc/erc-ring.el
+++ b/lisp/erc/erc-ring.el
@@ -46,7 +46,7 @@
 (define-erc-module ring nil
   "Stores input in a ring so that previous commands and messages can
 be recalled using M-p and M-n."
-  ((push 'erc-add-to-input-ring erc-pre-send-functions)
+  ((cl-pushnew 'erc-add-to-input-ring erc-pre-send-functions)
    (define-key erc-mode-map "\M-p" 'erc-previous-command)
    (define-key erc-mode-map "\M-n" 'erc-next-command))
   ((setq erc-pre-send-functions (delq 'erc-add-to-input-ring



reply via email to

[Prev in Thread] Current Thread [Next in Thread]