unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [HELP] (bug?) Saving a buffer without any conversion?
@ 2003-01-13 17:52 Mario Lang
  2003-01-14  1:00 ` Kim F. Storm
  2003-01-15  1:16 ` Kenichi Handa
  0 siblings, 2 replies; 19+ messages in thread
From: Mario Lang @ 2003-01-13 17:52 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2003-01-17 11:07 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-13 17:52 [HELP] (bug?) Saving a buffer without any conversion? Mario Lang
2003-01-14  1:00 ` Kim F. Storm
2003-01-14  6:06   ` Eli Zaretskii
2003-01-14  6:46     ` Mario Lang
2003-01-14 18:37       ` Eli Zaretskii
2003-01-14 16:19   ` Stefan Monnier
2003-01-15  1:16 ` Kenichi Handa
2003-01-15 11:02   ` Kim F. Storm
2003-01-15 10:59     ` Kenichi Handa
2003-01-15 13:27       ` Kim F. Storm
2003-01-15 16:30         ` Eli Zaretskii
2003-01-16 22:52           ` Kim F. Storm
2003-01-17  2:35             ` Kenichi Handa
2003-01-16  1:18         ` Kenichi Handa
2003-01-17  9:23         ` Richard Stallman
2003-01-17 11:07           ` Kenichi Handa
2003-01-15 16:59       ` Mario Lang
2003-01-15 23:27       ` Richard Stallman
2003-01-16  6:45         ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).