unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: ynyaaa@gmail.com
Cc: 26580@debbugs.gnu.org, Juri Linkov <juri@linkov.net>,
	tino.calancha@gmail.com
Subject: bug#26580: 25.1; inappropriate case folding while isearch-forward-regexp
Date: Fri, 21 Apr 2017 12:40:50 +0900	[thread overview]
Message-ID: <87pog6bf7h.fsf@calancha-pc> (raw)
In-Reply-To: <87fuh3t140.fsf@gmail.com> (ynyaaa's message of "Fri, 21 Apr 2017 02:55:43 +0900")

ynyaaa@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





  reply	other threads:[~2017-04-21  3:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-20 17:55 bug#26580: 25.1; inappropriate case folding while isearch-forward-regexp ynyaaa
2017-04-21  3:40 ` Tino Calancha [this message]
2017-04-21  9:22   ` Andreas Schwab
2017-04-21  9:50     ` Tino Calancha
2017-04-21 12:04       ` Andreas Schwab
2017-04-21 12:16         ` Tino Calancha
2017-04-21 13:26           ` Eli Zaretskii
2017-04-21 14:59             ` Tino Calancha
2017-04-21 13:31           ` Andreas Schwab
2017-04-21 15:17             ` Tino Calancha
2017-04-21 17:42               ` Andreas Schwab
2017-04-25 20:57               ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pog6bf7h.fsf@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=26580@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=ynyaaa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).