From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: save-buffer in tar-mode Date: 12 Feb 2004 12:12:37 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040204.135033.207583862.Takaaki.Ota@am.sony.com> <200402121304.WAA11159@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076607859 5847 80.91.224.253 (12 Feb 2004 17:44:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2004 17:44:19 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Takaaki.Ota@am.sony.com Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Feb 12 18:44:11 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ArKsl-0000Ai-00 for ; Thu, 12 Feb 2004 18:44:11 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ArKsl-0004Yx-00 for ; Thu, 12 Feb 2004 18:44:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArKnP-0002Nx-CD for emacs-devel@quimby.gnus.org; Thu, 12 Feb 2004 12:38:39 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ArKfQ-0000pA-3m for emacs-devel@gnu.org; Thu, 12 Feb 2004 12:30:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ArKVb-00071l-VF for emacs-devel@gnu.org; Thu, 12 Feb 2004 12:20:47 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArKOL-0005yS-Sa; Thu, 12 Feb 2004 12:12:46 -0500 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id BA04721481; Thu, 12 Feb 2004 12:12:37 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 4F86F8C708; Thu, 12 Feb 2004 12:12:37 -0500 (EST) Original-To: Kenichi Handa In-Reply-To: <200402121304.WAA11159@etlken.m17n.org> Original-Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-0.904, requis 5, BAYES_30 -0.90) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19893 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19893 > To avoid changing enable-multibyte-characters, I have > another idea. While we're throwing around ideas, I'd mention the one I had already presented in the past: allow switching the buffer's text between two buffers. The idea is: find-file loads the tar file's content into buffer A. tar-mode is called which needs to show in buffer A the TOC (in multibyte since it's made of chars). Currently it does this by prepending the TOC and using narrowing to hide the actual tar data (which really wants to be in unibyte since it's made of bytes). What tar-mode would ideally want to do is copy the tar data to auxiliary buffer B so buffer A could be in multibyte and buffer A in unibyte, but copying 25MB of tar data is a bit costly, so instead we could offer a primitive that swaps the buffer_text of two buffers. Or something along these lines. Stefan