emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Run coding system auto-detection manually?


From: Kai Großjohann
Subject: Run coding system auto-detection manually?
Date: Sun, 04 Aug 2002 16:22:11 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu)

Suppose I have a buffer and hit C-x C-s.  Then Emacs figures out a
coding system to use, possibly based on the filename.

But I would like to use write-region to write the buffer contents to
another file, but I would like this call to use the same coding
system that Emacs would have used for C-x C-s.

How do I do that?

kai

PS: Background info: In the write-region handler, Tramp first writes
    the region to a local temp file and then transfers this temp file to
    the remote host via scp (say).  So the write-region handler needs
    to use the right coding system when writing the temp file.
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]