From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: editing binary (hexa) data
Date: Thu, 17 May 2007 19:24:48 +0200 [thread overview]
Message-ID: <85fy5vwefz.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.776.1179416261.32220.help-gnu-emacs@gnu.org
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 17.05.2007 um 11:09 schrieb Peter Tury:
>
>> Or perhaps you know some other mode for me?
>
> In GNU Emacs 22 you can use query-replace-regexp or replace-regexp to
> convert between ASCII and numeric:
>
> M-x replace-regexp RET \(.\) RET \,(string-to-number \1) RET
You mean
M-x replace-regexp RET . RET \,(string-to-char \1) RET
(returns Emacs' internal coding, not unicode or latin-1).
> or such and back with
>
> M-x replace-regexp RET \([1-9][0-9]\) RET \,(string (+ ?a \1)) RET
M-x replace-regexp RET [0-9]+ RET \,(string (+ ?a \#&)) RET
But why ?a? Weird.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2007-05-17 17:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-17 11:09 editing binary (hexa) data Peter Tury
2007-05-17 15:29 ` Peter Dyballa
[not found] ` <mailman.776.1179416261.32220.help-gnu-emacs@gnu.org>
2007-05-17 17:24 ` David Kastrup [this message]
2007-05-17 18:27 ` Peter Dyballa
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=85fy5vwefz.fsf@lola.goethe.zz \
--to=dak@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).