From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4712: File encoding Date: Sat, 17 Oct 2009 00:01:10 -0400 Message-ID: References: <83fx9lj0zm.fsf@gnu.org> Reply-To: Stefan Monnier , 4712@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255753661 27624 80.91.229.12 (17 Oct 2009 04:27:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2009 04:27:41 +0000 (UTC) To: 4712@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 17 06:27:30 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mz0t4-00065S-4A for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Oct 2009 06:27:26 +0200 Original-Received: from localhost ([127.0.0.1]:34601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mz0t3-0000Xy-E2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Oct 2009 00:27:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mz0sy-0000Xr-UN for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2009 00:27:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mz0su-0000We-7K for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2009 00:27:20 -0400 Original-Received: from [199.232.76.173] (port=39941 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mz0su-0000WZ-0G for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2009 00:27:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39319) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mz0st-0004Lc-G3 for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2009 00:27:15 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9H4RBPb012917; Fri, 16 Oct 2009 21:27:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9H4A6uU010520; Fri, 16 Oct 2009 21:10:06 -0700 Resent-Date: Fri, 16 Oct 2009 21:10:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 17 Oct 2009 04:10:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4712 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4712-submit@emacsbugs.donarmstrong.com id=B4712.12557520788976 (code B ref 4712); Sat, 17 Oct 2009 04:10:06 +0000 Original-Received: (at 4712) by emacsbugs.donarmstrong.com; 17 Oct 2009 04:01:18 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9H41GbZ008973 for <4712@emacsbugs.donarmstrong.com>; Fri, 16 Oct 2009 21:01:18 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtAEAJbe2EpFpY7q/2dsb2JhbACBUdZshDEEh30 X-IronPort-AV: E=Sophos;i="4.44,577,1249272000"; d="scan'208";a="47727576" Original-Received: from 69-165-142-234.dsl.teksavvy.com (HELO pastel.home) ([69.165.142.234]) by ironport2-out.pppoe.ca with ESMTP; 17 Oct 2009 00:01:11 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E6B597F87; Sat, 17 Oct 2009 00:01:10 -0400 (EDT) In-Reply-To: (Andreas Schwab's message of "Thu, 15 Oct 2009 11:38:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 17 Oct 2009 00:27:20 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32029 Archived-At: I believe the patch below fixed the problem, Stefan --- mule-cmds.el.~1.375.~ 2009-10-15 18:22:51.000000000 -0400 +++ mule-cmds.el 2009-10-16 23:56:10.000000000 -0400 @@ -889,13 +889,13 @@ default-coding-system)) (if (and auto-cs (not no-other-defaults)) - ;; If the file has a coding cookie, try to use it before anything - ;; else (i.e. before default-coding-system which will typically come - ;; from file-coding-system-alist). + ;; If the file has a coding cookie, use it regardless of any + ;; other setting. (let ((base (coding-system-base auto-cs))) (or (memq base '(nil undecided)) - (rassq base default-coding-system) - (push (cons auto-cs base) default-coding-system)))) + (progn + (setq default-coding-system (list (cons auto-cs base))) + (setq no-other-defaults t))))) (unless no-other-defaults ;; If buffer-file-coding-system is not nil nor undecided, append it