emacs-diffs
[Top][All Lists]
Advanced

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

feature/rcirc-update 1d73575 1/2: Fix issues with argument parsing in rc


From: Philip Kaludercic
Subject: feature/rcirc-update 1d73575 1/2: Fix issues with argument parsing in rcirc-define-command
Date: Tue, 6 Jul 2021 02:53:14 -0400 (EDT)

branch: feature/rcirc-update
commit 1d735756818fcd558722ee1cdc47ad44bcde5fb0
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Fix issues with argument parsing in rcirc-define-command
    
    * rcirc.el (rcirc-define-command): Fix issues
---
 lisp/net/rcirc.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 4f8d961..caec150 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -2453,9 +2453,9 @@ that, an interactive form can specified."
                  "\nby `rcirc-buffer-process' and `rcirc-target' will be 
used.")
          (interactive (list ,@interactive-spec))
          (unless (if (listp ,argument)
-                     (not (<= ,required (length ,argument) ,total))
+                     (<= ,required (length ,argument) ,total)
                    (string-match ,regexp ,argument))
-           (user-error "Malformed input (%s): %S" ,command ',arguments))
+           (user-error "Malformed input (%s): %S" ',command ',argument))
          (let ((process (or process (rcirc-buffer-process)))
               (target (or target rcirc-target)))
            (ignore target process)



reply via email to

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