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

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

[elpa] 71/287: Fix isearch issues.


From: Matthew Fidler
Subject: [elpa] 71/287: Fix isearch issues.
Date: Wed, 02 Jul 2014 14:44:43 +0000

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

commit d9b2f499806e3a1f9c55f9300e75d775874cb893
Author: Matthew L. Fidler <address@hidden>
Date:   Wed Jun 11 13:00:27 2014 -0500

    Fix isearch issues.
---
 ergoemacs-theme-engine.el |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index 2fd1a39..7632158 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -1141,10 +1141,22 @@ FULL-SHORTCUT-MAP-P "
                   (setq n-map (copy-keymap map))
                   (ergoemacs-theme--install-shortcuts-list
                    shortcut-list n-map o-map full-map)
-                  (set map-name (copy-keymap
-                                 (make-composed-keymap
-                                  n-map
-                                  o-map)))))
+                  (cond
+                   ((ignore-errors
+                          (and (eq (nth 0 (nth 1 n-map)) 'keymap)
+                               (not (keymap-parent n-map))))
+                    (pop n-map)
+                    ;; (push (make-sparse-keymap "ergoemacs-modified") n-map)
+                    )
+                   (t
+                    ;; (setq n-map (list (make-sparse-keymap 
"ergoemacs-modified") n-map))
+                    ))
+                  (setq n-map (copy-keymap
+                               (make-composed-keymap
+                                n-map
+                                o-map)))
+                  (define-key n-map [ergoemacs] 'ignore)
+                  (set map-name n-map)))
                (t ;; Maps that are not modified.
                 (unless remove-p
                   (message "Setup %s"  hook)
@@ -1290,7 +1302,7 @@ The actual keymap changes are included in 
`ergoemacs-emulation-mode-map-alist'."
 (defun ergoemacs-get-fixed-map--composite (map-list)
   (or (and map-list
            (or (and (= 1 (length map-list)) (nth 0 map-list))
-               (make-composed-keymap (reverse map-list))))
+               (make-composed-keymap map-list)))
       (make-sparse-keymap)))
 
 (defmethod ergoemacs-get-fixed-map ((obj ergoemacs-theme-component-map-list) 
&optional keymap layout)



reply via email to

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