From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: How to modify binary file in emacs/vi Date: Fri, 27 Feb 2004 17:29:53 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7494-Fri27Feb2004172953+0200-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077896101 14929 80.91.224.253 (27 Feb 2004 15:35:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2004 15:35:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 16:34:39 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Awk0c-0002Gq-01 for ; Fri, 27 Feb 2004 16:34:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AwjzJ-0006u5-Bw for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2004 10:33:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Awjxj-0006SG-Ah for help-gnu-emacs@gnu.org; Fri, 27 Feb 2004 10:31:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AwjxB-0006IY-P7 for help-gnu-emacs@gnu.org; Fri, 27 Feb 2004 10:31:37 -0500 Original-Received: from [192.114.186.22] (helo=gollum.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AwjxB-0006I7-4R for help-gnu-emacs@gnu.org; Fri, 27 Feb 2004 10:31:05 -0500 Original-Received: from zaretski ([80.230.146.123]) by gollum.inter.net.il (MOS 3.4.4-GR) with ESMTP id CMQ01046; Fri, 27 Feb 2004 17:31:00 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (dattatraya.patil@in.bosch.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17275 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17275 > From: "Datta Patil" > Newsgroups: gnu.emacs.help > Date: Fri, 27 Feb 2004 20:14:52 +0530 > > Now i want to change to : > 1ad3 89f0 0ba2 original file > 2bd3 89f0 0ba2 new file(say) > but when i type 2 ...it takes its asciii value & changes two bytes.What i > want is when i press 2 , its hexadecimal value(i.e. 2) insted of ascii value > should appear. > > Is there any method to change one-nible value in emacs or vi . In the Hexl buffer, type "C-h m". Emacs will pop up a window that describes the various features of the Hexl mode, including several methods of modifying bytes and nibbles of the original file. "C-M-x" seems to be the command that you are looking for, but perhaps something else is more convenient, so I suggest to read the whole text displayed by "C-h m".