From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: emacs silently ignores buffer file encoding? Date: Tue, 03 Mar 2009 11:00:19 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236045726 24823 80.91.229.12 (3 Mar 2009 02:02:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 02:02:06 +0000 (UTC) Cc: emacs-devel@gnu.org, miles@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 03 03:03:21 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LeJyZ-00020O-3t for ged-emacs-devel@m.gmane.org; Tue, 03 Mar 2009 03:03:19 +0100 Original-Received: from localhost ([127.0.0.1]:36087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeJxD-00078x-Ts for ged-emacs-devel@m.gmane.org; Mon, 02 Mar 2009 21:01:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeJvB-0006Wq-3H for emacs-devel@gnu.org; Mon, 02 Mar 2009 20:59:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeJvA-0006Vy-7a for emacs-devel@gnu.org; Mon, 02 Mar 2009 20:59:48 -0500 Original-Received: from [199.232.76.173] (port=58886 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeJvA-0006Vq-3D for emacs-devel@gnu.org; Mon, 02 Mar 2009 20:59:48 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:51860) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LeJv7-0004PH-5c; Mon, 02 Mar 2009 20:59:45 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n231xgT4013531; Tue, 3 Mar 2009 10:59:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n231xgQ3012530; Tue, 3 Mar 2009 10:59:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id n231xegi029721; Tue, 3 Mar 2009 10:59:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LeJvf-0001m9-Ol; Tue, 03 Mar 2009 11:00:19 +0900 In-reply-to: (message from Kenichi Handa on Mon, 16 Feb 2009 17:12:04 +0900) X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.aist.go.jp id n231xgT4013531 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109398 Archived-At: In article , Kenichi Handa wri= tes: > In article , Miles Bader writes: > > (1) Start emacs -Q > > (2) Visit "/tmp/fff" > > (3) Insert the following chars: "=CE=B8=CF=91=CE=98" > > (4) Set the buffer file encoding to latin1 with: C-x C-m f latin-1 RE= T > > (5) Save the buffer: C-x C-s > > For me, "/tmp/fff" is saved sucessfully, with no error or prompt, usi= ng > > an encoding of utf-8 -- despite my having explicitly requested latin-= 1. > > This doesn't seem right... > I agree. I'll work on it if nobody else is working on it. I've just installed these fixes: 2009-03-03 Kenichi Handa * files.el (basic-save-buffer-1): Set car part of buffer-file-coding-system-explicit. (revert-buffer): Check car part of buffer-file-coding-system-explicit. * international/mule-cmds.el (select-safe-coding-system): If cdr part of buffer-file-coding-system-explicit is set, ignore default-buffer-file-coding-system and the most preferred coding system. * international/mule.el (set-buffer-file-coding-system): Set cdr part of buffer-file-coding-system-explicit. (after-insert-file-set-coding): Set buffer-file-coding-system-explicit to a cons. --- Kenichi Handa handa@m17n.org