all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars
Date: Wed, 13 Jun 2018 17:09:02 -0600	[thread overview]
Message-ID: <20180613165924726126400@bob.proulx.com> (raw)
In-Reply-To: <27454117-5bab-43ce-9bf3-d9e4ac5f2219@default>

Drew Adams wrote:
> Since Emacs otherwise supports Unicode so well now, it will be
> natural that some users will mistakenly expect `M-x grep' to DTRT
> here.

Depending upon what you are wanting to do I might mention that emacs
dired can be very powerful here.

I am often doing C-x d to start dired.  Then using:

  C-x d RET               ;; open directory dired
  % g REGEXP <RET>        ;; mark all files containing pattern
  Q REGEXP <RET> TO <RET> ;; Perform query-replace-regexp on marked files

If nothing else then % g is a native emacs way to search contents of
files and should handle unicode as well as for other tasks.

And for work within a single buffer there is M-x occur too.

Bob



  parent reply	other threads:[~2018-06-13 23:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<356e7bf9-3f93-448c-a067-f6b567d5aa5a@default>
     [not found] ` <<83y3fi33or.fsf@gnu.org>
2018-06-13 19:16   ` `grep' command on MS Windows with Cygwin, looking for text with Unicode chars Drew Adams
2018-06-13 19:42     ` Eli Zaretskii
2018-06-13 23:09     ` Bob Proulx [this message]
2018-06-13 23:37       ` Drew Adams
2018-06-13 18:23 Drew Adams
2018-06-13 18:40 ` Óscar Fuentes
2018-06-13 19:09   ` Drew Adams
2018-06-13 19:16   ` Noam Postavsky
2018-06-13 19:22     ` Noam Postavsky
2018-06-13 19:28       ` Drew Adams
2018-06-13 19:26     ` Drew Adams
2018-06-13 19:08 ` Eli Zaretskii
2018-06-13 19:43   ` Tomas Nordin
2018-06-14  2:33     ` Eli Zaretskii
2018-06-14  2:40       ` Eli Zaretskii

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=20180613165924726126400@bob.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@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.