From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: hexl-mode, while saving encoding problem Date: Thu, 8 Nov 2007 16:40:24 +0100 Message-ID: <453348FC-FB45-4EF4-841A-76C18E468884@Web.DE> References: <004701c82218$7f472e70$71a83c0a@mun.st.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194536537 19481 80.91.229.12 (8 Nov 2007 15:42:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2007 15:42:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Gelika PAPP-RAFFY Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 08 16:42:18 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 1Iq9W6-0000oO-SC for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Nov 2007 16:42:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq9Vv-00035r-DW for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Nov 2007 10:41:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iq9Vf-00030W-1I for help-gnu-emacs@gnu.org; Thu, 08 Nov 2007 10:41:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iq9Ve-0002yA-Ay for help-gnu-emacs@gnu.org; Thu, 08 Nov 2007 10:41:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq9Ve-0002y0-75 for help-gnu-emacs@gnu.org; Thu, 08 Nov 2007 10:41:34 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iq9Vd-0007lE-OH for help-gnu-emacs@gnu.org; Thu, 08 Nov 2007 10:41:33 -0500 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 59C66AEE03F1; Thu, 8 Nov 2007 16:40:29 +0100 (CET) Original-Received: from [195.4.205.15] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1Iq9Ub-0001Op-00; Thu, 08 Nov 2007 16:40:29 +0100 In-Reply-To: <004701c82218$7f472e70$71a83c0a@mun.st.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/rW+nbTK1/wuLlMlrcAMPmytlik8ZBhbfc+uit ek/Rrr5Bj1px74qdedfqbyD/P3jel2KLCpGmgcdMK2bCWjHWz9 G7YBmbusJDZbzkwziaBw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:49081 Archived-At: 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