* Edit binaries - insert
@ 2020-11-05 13:51 Ken Goldman
2020-11-05 14:23 ` Eli Zaretskii
2020-11-05 15:10 ` Stefan Monnier
0 siblings, 2 replies; 6+ messages in thread
From: Ken Goldman @ 2020-11-05 13:51 UTC (permalink / raw)
To: help-gnu-emacs
I haven't asked this one in a while ...
Is there a mode to edit binaries and insert and delete bytes. I know
about hexl-mode, but AFAIK it only supports overwrite.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Edit binaries - insert
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-05 15:10 ` Stefan Monnier
1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2020-11-05 14:23 UTC (permalink / raw)
To: help-gnu-emacs
> From: Ken Goldman <kgoldman@us.ibm.com>
> Date: Thu, 5 Nov 2020 08:51:04 -0500
>
> I haven't asked this one in a while ...
>
> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Edit binaries - insert
2020-11-05 13:51 Edit binaries - insert Ken Goldman
2020-11-05 14:23 ` Eli Zaretskii
@ 2020-11-05 15:10 ` Stefan Monnier
2020-11-06 3:58 ` Ken Goldman
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2020-11-05 15:10 UTC (permalink / raw)
To: help-gnu-emacs
> Is there a mode to edit binaries and insert and delete bytes. I know
> about hexl-mode, but AFAIK it only supports overwrite.
nhexl-mode?
https://elpa.gnu.org/packages/nhexl-mode.html
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Edit binaries - insert
2020-11-05 14:23 ` Eli Zaretskii
@ 2020-11-06 3:25 ` Ken Goldman
2020-11-06 5:43 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Ken Goldman @ 2020-11-06 3:25 UTC (permalink / raw)
To: help-gnu-emacs
On 11/5/2020 9:23 AM, Eli Zaretskii wrote:
>> From: Ken Goldman <kgoldman@us.ibm.com>
>> Date: Thu, 5 Nov 2020 08:51:04 -0500
>>
>> I haven't asked this one in a while ...
>>
>> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Edit binaries - insert
2020-11-05 15:10 ` Stefan Monnier
@ 2020-11-06 3:58 ` Ken Goldman
0 siblings, 0 replies; 6+ messages in thread
From: Ken Goldman @ 2020-11-06 3:58 UTC (permalink / raw)
To: help-gnu-emacs
On 11/5/2020 10:10 AM, Stefan Monnier wrote:
>> Is there a mode to edit binaries and insert and delete bytes. I know
>> about hexl-mode, but AFAIK it only supports overwrite.
>
> nhexl-mode?
> https://elpa.gnu.org/packages/nhexl-mode.html
Perfect, thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Edit binaries - insert
2020-11-06 3:25 ` Ken Goldman
@ 2020-11-06 5:43 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2020-11-06 5:43 UTC (permalink / raw)
To: help-gnu-emacs
> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-11-06 5:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-11-05 15:10 ` Stefan Monnier
2020-11-06 3:58 ` Ken Goldman
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).