From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5553: 23.1.92; Archives with wrong coding system Date: Thu, 11 Feb 2010 00:33:23 +0200 Organization: JURTA Message-ID: <87y6j0souk.fsf@mail.jurta.org> References: <87bpfzxana.fsf@mail.jurta.org> <83y6j2ca3r.fsf@gnu.org> <87d40dvrar.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265842738 7890 80.91.229.12 (10 Feb 2010 22:58:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2010 22:58:58 +0000 (UTC) Cc: 5553@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 23:58:55 2010 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.69) (envelope-from ) id 1NfLWH-0002zL-0Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 23:58:53 +0100 Original-Received: from localhost ([127.0.0.1]:45819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfLWG-0006FD-DT for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 17:58:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfLQ9-0002Dw-2m for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 17:52:33 -0500 Original-Received: from [199.232.76.173] (port=53687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfLQ8-0002Dc-Ld for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 17:52:32 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfLQ6-0000O7-Nl for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 17:52:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43152) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfLQ5-0000NP-Qx for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 17:52:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NfLE3-00043I-Cj; Wed, 10 Feb 2010 17:40:03 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Feb 2010 22:40:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5553 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5553-submit@debbugs.gnu.org id=B5553.126584156015543 (code B ref 5553); Wed, 10 Feb 2010 22:40:03 +0000 Original-Received: (at 5553) by debbugs.gnu.org; 10 Feb 2010 22:39:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfLDL-00042e-RA for submit@debbugs.gnu.org; Wed, 10 Feb 2010 17:39:20 -0500 Original-Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfLDJ-00042V-V0 for 5553@debbugs.gnu.org; Wed, 10 Feb 2010 17:39:18 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.93.219.cable.starman.ee [82.131.93.219]) by mx1.starman.ee (Postfix) with ESMTP id DF6BE3F408F; Thu, 11 Feb 2010 00:39:10 +0200 (EET) In-Reply-To: (Stefan Monnier's message of "Wed, 10 Feb 2010 15:14:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 10 Feb 2010 17:40:03 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:35028 Archived-At: >> So the question is whether we should complement entries in >> `magic-fallback-mode-alist' with the corresponding entries in >> `auto-coding-regexp-alist' with the same regexps (like we complement >> entries in `auto-mode-alist' with entries in `auto-coding-alist')? > >> Or every function in `auto-coding-functions' that determines a coding system >> should somehow take care of exceptions in `magic-fallback-mode-alist'? > > I think that auto-coding-alist should allow mapping not only file-names > but also major modes to coding-systems. This should hopefully take care > of those issues by mapping image-mode and archive-mode to no-conversion. I don't understand how this is possible because currently a coding system should be recognized before mode is chosen: 1. Recognizing Coding Systems 1.1. coding-system-for-read if non-nil 1.2. auto-coding-alist matching a filename 1.3. auto-coding-regexp-alist matching first bytes 1.4. `-*- coding: -*-' tag 1.5. auto-coding-functions (e.g. unicad-universal-charset-detect) 1.6. file-coding-system-alist matching a filename 2. Choosing Modes 2.1. `-*- mode: -*-' tag 2.2. interpreter-mode-alist 2.3. magic-mode-alist 2.4. auto-mode-alist 2.5. magic-fallback-mode-alist -- Juri Linkov http://www.jurta.org/emacs/