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: 03 Mar 2004 17:32:55 -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> <200403021222.VAA17913@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 1078564280 548 80.91.224.253 (6 Mar 2004 09:11:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Mar 2004 09:11:20 +0000 (UTC) Cc: emacs-devel@gnu.org, Takaaki.Ota@am.sony.com, Kenichi Handa Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Mar 06 10:11:10 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 1AzXpu-0004B4-00 for ; Sat, 06 Mar 2004 10:11:10 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AzXpu-0007Ff-00 for ; Sat, 06 Mar 2004 10:11:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AzXi0-00081B-9B for emacs-devel@quimby.gnus.org; Sat, 06 Mar 2004 04:03:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Ayevn-0004PJ-D4 for emacs-devel@gnu.org; Wed, 03 Mar 2004 17:33:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AyevG-00042o-Of for emacs-devel@gnu.org; Wed, 03 Mar 2004 17:33:33 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyevG-00042c-Gq; Wed, 03 Mar 2004 17:33:02 -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 E7FC120A14; Wed, 3 Mar 2004 17:32:56 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 1842F8C8E4; Wed, 3 Mar 2004 17:32:56 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: Original-Lines: 27 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=-1.428, requis 5, BAYES_20 -1.43) 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:20252 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20252 > I think it would work, and it might be a good idea. > However, something about it seems not quite right. > I have the feeling that the really right thing to do would > be different in some detail. Completely agreed, which is why I haven't hacked this feature. I feel like it's likely to get into nasty issues with markers and internal vars (like display vars and such) that would need to be updated/invalidated. The problem is: - start with a big hunk of data in buffer A - call tar-mode - end with small TOC in buffer A and the big hunk of data in buffer B Maybe a function `buffer-move' which does like `buffer-insert' except that it can only insert into an empty buffer and that it deletes the text from the source buffer. But in any case, maybe this is just very silly and a plain copy of 25MB would work just as well. After all when we have to move the gap to update this tar buffer, we also have to move a significant fraction of those 25MB, so it won't make things much worse than they already are. Stefan