From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gelika PAPP-RAFFY Newsgroups: gmane.emacs.help Subject: RE: hexl-mode, while saving encoding problem Date: Fri, 9 Nov 2007 09:36:04 +0100 Message-ID: <000901c822ab$944a2be0$72a83c0a@mun.st.com> References: <453348FC-FB45-4EF4-841A-76C18E468884@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194597413 26541 80.91.229.12 (9 Nov 2007 08:36:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2007 08:36:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 09:36:58 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IqPMF-0003Cz-UR for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2007 09:36:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqPM4-0007yo-An for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2007 03:36:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IqPLr-0007yW-2P for help-gnu-emacs@gnu.org; Fri, 09 Nov 2007 03:36:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IqPLq-0007xX-0X for help-gnu-emacs@gnu.org; Fri, 09 Nov 2007 03:36:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqPLp-0007xU-S1 for help-gnu-emacs@gnu.org; Fri, 09 Nov 2007 03:36:29 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IqPLo-00082M-6E for help-gnu-emacs@gnu.org; Fri, 09 Nov 2007 03:36:28 -0500 Original-Received: from s200aog10.obsmtp.com ([207.126.144.124]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IqPLn-0001sv-11 for help-gnu-emacs@gnu.org; Fri, 09 Nov 2007 03:36:27 -0500 Original-Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob010.postini.com ([207.126.147.11]) with SMTP; Fri, 09 Nov 2007 08:36:11 UTC Original-Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0204CDAF6; Fri, 9 Nov 2007 08:36:10 +0000 (GMT) Original-Received: from mail1.mun.st.com (mail1.mun.st.com [164.129.178.120]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 65B754BE21; Fri, 9 Nov 2007 08:36:10 +0000 (GMT) Original-Received: from MUN00019 (MUN00019 [10.60.168.114] (may be forged)) by mail1.mun.st.com (MOS 3.7.5a-GA) with ESMTP id CJN07819 (AUTH "gelika papp-raffy"); Fri, 9 Nov 2007 09:36:09 +0100 (CET) X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <453348FC-FB45-4EF4-841A-76C18E468884@Web.DE> Thread-Index: AcgiHdhlchmTGjj9TtCGrkMEiKeMtQAi1sSg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49089 Archived-At: Thanks for your tip, it works fine. Now I have a very basic problem: My emacs installation is on a virtual machine with no internet access, so that I can not report the bug from emacs directly. If this is to be corrected as a bug, then there should be also other compressed audio files added to this list (I didn't try to edit them so I am not sure they would save wrongly): .wma, .aac, .m4a and probably also ogg vorbis files, I don't know the extensions. Thank you for the prompt support, I had been searching the net for quite a while now *what* could be corrupting and how not to corrupt my files :-)))) Gelika > -----Original Message----- > From: Peter_Dyballa@Web.DE [mailto:Peter_Dyballa@Web.DE] > Sent: Thursday, November 08, 2007 4:40 PM > To: Gelika PAPP-RAFFY > Cc: help-gnu-emacs@gnu.org > Subject: Re: hexl-mode, while saving encoding problem > > > Am 08.11.2007 um 16:03 schrieb Gelika PAPP-RAFFY: > > > I am editing binary files with emacs (ID3 tags in .mp3 files). > > I use the hexl-mode. > > When I want to save my modifications I get the question "Selet > > coding system" and it is asking me to choose between several like > > undecided-unix, mule-utf-8, etc. > > There is a variable, file-coding-system-alist, that also lists file > name extensions for which no-conversion is applied upon reading or > writing. Obviously no-one has edited an MP3 file before, so this is > not mentioned there. > > It might be worth to write a bug report and ask for this enhancement. > > To solve your problem now you can add to your init file this code: > > (add-to-list 'file-coding-system-alist '("\\.mp3\\'" . > no-conversion)) > > To have it set at once put the line into the *scratch* buffer, > position the cursor at its end and press C-j. Then open, edit, and > save the MP3 file again. > > -- > Greetings > > Pete > > "Isn't vi that text editor with two modes... one that beeps and one > that corrupts your file?" -- Dan Jacobson, on comp.os.linux.advocacy > >