From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: grep-command: Ignore case if case-fold-search is non-nil Date: Sun, 18 Sep 2016 10:55:49 -0700 (PDT) Message-ID: <2bf761e1-509f-4194-a7f3-01c2164e16c0@default> References: 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 1474221429 16618 195.159.176.226 (18 Sep 2016 17:57:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2016 17:57:09 +0000 (UTC) Cc: Emacs developers To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 18 19:57:00 2016 Return-path: Envelope-to: ged-emacs-devel@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 1blgKl-0002jf-TI for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2016 19:56:56 +0200 Original-Received: from localhost ([::1]:51063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blgKk-0001VA-7d for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2016 13:56:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blgJr-000122-C7 for emacs-devel@gnu.org; Sun, 18 Sep 2016 13:56:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blgJl-0006w2-Da for emacs-devel@gnu.org; Sun, 18 Sep 2016 13:55:58 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:44535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blgJl-0006vb-4i for emacs-devel@gnu.org; Sun, 18 Sep 2016 13:55:53 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8IHtogs023448 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 18 Sep 2016 17:55:51 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u8IHtooL015252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 18 Sep 2016 17:55:50 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u8IHtodq012451; Sun, 18 Sep 2016 17:55:50 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207573 Archived-At: > > Just because you might want to search the current buffer > > case-(in)sensitively, that in no way implies that you want to > > search a set of files somewhere the same way. > > > > `grep' is an external command. It is not about acting (e.g., > > searching) buffers within Emacs. > Ok, let me change my question. >=20 > Should `grep' family of commands in Emacs pass '-i' as default, > regardless of the `case-fold-search' value in current buffer, > if the user didn't customize `grep-command'? That's a better question. I don't see why it should, but it's a fair question. The real point, I think, is that users can get their preferred default behavior by customizing `grep-command'. What the default value of that option is, is a secondary consideration. What's the argument for changing to -i for the default?