From: Scott Heftler <lovecraftian@mac.com>
To: help-gnu-emacs@gnu.org
Subject: Can emacs pick proper coding system intelligently?
Date: Sun, 27 Apr 2008 19:04:30 -0500 [thread overview]
Message-ID: <m2mynekfox.fsf@mac.com> (raw)
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
next reply other threads:[~2008-04-28 0:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-28 0:04 Scott Heftler [this message]
2008-04-28 1:04 ` Can emacs pick proper coding system intelligently? Barry Margolin
2008-04-28 2:40 ` Scott Heftler
2008-04-28 3:20 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2mynekfox.fsf@mac.com \
--to=lovecraftian@mac.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).