From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernest =?iso-8859-1?Q?Adrogu=E9?= Newsgroups: gmane.emacs.help Subject: Re: coding systems for reading files Date: Fri, 15 Aug 2014 22:57:18 +0200 Message-ID: <20140815205718.GA9319@doriath.local> References: <20140815161150.GA8057@doriath.local> <83sikxeez9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1408136286 27397 80.91.229.3 (15 Aug 2014 20:58:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2014 20:58:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 22:57:59 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XIOZT-0001Um-2J for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2014 22:57:59 +0200 Original-Received: from localhost ([::1]:33335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIOZS-0008TY-FX for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2014 16:57:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIOZ8-0008TE-5w for help-gnu-emacs@gnu.org; Fri, 15 Aug 2014 16:57:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIOYz-0003Oc-1s for help-gnu-emacs@gnu.org; Fri, 15 Aug 2014 16:57:38 -0400 Original-Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:64467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIOYy-0003OU-Rs for help-gnu-emacs@gnu.org; Fri, 15 Aug 2014 16:57:28 -0400 Original-Received: by mail-wg0-f51.google.com with SMTP id b13so2781452wgh.22 for ; Fri, 15 Aug 2014 13:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=xCudAWqiDssiYkLrr9/Olwz3pletQSYq2J52iPffH1s=; b=LK6QvsdIKzo8ucpgTZ8PvGuB8avVfzJ0iaTx5qBTzgz+OdXNfK2dUgNQ4PpH/wigXA wSw+HgkWlMPFr1isx90PvOh2oadrSER40cX+czC2KJApDRvrlS0FdCtX9Wtd24SlUeH+ 9YWQ4wAqewM9imjeZNs/3yIkII6JShZIXl7IM01gUPDd/GnffG6DGJd8Ydb5iUmdmuOH VXBTYuaOP3SOW5wKU4NAqmQRmsv57oXpzZfNJDgdb/QsPQGKTbDZ28J+69ZZ1wT9lc3M NiA4jFhSm1BRLFgBKnxKGwMin2FJSMkZ6nyNRTReBf6eXof/xU+Cv8AODpTnn0B6/OTX JbsA== X-Received: by 10.180.95.135 with SMTP id dk7mr56444231wib.68.1408136247779; Fri, 15 Aug 2014 13:57:27 -0700 (PDT) Original-Received: from doriath (45.Red-83-63-243.staticIP.rima-tde.net. [83.63.243.45]) by mx.google.com with ESMTPSA id ph10sm21423616wjb.25.2014.08.15.13.57.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Aug 2014 13:57:26 -0700 (PDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <83sikxeez9.fsf@gnu.org> X-Operating-System: GNU/Linux (Debian jessie/sid) User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99233 Archived-At: 2014-08-15, 22:21 (+0300); Eli Zaretskii escriu: > > Say that when opening an existing file I want to try first with iso-latin-1 > > and if this fails try windows-1252. How does one tell Emacs to do that? If > > I do > > > > (set-coding-system-priority 'windows-1252) > > (set-coding-system-priority 'latin-1) > > Since windows-1252 is a superset of latin-1, why does this make sense? Good question. I guess it doesn't make sense.