-
Notifications
You must be signed in to change notification settings - Fork 22
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
exit-minibuffer does not work when window is split #81
Comments
I'm having same problem; super frustrating -- couldn't figure out why it happens sometimes and not others. Splitting the screen seems like the trigger. I rolled back to 1.1 which works |
I've been experiencing this but I found something even funnier. Let's say we have the screen split in Left and Right and we have 2 buffers A and B:
The same goes for any combination of horizontal and vertical splits. The search only works in the very last window or in any other window displaying the same buffer as the last window. |
I believe you can workaround this by ignoring the |
Thank you for the work-around, this was really bothering me for quite some time! |
Huh, this is very odd. I don't think I've ever experienced this, which surprises me. I wonder if there is something in my configuration that happens to inhibit the problem by chance? I'm also confused that rolling back to release 1.1 of CTRLF would fix the problem, since according to the changelog there weren't any changes related to point or window scroll positions. Apparently, there is something there though. |
FWIW I had this issue, #81 (comment) fixed it for me. But now I can't replicate the issue at all, so I'm not sure what happened. |
I think it could have to do with this expression in
Since the function is added to the |
If I put a debug statement into that function, |
I can't really seem to find why issue occurs. When I use edebug it does return as nil; and I am certain that the Do you not experience the issue at all? fwiw I'm using this pgtk+native-comp emacs branch, version info below. But this had occurred in the standard native-comp branch as well. GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.17.4) of 2021-02-12 |
Well, if you're using edebug, then your UI commands are actively screwing with the window state while the code is executing, so you should expect some different results. Yes, for whatever reason I've never experienced this issue to my knowledge. I couldn't say why. I've had a perhaps similar problem #6 in the past, but I think it is unrelated to this. My version info at present:
(Although I've run Emacs 27 and 28 in the past with CTRLF, and haven't seen any difference in functionality.) When you comment out the |
When commented out it functions as expected for all actions,
I imagine you are right and this is the case. I did a cursory search for commits since the middle of Jan that reference scroll or window positioning but couldn't find anything relevant. |
Well, I'm using Emacs 26.3 now, and things seem to work without that hack, so I'll remove it. For future reference, it was added in 03599db. |
I'm on gccemacs da4da88c76465e30ce974383b182f191553b470a from 2021-02-21 and the latest version of ctrlf also works fine for me. Gonna close this issue now. Thanks @raxod502! |
Steps to reproduce
C-x 2
orC-x 3
RET
to exit searchingExpected behavior
Point in the current window should stay at the thing I've been searching.
Current behavior
Point jumps back to the position where point is on the other window.
The text was updated successfully, but these errors were encountered: