all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: Emacs developers <emacs-devel@gnu.org>,
	Tino Calancha <tino.calancha@gmail.com>
Subject: RE: grep-command: Ignore case if case-fold-search is non-nil
Date: Mon, 19 Sep 2016 03:05:22 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1609190259020.31571@calancha-pc> (raw)
In-Reply-To: <2bf761e1-509f-4194-a7f3-01c2164e16c0@default>



On Sun, 18 Sep 2016, Drew Adams wrote:

>>> 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'?
>
> 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?
After Eli answers, i agree is not good idea changing a long
standing default value.  I actually customize `grep-command' to
do what i like to do, and i keep it case insensitive.
My only concern now i that `rgrep', `lgrep' follow case-fold-search
but `grep-find' do not.  It's a minor thing, though.



  reply	other threads:[~2016-09-18 18:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-18  9:31 grep-command: Ignore case if case-fold-search is non-nil Tino Calancha
2016-09-18  9:57 ` Dmitry Gutov
2016-09-18 10:30   ` Tino Calancha
2016-09-18 10:52     ` Richard Copley
2016-09-18 11:09       ` Tino Calancha
2016-09-18 11:55         ` Dmitry Gutov
2016-09-18 14:45 ` Eli Zaretskii
2016-09-18 15:10   ` Tino Calancha
2016-09-18 16:52     ` Andreas Schwab
2016-09-18 18:03   ` Paul Eggert
2016-09-18 15:05 ` Drew Adams
2016-09-18 15:14   ` Tino Calancha
2016-09-18 15:39     ` Eli Zaretskii
2016-09-18 17:55     ` Drew Adams
2016-09-18 18:05       ` Tino Calancha [this message]
2016-09-18 18:16         ` Drew Adams

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

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

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1609190259020.31571@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.