From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: two utf-8 questions Date: Fri, 03 Feb 2006 18:39:43 -0500 Organization: Bell Sympatico Message-ID: <87slr0kp0b.fsf-monnier+gnu.emacs.help@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139017826 21752 80.91.229.2 (4 Feb 2006 01:50:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2006 01:50:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 04 02:50:24 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F5CZ8-0006Wt-8u for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Feb 2006 02:50:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F5CcK-0003W0-A8 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2006 20:53:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed-00.mathworks.com!bigboote.WPI.EDU!news.tufts.edu!elk.ncren.net!newsflash.concordia.ca!News.Dal.Ca!ursa-nb00s0.nbnet.nb.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:XlvXG/kNZhG0XDos/6kIgxX3oEQ= Original-Lines: 29 Original-NNTP-Posting-Host: 67.71.25.142 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1139009983 67.71.25.142 (Fri, 03 Feb 2006 18:39:43 EST) Original-NNTP-Posting-Date: Fri, 03 Feb 2006 18:39:43 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:137366 Original-To: help-gnu-emacs@gnu.org 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:32990 Archived-At: > 1) > Even though the following is in my .emacs: > (setq default-buffer-file-coding-system 'utf-8) > when I type 'C-x ret f' I see the prompt: > Coding system for visited file (default, nil) instead of (default, utf-8) I think it never said anything else than nil. > There are contexts where I need to specify utf-8 here, or else the file > won't be saved in the correct format. This seems to be true even if the > file header ;; -*- coding: utf-8 -*- is present. Why is this? This varies a lot between different versions of Emacs (because it's still being continuously improved). Also it depends on many more details. So it's hard to give a useful answer without knowing the version of Emacs you're using, the locale under which you're running, how much you've munged the default Mule setup, and then how you've loaded the file, what operations you've done in between and which command gave you the above problem. As for obeying the `coding' tag when saving: this has only been added as a new feature recently in Emacs-CVS. In earlier code, the `coding' tag is only used when opening a file (and it's checked for consistency when saving). Stefan