Fix error when opening REPL from unsupported mode

"Wrong number of arguments: (_mode fn . plist), 0"
This commit is contained in:
Andrew Whatson 2020-06-19 14:24:09 +10:00
parent 444fea7c22
commit 59c5aaad8d

View file

@ -51,7 +51,7 @@
(defun +eval-open-repl (prompt-p &optional displayfn)
(cl-destructuring-bind (_mode fn . plist)
(or (assq major-mode +eval-repls)
(list))
(list nil nil))
(when (or (not fn) prompt-p)
(let* ((choices (or (cl-loop for sym being the symbols
for sym-name = (symbol-name sym)