diff options
| author | Philip Kaludercic | 2021-06-15 23:44:56 +0200 |
|---|---|---|
| committer | Philip Kaludercic | 2021-06-15 23:44:56 +0200 |
| commit | b5d935bb7f5a37ddeba5bf9971d5aaec9a0698c2 (patch) | |
| tree | e479bf53a49dd3ac770ba30014d07d3552fd72d9 | |
| parent | 7e5360f32203ad7536dafd000938abd621bd0a2e (diff) | |
| download | emacs-b5d935bb7f5a37ddeba5bf9971d5aaec9a0698c2.tar.gz emacs-b5d935bb7f5a37ddeba5bf9971d5aaec9a0698c2.zip | |
Fix edge case with single argument for rcirc-define-command
* rcirc.el (rcirc-define-command): Update regular expression generator
| -rw-r--r-- | lisp/net/rcirc.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 4d98d65d58a..d4f0ccd47cd 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -2403,12 +2403,12 @@ that, an interactive form can specified." | |||
| 2403 | (insert "\\`") | 2403 | (insert "\\`") |
| 2404 | (when arguments | 2404 | (when arguments |
| 2405 | (dotimes (_ (1- (length arguments))) | 2405 | (dotimes (_ (1- (length arguments))) |
| 2406 | (insert "\\(?:\\(.+?\\)")) | 2406 | (insert "\\(?:\\(.+?\\)[[:space:]]+")) |
| 2407 | (insert "\\(?:[[:space:]]+\\(.*\\)\\)") | ||
| 2408 | (dotimes (i (1- (length arguments))) | 2407 | (dotimes (i (1- (length arguments))) |
| 2409 | (when (< i optional) | 2408 | (if (< i optional) |
| 2410 | (insert "?")) | 2409 | (insert "\\)?") |
| 2411 | (insert "\\)"))) | 2410 | (insert "\\)")))) |
| 2411 | (insert "\\(.*?\\)") | ||
| 2412 | (insert "[[:space:]]*\\'") | 2412 | (insert "[[:space:]]*\\'") |
| 2413 | (buffer-string))) | 2413 | (buffer-string))) |
| 2414 | (argument (gensym)) | 2414 | (argument (gensym)) |