[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save-buffer in tar-mode

From: Tak Ota
Subject: Re: save-buffer in tar-mode
Date: Wed, 04 Feb 2004 15:53:31 -0800 (PST)

Thu, 5 Feb 2004 08:36:51 +0900 (JST): Kenichi Handa <address@hidden> wrote:

> In article <address@hidden>, Tak Ota <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]