From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26580: 25.1; inappropriate case folding while isearch-forward-regexp Date: Fri, 21 Apr 2017 12:40:50 +0900 Message-ID: <87pog6bf7h.fsf@calancha-pc> References: <87fuh3t140.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1492746138 14261 195.159.176.226 (21 Apr 2017 03:42:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2017 03:42:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26580@debbugs.gnu.org, Juri Linkov , tino.calancha@gmail.com To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 21 05:42:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1PSU-0003Tg-4m for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Apr 2017 05:42:10 +0200 Original-Received: from localhost ([::1]:56923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1PSY-000295-CE for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Apr 2017 23:42:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1PSQ-00028k-KA for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 23:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1PSM-0006yC-N1 for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 23:42:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1PSM-0006y1-If for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 23:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d1PSM-0006y7-CH for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 23:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Apr 2017 03:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26580-submit@debbugs.gnu.org id=B26580.149274606326699 (code B ref 26580); Fri, 21 Apr 2017 03:42:02 +0000 Original-Received: (at 26580) by debbugs.gnu.org; 21 Apr 2017 03:41:03 +0000 Original-Received: from localhost ([127.0.0.1]:59595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1PRP-0006wY-7P for submit@debbugs.gnu.org; Thu, 20 Apr 2017 23:41:03 -0400 Original-Received: from mail-io0-f195.google.com ([209.85.223.195]:35870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1PRN-0006ve-M0 for 26580@debbugs.gnu.org; Thu, 20 Apr 2017 23:41:01 -0400 Original-Received: by mail-io0-f195.google.com with SMTP id x86so24965319ioe.3 for <26580@debbugs.gnu.org>; Thu, 20 Apr 2017 20:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=NLYLcQhKnEotOe5aRUOVQ9zv4h7dquNwNMOtG3TgYkc=; b=BcQvkOjlIaqqdG+Ja8q1WgeuU6KklUSH9VVJAwPX/nDfjYhsss8/FUZYpuTSaXM4Am haubd0Aat+IeyRLkEWeoccmENBY26JesKi9pR/VCsBDD7E4ZWsGMuOsx3C7CeUozDRsS 3t5DlV76+99nyeEniUjW8GFtyIAJ6pjbi6eyZSK1tsmeiVfbR2XUZipXTZZmu8yEIV7Z 0NNP7UubryWBApI4mm26tgEKKbaVdM+c/B5N8wHZvqfqt8HANFwn5OYtPWSHdqkfRk/0 EnbekrVYn482YVUy7HAHJttCaY2kPEnpX4wO00r4RQQGEryZDSr3RKxn64xMIr7hLx97 pDCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=NLYLcQhKnEotOe5aRUOVQ9zv4h7dquNwNMOtG3TgYkc=; b=Gu3bKHeInxjS04r7wfR82CbzjoSeXvdSgsnT37hTCVmQ9EjckEZ9wa+kpNlhmyKI9z ZkiKObgLKqd8qhnj9szEsEpxWzahDW+vDFVmpGgZa0LHM39M7KGrcGZ2wXqbhC5fy1V6 c5kUJWEICpJuTQjZkFo1ZGe1PMERtyR4WsqZvxuzwrRizFTu+ozbnhwothS9k+oMzOMb qwOgRdI72ubAFgpdwysUItOh9W+A6/R66T9XxiZuaAm28yJ3V3J+m4a3ncE5yyYKFiSF H57qxxJxw+elUOdQlsE/0ZpR+gVZRmmWDtYUS/ivFZyDsqXhfB7Kklo+DDFmRlm/NZrT p6LA== X-Gm-Message-State: AN3rC/4vmjlhebN3L8G2ZTcYLO4EANsMOllfUAwg4wRP5U0PJ55is4M5 /+yNZeLKdMay3g== X-Received: by 10.99.99.2 with SMTP id x2mr10111179pgb.46.1492746056287; Thu, 20 Apr 2017 20:40:56 -0700 (PDT) Original-Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id e13sm12861731pfb.30.2017.04.20.20.40.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Apr 2017 20:40:55 -0700 (PDT) In-Reply-To: <87fuh3t140.fsf@gmail.com> (ynyaaa's message of "Fri, 21 Apr 2017 02:55:43 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131811 Archived-At: 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 =E4=B8=80a, but does not match =E4=B8=80A. 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 inst= ance, if you don't escape 'A' in the first example, then the search will match ju= st '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 =E4=B8=80a, and =E4=B8=80A. 'M-C-s \ccA' just matches =E4=B8=80A. 'M-C-s \cCA' just matches =E4=B8=80A. 'M-C-s \cCa' just matches =E4=B8=80a. 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 =E4=B8=80a, and =E4=B8=80A. Regards, Tino