From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: EOL conversion of files in .tar archives Date: Thu, 24 May 2007 10:48:34 +0300 Message-ID: References: <87abvwrzwz.fsf@stupidchicken.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1179992927 30696 80.91.229.12 (24 May 2007 07:48:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 May 2007 07:48:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 24 09:48:43 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 1Hr83t-0007ST-FK for ged-emacs-devel@m.gmane.org; Thu, 24 May 2007 09:48:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hr83u-0001bP-Ow for ged-emacs-devel@m.gmane.org; Thu, 24 May 2007 03:48:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hr83r-0001YD-Ai for emacs-devel@gnu.org; Thu, 24 May 2007 03:48:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hr83p-0001XA-T7 for emacs-devel@gnu.org; Thu, 24 May 2007 03:48:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hr83p-0001Wy-P6 for emacs-devel@gnu.org; Thu, 24 May 2007 03:48:37 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hr83o-0000OD-J0 for emacs-devel@gnu.org; Thu, 24 May 2007 03:48:37 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-2-188.inter.net.il [84.228.2.188]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HXE73230 (AUTH halo1); Thu, 24 May 2007 10:48:27 +0300 (IDT) In-reply-to: (message from Kenichi Handa on Thu, 24 May 2007 10:01:43 +0900) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:71708 Archived-At: > From: Kenichi Handa > CC: cyd@stupidchicken.com, emacs-devel@gnu.org > Date: Thu, 24 May 2007 10:01:43 +0900 > > > On the trunk the change is not conditioned on w32. > > For the trunk, how about trying the fix of my version > (i.e. the change to find-buffer-file-type-coding-system)? I'm uneasy with that change, because there are other places that use a cons cell as the second argument to find-operation-coding-system, and I'm not sure what you propose is good for them. For example, mule.el defines a utility function decode-coding-inserted-region that also uses a cons cell. (This utility function is currently used in jka-compr.el, pcvs.el and url-handlers.el.) Both it and its users are sufficiently complex that I couldn't easily decide whether the change you suggest will DTRT for them. Can you help me understand that? > By the way, for emacs-unicode-2, I have a plan of new > functions insert-region-contents and write-region-to-buffer > that do the similar thing as insert-file-contents and > write-region but gets/puts the contents from/to a region of > a specified buffer. They encapsulte various weird tasks for > decoding and encoding, and can easility be used both by > tar-mode and arc-mode. That's good to hear. I hope that insert-file-contents and write-region will be implemented on top of these new primitives, or at least that they all will use the same subroutines to encode/decode text and set the buffer's file coding system, because currently tar-mode and arc-mode mimic those parts of insert-file-contents (in two subtly different ways).