1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix argument parser for rcirc-define-command with string input

* rcirc.el (rcirc-define-command): Require at least one space between
arguments
This commit is contained in:
Philip Kaludercic 2021-06-15 23:12:02 +02:00
parent 1181c606b3
commit 7e5360f322

View file

@ -2403,8 +2403,8 @@ that, an interactive form can specified."
(insert "\\`")
(when arguments
(dotimes (_ (1- (length arguments)))
(insert "\\(?:\\(.+?\\)[[:space:]]*"))
(insert "\\(.*\\)")
(insert "\\(?:\\(.+?\\)"))
(insert "\\(?:[[:space:]]+\\(.*\\)\\)")
(dotimes (i (1- (length arguments)))
(when (< i optional)
(insert "?"))