Skip to content

Commit a4e82db

Browse files
Fix M-x pred for history source
Candidates in history are strings.
1 parent 7ba3a12 commit a4e82db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

helm-command.el

+4-3
Original file line numberDiff line numberDiff line change
@@ -412,11 +412,12 @@ Save COMMAND to `extended-command-history'."
412412
(helm-mode 1))
413413
(read-extended-command)))))
414414

415-
(defun helm-M-x--mode-predicate (sym mj-mode lmm-modes)
416-
"Check if symbol SYM is suitable for current buffer.
415+
(defun helm-M-x--mode-predicate (symbol mj-mode lmm-modes)
416+
"Check if SYMBOL is suitable for current buffer.
417417
MJ-MODE is used to pass major-mode and LMM-MODES to pass local-minor-modes.
418418
This predicate honors commands defined with the `interactive' MODES argument."
419-
(let ((modes (command-modes sym)))
419+
(let* ((sym (helm-symbolify symbol))
420+
(modes (command-modes sym)))
420421
(and (commandp sym)
421422
(if modes
422423
(or (memq mj-mode modes)

0 commit comments

Comments
 (0)