help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `grep' command on MS Windows with Cygwin, looking for text with Unic


From: Bob Proulx
Subject: Re: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars
Date: Wed, 13 Jun 2018 17:09:02 -0600
User-agent: Mutt/1.10.0 (2018-05-17)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]