-
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
Find and replace not working in split frame in branch develop (but fine in master) #9700
Comments
I used to run into this, too, though I never quite made the connection with splits. |
Any idea what changed? It's still not working for me on most recent emacs (Ubuntu; elisp-ppa) and spacemacs develop. |
Still doesn't work for me. Am I the only one? |
No, this has been happening to me lately as well, on Emacs 26 (GTK) + Spacemacs develop (on Ubuntu). It's pretty annoying, since I usually prefer emacs-style interactive replace. I didn't realise it works on a single-window frame until I read your comment, though. That makes things easier, at least. It seems to work on terminal emacs, though. |
Wow, I also ran into this problem but never realized it was because of split frame. How did you find out? |
Issue persists on the development branch. I too am using Emacs 26. |
Problem also happens on MacOS with Emacs-pretest-26.1-rc1-universal.dmg |
mmmh this is weird that it is only a bug on develop, the stack shows nothing that could come from spacemacs. Looks like an Emacs bug, to be sure can you reproduce it with |
@syl20bnr I tested with |
and using evil seems to be no problem at all by doing |
and seems you can do query replace in the newly splitted frame, but not the previous one. Is it because something happens during splitting? |
I debug it and found the culprit but I have no idea how to fix it, the issue is this line: https://github.com/emacs-mirror/emacs/blob/8a6521260dc650b4b713ea8bc71348cbe730f6e4/lisp/isearch.el#L3213
which causes a redisplay. if I pass It's from a commit 18 year ago :-) I let you guys continue on this one with this info. I hope you'll find the culprit. |
|
I suggested the following workaround in #10938: (setq frame-title-format nil) It looks like the issue has been reported upstream as https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31586. |
This works around an issue in Emacs which args-out-or-range errors when trying to query-replace in frames which are split vertically or horizontally. See syl20bnr#9700 and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31586
I have submitted a pull request which fixes this issue: #11519 |
This works around an issue in Emacs which args-out-or-range errors when trying to query-replace in frames which are split vertically or horizontally. See #9700 and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31586
The PR was merged into |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
Find and replace (M-%) does not work in a frame which has been split vertically or horizontally on develop
Reproduction guide 🪲
Observed behaviour: 👀 💔
Cursor moves to end of first find result, then throws error in minibuffer,
Expected behaviour: ❤️ 😄
Found string marked, usual options to replace or skip appear
System Info 💻
nil
Not sure what happened here, but this is happening with many layers installed, and on a fresh .spacemacs file, too
Backtrace 🐾
The text was updated successfully, but these errors were encountered: