ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Disabling the SPC binding in minibuffer #471

Closed xsrvmy closed 3 years ago

xsrvmy commented 6 years ago

ErgoEmacs appears to add a really annoying space key binding in the minibuffer, so a literal space in a filename has to be entered via Ctrl-Q Space. Is there a toggle to disable that? (I'm new to emacs.)

mattfidler commented 6 years ago

I do not have that issue. With emacs and ergoemacs enabled I can insert a space with space when opening a file. If you use something like ido or helm, this is not the case.

On Fri, Nov 24, 2017, 8:41 PM xsrvmy notifications@github.com wrote:

ErgoEmacs appears to add a really annoying space key binding in the minibuffer, so a literal space in a filename has to be entered via Ctrl-Q Space. Is there a toggle to disable that? (I'm new to emacs.)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ergoemacs/ergoemacs-mode/issues/471, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfa2jGjgCezkj57fx5H4WeBtXenJ-Drks5s535ugaJpZM4QqSDW .

xsrvmy commented 6 years ago

Here is the beginning of the output of Ctrl-H K SPC in the minibuffer:

SPC runs the command minibuffer-complete-word (found in ergoemacs--original-local-map), which is an interactive compiled Lisp function in ‘minibuffer.el’.

It would appear that ergoemacs is the cause of the issue here.

mattfidler commented 6 years ago

No. The original local map is a copy of the original emacs keybindings. I believe that emacs itself binds space. In theory, space should be the right binding in certain circumstances.

If this is the case, you can see which keymaps bind space in minibuffer and then undefined them.

On Sat, Nov 25, 2017, 12:51 AM xsrvmy notifications@github.com wrote:

Here is the beginning of the output of Ctrl-H K SPC in the minibuffer:

SPC runs the command minibuffer-complete-word (found in ergoemacs--original-local-map), which is an interactive compiled Lisp function in ‘minibuffer.el’.

It would appear that ergoemacs is the cause of the issue here.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ergoemacs/ergoemacs-mode/issues/471#issuecomment-346922897, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfa2oBC4DRqZ6cnP_eWu8BoB2hkVLV4ks5s57kNgaJpZM4QqSDW .

mattfidler commented 6 years ago

The space binding is described here

https://www.gnu.org/software/emacs/manual/html_node/emacs/Completion-Commands.html#Completion-Commands

On Sat, Nov 25, 2017, 9:04 AM Matthew Fidler matthew.fidler@gmail.com wrote:

No. The original local map is a copy of the original emacs keybindings. I believe that emacs itself binds space. In theory, space should be the right binding in certain circumstances.

If this is the case, you can see which keymaps bind space in minibuffer and then undefined them.

On Sat, Nov 25, 2017, 12:51 AM xsrvmy notifications@github.com wrote:

Here is the beginning of the output of Ctrl-H K SPC in the minibuffer:

SPC runs the command minibuffer-complete-word (found in ergoemacs--original-local-map), which is an interactive compiled Lisp function in ‘minibuffer.el’.

It would appear that ergoemacs is the cause of the issue here.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ergoemacs/ergoemacs-mode/issues/471#issuecomment-346922897, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfa2oBC4DRqZ6cnP_eWu8BoB2hkVLV4ks5s57kNgaJpZM4QqSDW .

mattfidler commented 6 years ago

If you are indeed completing file names, please give a bit more information, like emacs version, ergoemacs version, platform, so I might be able to reproduce it.

wlandry commented 4 years ago

I can see this same problem, where SPC is completing in the minibuffer.

I am running Emacs 26.1 on Debian buster. Starting emacs with emacs -Q and then running find-file, I do not get SPC completing. Evaluating the following in *scratch*

(add-to-list 'load-path "/home/boo/ergoemacs-mode/")
(require 'ergoemacs-mode)

(setq ergoemacs-theme nil)
(setq ergoemacs-keyboard-layout "us")
(ergoemacs-mode 1)

where /home/boo/ergoemacs-mode has the current version in git

8a65bf2ffb4698f1848070cc84ecaf87d891d850

I get the erroneous SPC completion in the minibuffer. Otherwise, ergoemacs seems to be working.

wlandry commented 4 years ago

I also see this behavior with Emacs 27 on a Mac using the latest version from melpa.