unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* coding systems for reading files
@ 2014-08-15 16:11 Ernest Adrogué
  2014-08-15 19:21 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Ernest Adrogué @ 2014-08-15 16:11 UTC (permalink / raw)
  To: help-gnu-emacs

Hi.

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)

only the latter shows up in the list shown by M-x describe-coding-system.

Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: coding systems for reading files
  2014-08-15 16:11 coding systems for reading files Ernest Adrogué
@ 2014-08-15 19:21 ` Eli Zaretskii
  2014-08-15 20:57   ` Ernest Adrogué
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2014-08-15 19:21 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 15 Aug 2014 18:11:50 +0200
> From: Ernest Adrogué <nfdisco@gmail.com>
> 
> 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?




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: coding systems for reading files
  2014-08-15 19:21 ` Eli Zaretskii
@ 2014-08-15 20:57   ` Ernest Adrogué
  0 siblings, 0 replies; 3+ messages in thread
From: Ernest Adrogué @ 2014-08-15 20:57 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-15 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-15 16:11 coding systems for reading files Ernest Adrogué
2014-08-15 19:21 ` Eli Zaretskii
2014-08-15 20:57   ` Ernest Adrogué

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).