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: 04 Feb 2004 21:54:47 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040204.135033.207583862.Takaaki.Ota@am.sony.com> <200402042336.IAA02815@etlken.m17n.org> <20040204.155331.190222248.Takaaki.Ota@am.sony.com> <200402050217.LAA03338@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 1075949948 4712 80.91.224.253 (5 Feb 2004 02:59:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2004 02:59:08 +0000 (UTC) Cc: Takaaki.Ota@am.sony.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Feb 05 03:58:58 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 1AoZjG-0008HQ-00 for ; Thu, 05 Feb 2004 03:58:58 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AoZjF-00026w-00 for ; Thu, 05 Feb 2004 03:58:57 +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 1AoZiN-0007Tq-4s for emacs-devel@quimby.gnus.org; Wed, 04 Feb 2004 21:58:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AoZiG-0007TV-3W for emacs-devel@gnu.org; Wed, 04 Feb 2004 21:57:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AoZhj-0007NZ-4X for emacs-devel@gnu.org; Wed, 04 Feb 2004 21:57:54 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AoZfG-0006zy-UA for emacs-devel@gnu.org; Wed, 04 Feb 2004 21:54:50 -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 1F8182134B; Wed, 4 Feb 2004 21:54:49 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 007578C708; Wed, 4 Feb 2004 21:54:47 -0500 (EST) Original-To: Kenichi Handa In-Reply-To: <200402050217.LAA03338@etlken.m17n.org> Original-Lines: 15 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=-4.9, requis 5, BAYES_00 -4.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:19727 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19727 > If the multibyte flag was really changed, undo information of the > current buffer is cleared. Jonathan Yavner suggested to extend the undo log format with entries like (function FUN . ARGS). This would work wonders in this case. Stefan PS: The only difficulty I see with the proposal is what to do with the undo-in-region feature which generally needs to know which part of the buffer is modified by a given undo item and should be able to update an undo item so it applies to another part of the buffer (akin to updating markers) so I suggested to turn it into (function FUN START LEN . ARGS).