From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: EOL conversion of files in .tar archives Date: Tue, 22 May 2007 19:09:49 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1179875449 6063 80.91.229.12 (22 May 2007 23:10:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 23:10:49 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 23 01:10:46 2007 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 1HqdV1-0002vT-3y for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 01:10:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqdV1-0000lr-4a for ged-emacs-devel@m.gmane.org; Tue, 22 May 2007 19:10:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqdUQ-0000Fo-4W for emacs-devel@gnu.org; Tue, 22 May 2007 19:10:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqdUP-0000Ea-FT for emacs-devel@gnu.org; Tue, 22 May 2007 19:10:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqdUP-0000ES-4c for emacs-devel@gnu.org; Tue, 22 May 2007 19:10:01 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HqdUO-0003sO-0K for emacs-devel@gnu.org; Tue, 22 May 2007 19:10:00 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HqdUD-0001pp-IP; Tue, 22 May 2007 19:09:49 -0400 In-reply-to: (message from Eli Zaretskii on Tue, 22 May 2007 14:19:14 +0300) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:71635 Archived-At: I'd like to suggest an alternative change that is local to tar-mode.el, see below. It mimics what arc-mode.el does. Ok with me (especially since this is already tested in arc-mode). The latter is preloaded into Emacs on Windows, and if I visit a file inside a tarball (after applying the patch below), plain text files with Unix EOLs get latin-1-unix buffer-file-coding-system, instead of the expected undecided-unix. But if I manually load dos-w32.el and visit the same file again, its buffer-file-coding-system is now undecided-unix, as expected! What happens if you load the file and then use `byte-compile' to compile that function? Does that fail? If so, what happens if you add some debugging setqs in the code of that function, and then use `byte-compile' to compile that function? Does that fail? You could debug it in detail that way. It could also be useful to use M-x disassemble to verify that the bytecode correctly fits the Lisp code.