branch: elpa/helm
commit 7634902a5f7cb3a2b081721b06fe1355e58f94f7
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Fix issue #2719 Emacs-27 compat
    
    local-minor-modes not available in emacs before 28.1.
---
 helm-command.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helm-command.el b/helm-command.el
index ae276a13b5..66ab479151 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -445,7 +445,8 @@ You can get help on each command by persistent action."
      (list current-prefix-arg)))
   (if (or defining-kbd-macro executing-kbd-macro)
       (helm-M-x--vanilla-M-x)
-    (let ((lmm-modes (buffer-local-value 'local-minor-modes (current-buffer)))
+    (let ((lmm-modes (and (boundp 'local-minor-modes) ; Only 28+ (issue#2719)
+                          (buffer-local-value 'local-minor-modes 
(current-buffer))))
           (mj-mode major-mode))
       (helm-M-x-read-extended-command
        obarray (if (and (fboundp 'command-modes)

Reply via email to