From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Scott Heftler Newsgroups: gmane.emacs.help Subject: Can emacs pick proper coding system intelligently? Date: Sun, 27 Apr 2008 19:04:30 -0500 Organization: The University of Texas at Austin; Austin, Texas Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209343277 26782 80.91.229.12 (28 Apr 2008 00:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2008 00:41:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 02:41:53 2008 connect(): Connection refused 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 1JqHRJ-00083h-11 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2008 02:41:53 +0200 Original-Received: from localhost ([127.0.0.1]:35274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqHQc-0005E4-G3 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Apr 2008 20:41:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: wireless-128-62-231-187.public.utexas.edu Original-X-Trace: geraldo.cc.utexas.edu 1209341070 10388 128.62.231.187 (28 Apr 2008 00:04:30 GMT) Original-X-Complaints-To: abuse@utexas.edu Original-NNTP-Posting-Date: Mon, 28 Apr 2008 00:04:30 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Cancel-Lock: sha1:+tOeiFgsIGfKImFKINdvGqjeXFs= Original-Xref: shelby.stanford.edu gnu.emacs.help:158220 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:53585 Archived-At: Yesterday I have a problem. I would read a RMAIL-mode file saved via `gnus-summary-save-in-rmail' and the ellipses would be escape-quoted and display as \205. I was told that I needed to find the file using windows-1252 as my coding system. Now the windows-1252 ellipses display nicely when I run `universal-coding-system-argument' (C-x RET c windows-1252) before finding the file. You'd think that, when emacs encounters these \205s, it would KNOW to pick windows-1252. But it doesn't. I put these in my init file to help it along: (prefer-coding-system 'windows-1252) (prefer-coding-system 'utf-8) This makes sure utf-8 is top pick, and windows-1252 is second. This did nothing. Is there no way to AUTOMATE emacs' pick of coding system? I thought it chose coding systems intelligently, based on file contents? Do I really have to open a file, see escape-quoted characters, guess what coding system I should use, close the file, and then reopen it using `C-x RET c' in a trial-and-error fashion? -- Scott