From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.devel Subject: [HELP] (bug?) Saving a buffer without any conversion? Date: Mon, 13 Jan 2003 18:52:23 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87fzrxszs8.fsf@lexx.delysid.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042480527 2589 80.91.224.249 (13 Jan 2003 17:55:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2003 17:55:27 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Y8o0-0000fO-00 for ; Mon, 13 Jan 2003 18:55:24 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Y8va-0002VK-00 for ; Mon, 13 Jan 2003 19:03:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Y8nQ-0004jS-0A for emacs-devel@quimby.gnus.org; Mon, 13 Jan 2003 12:54:48 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Y8lq-0003lf-00 for emacs-devel@gnu.org; Mon, 13 Jan 2003 12:53:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Y8ld-0003gP-00 for emacs-devel@gnu.org; Mon, 13 Jan 2003 12:52:58 -0500 Original-Received: from [80.109.223.66] (helo=lexx.delysid.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Y8lC-0003bD-00 for emacs-devel@gnu.org; Mon, 13 Jan 2003 12:52:31 -0500 Original-Received: from mlang by lexx.delysid.org with local (Exim 3.36 #1 (Debian)) id 18Y8l5-0002N1-00 for ; Mon, 13 Jan 2003 18:52:23 +0100 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10708 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10708 Hi there. I'm trying to sort out a bug in erc-dcc.el since some time now and since I'm really lost now, I thought I'd ask here, and maybe get some enlightenment: We're receiving binary content via a network process. After the transfer is complete, this buffer should be saved to a file. The effect I'm having is that we receive 1372422 bytes via the process filter function STRING argument, and after insertion into a buffer, we have a buffer with buffer-size 1372422, but after calling (save-buffer) we get this: -rw-r--r-- 1 root root 1865264 Jan 13 18:35 blah28.mp3 I'm using: (set-process-coding-system proc 'binary 'binary) (set-buffer-file-coding-system 'no-conversion t) To set up my process/buffer. I've tried virtually every possible combination of 'binary, 'no-conversion, 'raw-text, 'raw-text-unix, and whatever the Elisp manual may have suggested :-), but I could not find any combination which would allow me to save this buffer without Emacs doing any magic modifications in between. I know and love the automagic way we're getting coding-systems converted these days, but I'd also like to know how to consistantly turn it off for such a case. Can anyone help? -- CYa, Mario