From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maze Newsgroups: gmane.emacs.help Subject: Coding system prefer Date: Tue, 3 Mar 2009 03:46:13 -0800 (PST) Organization: http://groups.google.com Message-ID: <830bd086-fb17-4d24-97a0-7f394bd705a1@x38g2000yqj.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236115622 18537 80.91.229.12 (3 Mar 2009 21:27:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 21:27:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 22:28:19 2009 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 1Lec9q-0003by-Cb for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 22:28:10 +0100 Original-Received: from localhost ([127.0.0.1]:54247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lec8U-0003zy-Ti for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 16:26:47 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x38g2000yqj.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 80.70.228.38 Original-X-Trace: posting.google.com 1236080774 14176 127.0.0.1 (3 Mar 2009 11:46:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 3 Mar 2009 11:46:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x38g2000yqj.googlegroups.com; posting-host=80.70.228.38; posting-account=th_xzQoAAAACvWkIagSfoC0F9DxmNKh9 User-Agent: G2/1.0 X-HTTP-Via: 1.1 SERVER X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167248 X-Mailman-Approved-At: Tue, 03 Mar 2009 16:26:23 -0500 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:62560 Archived-At: Hello! I need to work with files in cp1251 and cp866 and i want emacs autodetect coding system. For correct file opening i try to use coding- system-priority-list. I do: prefer-coding-system cp866-dos Looking C-h =F3 : Priority order for recognizing coding systems when reading files: 1. cp866 2. utf-8 (alias: mule-utf-8) 3. iso-2022-7bit 4. iso-2022-7bit-lock (alias: iso-2022-int-1) etc... Opening files in cp866 is working correct. Next, do prefer-coding-system cp1251-dos Result: Priority order for recognizing coding systems when reading files: 1. windows-1251 (alias: cp1251 windows-1251) 2. utf-8 (alias: mule-utf-8) 3. iso-2022-7bit 4. iso-2022-7bit-lock (alias: iso-2022-int-1) etc... Opening files in cp1251 is working correct, but in cp866 is not. :( Then i used (set-coding-system-priority 'cp866 'cp1251) with the same effect. How can i use both coding together?