From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: save-buffer in tar-mode Date: Wed, 04 Feb 2004 15:53:31 -0800 (PST) Organization: Sony Electronics Inc. Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040204.155331.190222248.Takaaki.Ota@am.sony.com> References: <20040204.135033.207583862.Takaaki.Ota@am.sony.com> <200402042336.IAA02815@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1075942564 24842 80.91.224.253 (5 Feb 2004 00:56:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2004 00:56:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Feb 05 01:55:53 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 1AoXo8-0001zS-00 for ; Thu, 05 Feb 2004 01:55:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AoXo8-0007l7-00 for ; Thu, 05 Feb 2004 01:55:52 +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 1AoXmh-00057O-Ru for emacs-devel@quimby.gnus.org; Wed, 04 Feb 2004 19:54:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AoXla-0004zV-5s for emacs-devel@gnu.org; Wed, 04 Feb 2004 19:53:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AoXkv-0004RB-Jc for emacs-devel@gnu.org; Wed, 04 Feb 2004 19:53:04 -0500 Original-Received: from [160.33.82.69] (helo=mail2.fw-sj.sony.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AoXku-0004Pv-Nf for emacs-devel@gnu.org; Wed, 04 Feb 2004 19:52:32 -0500 Original-Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail2.fw-sj.sony.com (8.8.8/8.8.8) with ESMTP id AAA01592; Thu, 5 Feb 2004 00:52:26 GMT Original-Received: by mail3.sjc.in.sel.sony.com id XAA28410; Wed, 4 Feb 2004 23:53:32 GMT Original-To: handa@m17n.org In-Reply-To: <200402042336.IAA02815@etlken.m17n.org> X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew-4.0.64 on Emacs-21.3.50.1 (i386-msvc-nt5.1.2600) of 2004-02-04 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:19721 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19721 Thu, 5 Feb 2004 08:36:51 +0900 (JST): Kenichi Handa wrote: > In article <20040204.135033.207583862.Takaaki.Ota@am.sony.com>, Tak Ota writes: > > Recently I realized that undo information was discarded as soon as > > executing save-buffer in a buffer which was opened from tar-mode. > > tar-subfile-save-buffer at a glance didn't lead me to exactly where it > > discarded undo information. Anyway, is this an intended behavior? > > Yes. tar-mode toggles enable-multibyte-characters on saving > a file by set-buffer-multibyte and that function discards > undo info. To fix it, we must record this toggling in > buffer-undo-list. I proposed it long ago but was rejected > at that time (I don't remember the reason, perhaps, just > because it's not worth to work on it). Thanks for the explanation. I think it should be fixed. Or, at least this unwelcome side effect should be mentioned (warned) in the doc string of set-buffer-multibyte where currently no mentioning about this hidden trap. -Tak