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

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

[elpa] externals/ergoemacs-mode 2091646 65/87: Merge pull request #497 f


From: Stefan Monnier
Subject: [elpa] externals/ergoemacs-mode 2091646 65/87: Merge pull request #497 from wlandry/space_in_filenames
Date: Wed, 14 Apr 2021 18:47:09 -0400 (EDT)

branch: externals/ergoemacs-mode
commit 2091646676a31043512e4924f08aa68015190a70
Merge: f5aa0f7 10007d2
Author: Matthew Fidler <matthew.fidler@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #497 from wlandry/space_in_filenames
    
    Preserve the behavior of 'space' when rebinding inside a minibuffer
---
 ergoemacs-map.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ergoemacs-map.el b/ergoemacs-map.el
index 15a1040..1e758cd 100644
--- a/ergoemacs-map.el
+++ b/ergoemacs-map.el
@@ -1023,7 +1023,12 @@ When INI is non-nil, add conditional maps to 
`minor-mode-map-alist'."
         (use-local-map (ergoemacs current-local-map))
         (setq ergoemacs-map--breadcrumb ""))
        (when (and (minibufferp) ergoemacs-read-from-minibuffer-map)
-        (use-local-map (ergoemacs ergoemacs-read-from-minibuffer-map))
+         ;; Preserve bindings for space, such as when completing a filename
+         (if (and (equal (key-binding " ") 'self-insert-command))
+             (use-local-map (list 'keymap
+                                  '(32 . self-insert-command) ;; space==32
+                                  (ergoemacs 
ergoemacs-read-from-minibuffer-map)))
+           (use-local-map (ergoemacs ergoemacs-read-from-minibuffer-map)))
         (setq ergoemacs-read-from-minibuffer-map nil
               ergoemacs-map--breadcrumb ""))
        ;; Run deferred "hooks"



reply via email to

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