-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Anzu's counter is case insensitive even if isearch is case sensitive #93
Comments
I have sent PR #102 |
It's not fixed, at least for me. I had fixed it by replacing the original definition of
and by adding
I don't understand the original
As far as I understand, it only returns nil if there are uppercase letters in I've made a pull request (#104) but please bear with me, it's my first pull request and I'm not an experienced Elisp programmer. Notice that my proposed solution still has the problem that the counter is not updated right after typing |
Thanks for providing this. I'm reopening to take a closer look why this isn't fixed for you. |
Documenting here the behavior I see in Emacs 25.3 or Emacs 27.0.90. Is this what you see? With a buffer containing:
Tests:
In summary I would there is some inconsistency in the isearch system but anzu seems to be fumbling the |
Yes, I see the same behaviour. Anyway, I'm using Emacs 26.3 now. In particular, with a buffer containing
(so as to have many possible matches), perform an
After applying #104 all your tests give the same results, as do my first two tests. If you try my last test: |
Same here, except on Emacs 27.0.90 your second bullet ( Have you tested anzu's query-replace functionality with PR #104 applied? |
Did you backspace after having inserted the space? My tests above were meant to be done each after having repeated the first part (
I just did these tests with the buffer containing With
With these two tests, if I repeat the command using the default replacement that Emacs offers (i.e. I do
then do, in sequence,
This last bug has proved rather hard to reproduce consistently. If I run all the other tests, including those with With
In each of the last two cases, if I repeat the replacement accepting Emacs' suggestion, Anzu counts 6 replacements even thogh there are actually 3 to be done (bug 3). This too doesn't always reproduce, but I got it consistently after having done the previous tests. The unpatched Anzu doesn't seem to suffer from this bug. In each case I tried to keep the descriptions simple but some of these are subtle sneaky bugs. If you need me to clarify something just ask. I'm sorry but I don't have the time to review #104 myself these days. |
Ok, thank you. I’ll keep this open until I have a chance to get back to that PR. |
fix the displayed counter to follow the case-sensitivity toggle more accurately Fix issue #93
I've merged this fix. We can document the subtle bugs that remain and handle separately. |
I reverted that merge because it broke the build for all Emacs versions > 25. |
And now I've reapplied that fix correctly. Sorry about all the back and forth. |
You only left out the For me removing that line cancels the fix for Isearch: if I type |
It was failing in circleci in the bytecompiler, and the error was wrong number of arguments to the inlined function. The whole thing took me by surprise -- I used git to merge the pull request but it presented a merge conflict (in the web ui) and I wasn't careful enough when reviewing that. At any rate it should be correct now. |
Is it fixed for you? Btw, my version, based on the latest one from MELPA but including |
Ok - I overlooked that change somehow, so I'll put that line back in as well. Seems unrelated to the bytecompile issue fixed earlier (which was the result of the blown merge). Sorry! let's get this one PR fixed up, and then create new tickets for the new bugs documented in testing above. |
Overlooked this change in the sequence of merge/revert/re-apply
Hello. In a buffer containing
if I do
C-s M-c anzu
isearch fails but Anzu counts one match (the counter is(0/1)
). I use Anzu 0.62 on Emacs 25.2; my set-up for Anzu isThe text was updated successfully, but these errors were encountered: