[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: hexl-mode, while saving encoding problem
From: |
Gelika PAPP-RAFFY |
Subject: |
RE: hexl-mode, while saving encoding problem |
Date: |
Fri, 9 Nov 2007 09:36:04 +0100 |
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
>
>