GNU bug report logs -
#26580
25.1; inappropriate case folding while isearch-forward-regexp
Previous Next
Reported by: ynyaaa <at> gmail.com
Date: Thu, 20 Apr 2017 17:57:02 UTC
Severity: normal
Found in version 25.1
Full log
Message #8 received at 26580 <at> debbugs.gnu.org (full text, mbox):
ynyaaa <at> gmail.com writes:
> 'M-C-s \A' matches both lower letter a and upper letter A.
> 'M-C-s [\A]' matches \ and lower letter a and upper letter A.
> 'M-C-s \cCa' matches 一a, but does not match 一A.
Thanks for the report. I guess this is a feature.
A capital letter triggers a case sensitive search. In your last example,
upper letter C turned on the case sensitive search. It might be argue
if that should happen in this case. I think the current way is handy.
Maybe we should mention about this in the `isearch-forward' docstring.
In the former examples the slash somehow prevents this to happen. For instance,
if you don't escape 'A' in the first example, then the search will match just 'A'.
Try the following:
'M-C-s A' matches upper letter A.
'M-C-s [a\]' matches \ and lower letter a and upper letter A.
'M-C-s [A\]' matches \ and upper letter A.
'M-C-s \cca' matches 一a, and 一A.
'M-C-s \ccA' just matches 一A.
'M-C-s \cCA' just matches 一A.
'M-C-s \cCa' just matches 一a.
Of couse, you always can toggle the case sensitivity during
those searches with M-c:
'M-C-s A M-c' matches both lower letter a and upper letter A.
'M-C-s \cCa M-c' matches 一a, and 一A.
Regards,
Tino
This bug report was last modified 8 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.