We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ba3a12 commit a4e82dbCopy full SHA for a4e82db
helm-command.el
@@ -412,11 +412,12 @@ Save COMMAND to `extended-command-history'."
412
(helm-mode 1))
413
(read-extended-command)))))
414
415
-(defun helm-M-x--mode-predicate (sym mj-mode lmm-modes)
416
- "Check if symbol SYM is suitable for current buffer.
+(defun helm-M-x--mode-predicate (symbol mj-mode lmm-modes)
+ "Check if SYMBOL is suitable for current buffer.
417
MJ-MODE is used to pass major-mode and LMM-MODES to pass local-minor-modes.
418
This predicate honors commands defined with the `interactive' MODES argument."
419
- (let ((modes (command-modes sym)))
+ (let* ((sym (helm-symbolify symbol))
420
+ (modes (command-modes sym)))
421
(and (commandp sym)
422
(if modes
423
(or (memq mj-mode modes)
0 commit comments