emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 208/287: Fix helm-M-x keys again.


From: Matthew Fidler
Subject: [elpa] 208/287: Fix helm-M-x keys again.
Date: Wed, 02 Jul 2014 14:46:02 +0000

mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.

commit 6135107d15c9665b6a3fbda24180e443ae724de1
Author: Matthew L. Fidler <address@hidden>
Date:   Tue Jun 24 09:32:05 2014 -0500

    Fix helm-M-x keys again.
---
 ergoemacs-advices.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ergoemacs-advices.el b/ergoemacs-advices.el
index d050fae..dcf8ea7 100644
--- a/ergoemacs-advices.el
+++ b/ergoemacs-advices.el
@@ -112,7 +112,7 @@ Also adds keymap-flag for user-defined keys run with 
`run-mode-hooks'."
 
 (eval-after-load "helm"
   '(progn
-     (defadvice helm-M-x (around ergoemacs-helm-M-x-keys activate)
+     (defadvice helm-M-x-transformer (around ergoemacs-helm-M-x-transformer 
activate)
        "Make ``helm-M-x' work correctly with `ergoemacs-mode' pretty keys"
        (let ((ergoemacs-use-M-x-p t))
          ad-do-it))))
@@ -352,7 +352,7 @@ Actual substitute-command-keys is always in 
`ergoemacs-real-substitute-command-k
             (replace-match "" t t)
             (re-search-forward "\\=\\\\=" nil t))
           (goto-char (point-min))
-          (while (re-search-forward "\\(\\<M-x\\|<execute>\\) " nil t)
+          (while (and (not ergoemacs-use-M-x-p) (re-search-forward 
"\\(\\<M-x\\|<execute>\\) " nil t))
             (replace-match (ergoemacs-substitute-command 
"\\[execute-extended-command] " "\\<global-map>") t t))
           (setq ret (buffer-string))))
       ret)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]