From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: two utf-8 questions
Date: Sun, 29 Jan 2006 11:00:33 +0100 [thread overview]
Message-ID: <57E6AF1A-9D6D-4189-B6B4-573C2DC02472@Web.DE> (raw)
In-Reply-To: <o3YCf.1727$Nv2.1086@newsread1.news.atl.earthlink.net>
Am 29.01.2006 um 05:06 schrieb B. T. Raven:
>>> when I type 'C-x ret f' I see the prompt:
>>>
>>> Coding system for visited file (default, nil) instead of (default,
>>> utf-8)
>>>
>>
>> Maybe you need a: (prefer-coding-system 'utf-8)
>
> I already have that (see below). If I respond to the prompt with a
> bare
> carriage return the '-u' in the mode line changes to -- and the
> file won't
> be saved with utf-8 encoding. It seems that shouldn't happen.
Once you've set GNU Emacs to handle file contents as UTF-8 you should
not need to open files with C-x RET f etc. It should stick to this
encoding automatically when you open them with v or e in dired-mode
or with C-x f. For me a header line like
;;; -*- mode: Text; coding: utf-8; -*-
works fine and converts every stubborn file contents. Another way is
to use at the file's end:
%
% Local Variables:
% mode: LaTeX
% fill-column: 160
% coding-system: utf-8-emacs-dos
% End:
%
%%
--
Greetings
Pete
"Computers are good at following instructions,
but not at reading your mind."
D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9
next prev parent reply other threads:[~2006-01-29 10:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-28 19:30 two utf-8 questions B. T. Raven
2006-01-28 23:13 ` Peter Dyballa
[not found] ` <mailman.81.1138502554.3044.help-gnu-emacs@gnu.org>
2006-01-29 5:06 ` B. T. Raven
2006-01-29 10:00 ` Peter Dyballa [this message]
2006-01-29 9:50 ` François Gannaz
2006-02-03 23:39 ` Stefan Monnier
2006-02-05 18:12 ` B. T. Raven
2006-02-06 4:14 ` Stefan Monnier
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=57E6AF1A-9D6D-4189-B6B4-573C2DC02472@Web.DE \
--to=peter_dyballa@web.de \
--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).