unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Typing raw bytes
@ 2013-01-20 20:10 Eli Zaretskii
  2013-01-20 20:50 ` Ivan Andrus
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: Eli Zaretskii @ 2013-01-20 20:10 UTC (permalink / raw)
  To: emacs-devel

Suppose I want to create a file whose contents is a series of certain
bytes.  How would I go about that?

I tried "M-x hexl-mode RET" in a new buffer, but it evidently doesn't
let you insert bytes, only edit existing bytes.

Next I tried "C-x RET f raw-text RET" in a new buffer followed by
"C-q NNN" etc., but the data written thereafter to disk is more bytes
than I typed, because, I guess, "C-q NNN" inserts windows-1255
characters (this is on Windows, where keyboard-coding-system is
windows-1255-unix), and what winds up in the file is their UTF-8
encoding.

The only way I found that does the job is insert-byte, which is not
very convenient.  For starters, it's not a command.

Is there something else I'm missing?  Should I file a bug?



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2013-01-22  0:59 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-20 20:10 Typing raw bytes Eli Zaretskii
2013-01-20 20:50 ` Ivan Andrus
2013-01-20 20:55 ` Michael Welsh Duggan
2013-01-20 21:33   ` Eli Zaretskii
2013-01-20 21:43     ` Michael Welsh Duggan
2013-01-20 20:59 ` Benjamin Riefenstahl
2013-01-20 21:35   ` Eli Zaretskii
2013-01-21 14:47     ` Benjamin Riefenstahl
2013-01-21 17:26       ` Eli Zaretskii
2013-01-21 19:38         ` Benjamin Riefenstahl
2013-01-21 20:02           ` Eli Zaretskii
2013-01-20 20:59 ` Andreas Schwab
2013-01-20 21:31   ` Eli Zaretskii
2013-01-20 23:02     ` Andreas Schwab
2013-01-20 23:22 ` Kenichi Handa
2013-01-21  3:50   ` Eli Zaretskii
2013-01-21 17:39     ` Eli Zaretskii
2013-01-21  1:40 ` Stefan Monnier
2013-01-21  3:51   ` Eli Zaretskii
2013-01-21 15:38     ` Stefan Monnier
2013-01-21 17:38       ` Eli Zaretskii
2013-01-22  0:59         ` Stefan Monnier
2013-01-21 14:19 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).