From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: grep-command: Ignore case if case-fold-search is non-nil Date: Mon, 19 Sep 2016 00:10:22 +0900 (JST) Message-ID: References: <83intti7wl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1474211485 9185 195.159.176.226 (18 Sep 2016 15:11:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2016 15:11:25 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: emacs-devel@gnu.org, Tino Calancha To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 18 17:11:22 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 1bldkR-0001Id-NA for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2016 17:11:15 +0200 Original-Received: from localhost ([::1]:50449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bldkP-0005gC-GY for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2016 11:11:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bldjo-0005g0-58 for emacs-devel@gnu.org; Sun, 18 Sep 2016 11:10:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bldjl-0007bM-W9 for emacs-devel@gnu.org; Sun, 18 Sep 2016 11:10:35 -0400 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:33423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bldjg-0007Yg-N7; Sun, 18 Sep 2016 11:10:28 -0400 Original-Received: by mail-pa0-x234.google.com with SMTP id hm5so8113840pac.0; Sun, 18 Sep 2016 08:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=QBLXPsc4Wi5sfxqOJR3mzGKIuDTqce73l1gK3QMV4IY=; b=MwBLGGeoziDveBF0Z9ztZ6zEXjvYp1+TnhL4ooDsdwtFtHVqDV1Q9yVtSCTHwjE6aI JyW6/7qzHhsA3ldQPl0K5MrDM3KiyWT6mL0CL8ehS8W7iHW2ANhDdFvZdPnpXCM3u9SQ KFzl0TfSyvdOuoTwwMx5bCsAcqcyCVIDpy45cP03XeZ2Tk5yM3JjsoYUXvspvOuvtTYZ 8bfi6IXpTU8hL2MMz1gxM0iVZLkM3qU/ziGHK/c0Dy74nTt2a7aBkINpmJFBH/B//h5O LCEPZyV9sSKGe2cKrgplKhtfztEcPu4x8xLG+2kGpiWG/kgs3p5O3x2HVyOEyPMmB5lY iZvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=QBLXPsc4Wi5sfxqOJR3mzGKIuDTqce73l1gK3QMV4IY=; b=lqaq+9k6uI0B5HPH21u5531kjE2aiXXSCWiDnH1HpxYgFtpwTXmJAWj2WHzqQJOw/a QNlhWGDCOe+xt42AnbVomTNLJmBBf/9FbooWD8jyEQrYgIE6o1smitCkvk/hJphTv6CB jG1IU9aHPrC+9C5WThvWfzDu5Hpnw+ZYkvziM34/iVjav1UQq56RxCZrZxDUROSsudmu NnNLc2aIT+wQgcQi8/5lp6VQT5tBAphtzZzeUfuIHP8CFLbvYAMP1b2biI6NxoHGfY5a dmjzSYBY0DsoLQWuTuLn4HS5Z4hXkF11aBj4MKpsXoeiU0PQd3ZW2QNgRfaiEaMsOkSO 4Q7g== X-Gm-Message-State: AE9vXwNvyeq8ep8uS0XICMq1BikFQP5hf1B+6U2DRCL2HUnkCkDcc8x18UK/DDe7AH4njg== X-Received: by 10.66.16.38 with SMTP id c6mr39028656pad.64.1474211427981; Sun, 18 Sep 2016 08:10:27 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id 64sm17082131pfe.74.2016.09.18.08.10.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Sep 2016 08:10:27 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <83intti7wl.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::234 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:207555 Archived-At: On Sun, 18 Sep 2016, Eli Zaretskii wrote: >> From: Tino Calancha >> Date: Sun, 18 Sep 2016 18:31:03 +0900 (JST) >> Cc: tino.calancha@gmail.com >> >> Do you think `grep-compute-defaults' should add '-i', i.e., ignore case, >> in the default `grep-command' when `case-fold-search' is non-nil? > > case-fold-search defaults to non-nil, so this would make "M-x grep" > case-insensitive for many users. I'm not sure they will like it. case-insensitive searches is a great default: it maximize the search space, no worries to missing a match. > More generally, it is not clear to me that a the connection between > the buffer from which "M-x grep" is invoked and the search is strong > enough to make the Grep search "inherit" the case-sensitivity of > buffer searches. It's not totally clear to me either, but it's not lacking of some logic; and if one user want 100% control s?he can customize `grep-command': I do it in order to pass the flag -I. I prefer to ignore the binary files.