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:14:27 +0900 (JST) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1474211719 15729 195.159.176.226 (18 Sep 2016 15:15:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2016 15:15:19 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Emacs developers , Tino Calancha To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 18 17:15:15 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 1bldoC-0002pV-U2 for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2016 17:15:09 +0200 Original-Received: from localhost ([::1]:50458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bldoB-0006pn-6L for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2016 11:15:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bldne-0006pX-CZ for emacs-devel@gnu.org; Sun, 18 Sep 2016 11:14:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bldnb-0001XL-7Q for emacs-devel@gnu.org; Sun, 18 Sep 2016 11:14:34 -0400 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:35038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bldnb-0001X9-1m for emacs-devel@gnu.org; Sun, 18 Sep 2016 11:14:31 -0400 Original-Received: by mail-pa0-x234.google.com with SMTP id oz2so35818496pac.2 for ; Sun, 18 Sep 2016 08:14:31 -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=tsuN+SfomuEei6dtynwxXI2CB4uSacaC3yf0MTKxDF4=; b=lcvhLgdx/knPEFb3oFuNmjyILGkY2UgqQjh5lhPYD9ghrxaqTPfj/KUsyxlydZap3s 0oUBpa3XabyoV2fTOYgVAMBxRLzpi3d9ctzbCFdk0FukvWWzR9tWYNstLAn42ov+nLcN o1FVU3Ww5Dm8x4Uc3mThEZAsYP8ppV+36HWfFceuwT5s5/0iEdGhezVb8d53xiu8NYBt r26u/d3kOEul2vgMACpmgNpedloh72O9VR5OJec+Ea6ijmmF33JF47bCk+nFdGv/ih7s Zg4/StSQgmHRJMYbO+Q1EkNfRsQou6ZcGeInizpVN0Ujh4qthEo7eW5pbHe+pipeWNvK 1XJA== 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=tsuN+SfomuEei6dtynwxXI2CB4uSacaC3yf0MTKxDF4=; b=HlkryiT0F5ydktebvvj4D2SLm+mFIRSi1J0x933OAeYJKN7NlQJoiPdRj0VceYTKZ6 Q+P35KosOZNyWkEQBBmvg5zoLhbmbKr+GP4m50FyxHytCd03lUMJ0M9xheKFeaA8BLvD Ky/WOnkspuRvbBAWoOx3fywKyZoBPPzUbYjbE/ZMytIBDEEGu+FwgXxdnMNBn1ebPmgP SUA1xe9jMYcRIWNINYQbz53pDQ5TV48mUocm7bSMVxXtMXr3k/GgHHV22UdJv94BasNo n7mzD1+mIW61cVyBlyzYUjot690h8UWA99iQTIlQdWPFyjTYSrTrijuZKoo7bdGySd35 OssA== X-Gm-Message-State: AE9vXwOd+brCC1QmibgzGMe3KqBmI5sfM4xeMQdLZfTN3c1ljHPa0o/lBtgKjtd9IlTXSQ== X-Received: by 10.66.148.68 with SMTP id tq4mr25275562pab.160.1474211670633; Sun, 18 Sep 2016 08:14:30 -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 70sm1032944pfy.81.2016.09.18.08.14.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Sep 2016 08:14:30 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: 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:207557 Archived-At: On Sun, 18 Sep 2016, Drew Adams wrote: >> 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? > > No. > > 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. 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'?