emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/rcirc-color 2c3dd9fd10 3/6: Revert "* rcirc-color.el (c


From: Philip Kaludercic
Subject: [elpa] externals/rcirc-color 2c3dd9fd10 3/6: Revert "* rcirc-color.el (color): Use `rcirc-define-command'"
Date: Fri, 30 Sep 2022 08:37:46 -0400 (EDT)

branch: externals/rcirc-color
commit 2c3dd9fd10227a46c2ad907ee5ef0f72d5e90039
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Revert "* rcirc-color.el (color): Use `rcirc-define-command'"
    
    This reverts commit c50cfdf02e0ae6527d2c9ca6b42c32e680a1ad86.
    
    We cannot make use of `rcirc-define-command' unless we raise the
    minimum version to 28.1.  This is not yet reasonable, so the change is
    reverted for now.
---
 rcirc-color.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/rcirc-color.el b/rcirc-color.el
index 9e0ab14c31..49a56dcf20 100644
--- a/rcirc-color.el
+++ b/rcirc-color.el
@@ -121,9 +121,11 @@ This ignores SENDER and RESPONSE."
        (when face
          (rcirc-add-face (match-beginning 0) (match-end 0) face))))))
 
-(rcirc-define-command color (nick color)
+(defun-rcirc-command color (args)
   "Change one of the nick colors."
-  (rcirc-do-color nick color process target))
+  (interactive)
+  (setq args (split-string args))
+  (rcirc-do-color (car args) (cadr args) process target))
 
 (defun rcirc-do-color (nick color process target)
   "Implement the /color command.



reply via email to

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