From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Typing raw bytes Date: Sun, 20 Jan 2013 22:10:23 +0200 Message-ID: <83hambpqds.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1358712620 30217 80.91.229.3 (20 Jan 2013 20:10:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 20:10:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 20 21:10:39 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tx1Dx-0006Br-VH for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2013 21:10:38 +0100 Original-Received: from localhost ([::1]:43130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx1Dg-0001aR-Dx for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2013 15:10:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx1Dd-0001aB-SD for emacs-devel@gnu.org; Sun, 20 Jan 2013 15:10:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tx1Db-0001Zx-9U for emacs-devel@gnu.org; Sun, 20 Jan 2013 15:10:17 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:34450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx1Db-0001Yz-1T for emacs-devel@gnu.org; Sun, 20 Jan 2013 15:10:15 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MGX00B00X9QQM00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sun, 20 Jan 2013 22:10:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGX00BTGXCXI2A0@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sun, 20 Jan 2013 22:10:09 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156504 Archived-At: 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?