diff options
author | Mikael Djurfeldt <mikael@djurfeldt.com> | 2021-04-01 20:56:22 +0200 |
---|---|---|
committer | Mikael Djurfeldt <mikael@djurfeldt.com> | 2021-04-01 20:56:22 +0200 |
commit | 01bfd18f3dad37ba5d4d7730a17895b637fd455c (patch) | |
tree | 66c667fbba45f96b7c584f0fd9eba65aafe2a4db /module/language/elisp/compile-tree-il.scm | |
parent | 498564e3e3698565ed5e7697096dd57829d4b686 (diff) | |
download | guile-01bfd18f3dad37ba5d4d7730a17895b637fd455c.tar.gz |
Fix handling of parameter lists to elisp defun to allow nil.
Thanks to Vasilij Schneidermann.
Diffstat (limited to 'module/language/elisp/compile-tree-il.scm')
-rw-r--r-- | module/language/elisp/compile-tree-il.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/language/elisp/compile-tree-il.scm b/module/language/elisp/compile-tree-il.scm index 0334e6f33..adbeb2005 100644 --- a/module/language/elisp/compile-tree-il.scm +++ b/module/language/elisp/compile-tree-il.scm @@ -259,6 +259,7 @@ (define (%match lst null optional rest symbol) (pmatch lst (() (null)) + (nil (null)) ((&optional . ,tail) (optional tail)) ((&rest . ,tail) (rest tail)) ((,arg . ,tail) (guard (symbol? arg)) (symbol arg tail)) |