From: Nick Dokos <ndokos@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: grep-find: first ':" char is a zero
Date: Tue, 26 Nov 2019 14:36:49 -0500 [thread overview]
Message-ID: <87v9r6bfam.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 20191125101454.46d9ef9a@mistral
jonetsu <jonetsu@teksavvy.com> writes:
> On Mon, 25 Nov 2019 10:09:29 -0500
> Noam Postavsky <npostavs@gmail.com> wrote:
>
>> On Mon, 25 Nov 2019 at 09:49, jonetsu <jonetsu@teksavvy.com> wrote:
>>
>> [...]
>>
>> Yes, customize grep-use-null-filename-separator to nil.
>
> Thanks, this will be quite helpful.
>
> In the meanwhile I found that by using hexl-mode on a saved version of
> the grep-find results and subsequently exiting hexl-mode, the 0
> character will be shown as caret + @. It then becomes easy to do a
> regular search-replace.
>
> Having grep-find not using a 0 character is the most direct solution.
>
... but it might lead to problems with filenames containing white
space or other strange chars. Now that you know it is a NUL, you can
use `C-s C-q C-<space>' to search for it if you want to keep the --null
option on grep.
--
Nick
"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler
prev parent reply other threads:[~2019-11-26 19:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-25 14:49 grep-find: first ':" char is a zero jonetsu
2019-11-25 15:09 ` Noam Postavsky
2019-11-25 15:14 ` jonetsu
2019-11-26 19:36 ` Nick Dokos [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9r6bfam.fsf@alphaville.usersys.redhat.com \
--to=ndokos@gmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).