From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: replacing characters and whacky trans-buffer conversion Date: Sat, 10 Mar 2007 19:57:33 +0100 Message-ID: References: <45ED8574.3040201@speakeasy.net> <45EF2512.9060200@speakeasy.net> <45EF28B8.2050905@speakeasy.net> <953CC6C7-14E6-4321-8899-665613380DC2@Web.DE> <45F133A6.8090308@speakeasy.net> <45F2F90D.4080505@speakeasy.net> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173555612 21828 80.91.229.12 (10 Mar 2007 19:40:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2007 19:40:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 10 20:40:09 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 1HQ7QG-0005nj-G8 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Mar 2007 20:40:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQ7Qf-0006rv-4u for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Mar 2007 14:40:33 -0500 Original-Newsgroups: gnu.emacs.help X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od 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:41868 Archived-At: On Sat, Mar 10 2007, ken wrote: > On 03/09/2007 01:41 PM somebody named Reiner Steib wrote: >> At least in Emacs 22 you don't need to change the buffer: >> >> C-x C-m r windows-1252 RET >> C-x C-m f new-coding RET >> C-x C-s > > Thanks for these. Is there a function which will tell me a buffer's > current encoding. I found describe-coding-system, but when I tried it, > it listed dozens of-- maybe a hundred-- codings. `M-x describe-coding-system RET RET' seems to describe the right one. Or ` v buffer-file-coding-system RET' ... ,----[ v buffer-file-coding-system RET ] | buffer-file-coding-system is a variable defined in `C source code'. | Its value is emacs-mule | Local in buffer *followup to ken on gmane.emacs.help*; global value | is iso-latin-1 | Automatically becomes buffer-local when set in any fashion. | | Documentation: | Coding system to be used for encoding the buffer contents on saving. | [...] `---- Bye, Reiner.