From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Edit binaries - insert
Date: Fri, 06 Nov 2020 07:43:41 +0200 [thread overview]
Message-ID: <83361n9h0y.fsf@gnu.org> (raw)
In-Reply-To: <16b4b789-3492-5633-d57b-9f8244699e9e@us.ibm.com> (message from Ken Goldman on Thu, 5 Nov 2020 22:25:52 -0500)
> From: Ken Goldman <kgoldman@us.ibm.com>
> Date: Thu, 5 Nov 2020 22:25:52 -0500
>
> >> Is there a mode to edit binaries and insert and delete bytes. I know
> >> about hexl-mode, but AFAIK it only supports overwrite.
> >
> > "M-x find-file-literally RET FILE-NAME RET" and edit as you like.
>
> That works, but the binary doesn't display the hex values. Just lots of
> \nnn values. So it's impractical to find the byte location.
You never said you want the bytes displayed in hex. You can set
display-raw-bytes-as-hex to have them shown in hex instead of in
octal.
next prev parent reply other threads:[~2020-11-06 5:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 13:51 Edit binaries - insert Ken Goldman
2020-11-05 14:23 ` Eli Zaretskii
2020-11-06 3:25 ` Ken Goldman
2020-11-06 5:43 ` Eli Zaretskii [this message]
2020-11-05 15:10 ` Stefan Monnier
2020-11-06 3:58 ` Ken Goldman
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=83361n9h0y.fsf@gnu.org \
--to=eliz@gnu.org \
--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).