From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Run coding system auto-detection manually? Date: Sun, 04 Aug 2002 16:22:11 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028470952 14061 127.0.0.1 (4 Aug 2002 14:22:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 4 Aug 2002 14:22:32 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17bMH9-0003eg-00 for ; Sun, 04 Aug 2002 16:22:31 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17bMbK-0001V2-00 for ; Sun, 04 Aug 2002 16:43:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17bMHg-0008UV-00; Sun, 04 Aug 2002 10:23:04 -0400 Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17bMGx-00089n-00 for ; Sun, 04 Aug 2002 10:22:19 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g74EMHb18229 for ; Sun, 4 Aug 2002 16:22:17 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id QAA15285; Sun, 4 Aug 2002 16:22:12 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id A7E293ADDC; Sun, 4 Aug 2002 16:22:11 +0200 (CEST) Original-To: emacs-devel@gnu.org Original-Lines: 17 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6281 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6281 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)