-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evil search bug breaks Spacemacs #10410
Comments
I can't reproduce. But if you think you can reliably reproduce the error, file an issue upstream with evil. |
I'm able to reproduce it:
now Switching back to the minibuffer I'm unable to make the issue permanent by deleting a buffer, and confirming the search term. After deleting the buffer and confirming the search, then the messages buffer shows:
System Info 💻
(autohotkey helm emacs-lisp git org spell-checking treemacs version-control)
|
@duianto What should I do? File an issue with evil? |
It doesn't seem to be an evil issue, because when I start Emacs, and just load This is how I only loaded the evil package.
|
@duianto any idea what’s wrong? |
The evil package adds an
I don't know what/if Spacemacs does something to negate the |
I've been having this issue for months and could never find out how I triggered it. I always restarted to fix it but it's good to know that I can exit the mini buffer instead. |
could we just add that hook back? |
I've also been running into this recently using develop, emacs 27, and
darwin a lot when having to CTRL-G CTRL-G searches in large files, but
never could figure out reproduction steps.
It's possible i could have changed focus and inadvertently followed these
reproduction steps.
I recently disabled bidi-reordering though and come to think of it i didn't
encounter this issue before disabling it.
Can anyone see if bidi reordering matters here? I'll also test tomorrow.
…On Mar 8, 2018 11:33 AM, "Troy Hinckley" ***@***.***> wrote:
could we just add that hook back?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10410 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANyN6xDLm40yTAOtf4SBRc04HcGCmAVks5tcWttgaJpZM4SXl_P>
.
|
@codygman I have never heard of bidi-reordering and so I shouldn't have disabled it in my setup. |
I have found a workaround! Just set the evil-search-module to its default, 'isearch'. This might be a bug in evil itself, not in Spacemacs. @duianto Can you check if the bug exists with just evil loaded? |
Changing the In Spacemacs, the With just Emacs and evil (as described in comment: #10410 (comment)), the |
@duianto That's strange! My Emacs behaves just as #10410 (comment) when I have the module set to 'isearch', and when I change it to evil's internal search, the bug reappears for me. |
@codygman @carloscheddar @CeleritasCelery Can you check this variable? #10410 (comment) |
I also have this issue, but can't find where I should set the |
@davidpasztor Do |
@davidpasztor Please provide feedback, if this works, we'll need to put it in Spacemacs itself. |
@NightMachinary thanks for your help, I put that in my user-config, then reload my spacemacs, but the issue still persists :( |
@davidpasztor Try using customize? I personally haven't tried `setq`. Some things only
work with customize.
|
@NightMachinary sadly customize didn't help either |
I found a temporary fix by adding these line in my .spacemacs file (defun kill-minibuffer ()
(interactive)
(when (windowp (active-minibuffer-window))
(evil-ex-search-exit)))
(add-hook 'mouse-leave-buffer-hook #'kill-minibuffer) edited by @syl20bnr to format the code snippet correctly |
@larebsyed I edited your post to better format the code snippet. |
Any updates on this? Should the temporary fix be incorporated in the latest branch? |
This is the most annoying thing ever but TIL you can just do |
@NightMachinary You seem to be right. The issue also occurs without Spacemacs (just Emacs and https://github.com/emacs-evil/evil), when: (setq evil-search-module 'evil-search) is defined in (require 'evil)
(evil-mode 1) In SpacemacsI retested adding: (setq evil-search-module 'evil-search) to either the user-init or user-config sections, but the issue still occurs. However the issue stops happening when: (As you said in a later comment: #10410 (comment) ☝️) |
@duianto What is very weird is that I regularly lose my customized settings. I don’t know exactly how it happens, but every once in a while I notice something I had customized has reset. That’s why I’ve been avoiding customizing settings and use direct setq commands. |
There's an issue about customizations here: It's marked as Maybe there's some side case that the fix didn't catch. You could post a comment there that your still losing customizations. |
@duianto I don't know when exactly was the last time I lost a customization. I noticed this one because it causes an annoying bug when using the mouse with evil search, but it's possible that the lost was for before the bug got fixed. I'll be sure to comment if I notice a new customization resetting though. |
@NightMachinary Could you try reproducing this on current |
@allentiak I have switched to Doom, and have workarounds in my Spacemacs config regardless. Feel free to close the issue, someone will just comment if the issue still persists. |
@duianto It seems this one can be safely closed :-) |
Instead of closing this, let's fix it 😄 A PR has been opened upstream: |
Cool! |
I can confirm that the issue still exists for me on the develop branch. The mini-buffer will stick with the search term, and while it is stuck, typing c or d will delete the entire line. Once the mini-buffer is closed using |
This works for me. Thanks! |
@duianto |
problem Evil search bug breaks Spacemacs syl20bnr#10410 syl20bnr#10410 Multiple evil bindings break: when a evil search prompt is active: / or ? and a window is selected with the mouse. notes This fix can be removed when/if the pending upstream PR is merged: Exit search prompt on mouse leave minibuffer emacs-evil/evil#1330
A PR with a possible fix has been opened: |
Just merged the fix and updating the label to 'Fixed in develop' now. |
closing since it's fixed in upstream. |
Description
Evil search bug.
Reproduction guide 🪲 Observed behaviour: 👀 💔
Expected behaviour: ❤️ 😄
The search should be canceled when the minibuffer loses focus.
System Info 💻
The text was updated successfully, but these errors were encountered: