From: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: emacs-devel@gnu.org
Subject: Re: save-buffer in tar-mode
Date: Wed, 04 Feb 2004 15:53:31 -0800 (PST) [thread overview]
Message-ID: <20040204.155331.190222248.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <200402042336.IAA02815@etlken.m17n.org>
Thu, 5 Feb 2004 08:36:51 +0900 (JST): Kenichi Handa <handa@m17n.org> wrote:
> In article <20040204.135033.207583862.Takaaki.Ota@am.sony.com>, Tak Ota <Takaaki.Ota@am.sony.com> 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
next prev parent reply other threads:[~2004-02-04 23:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-04 21:50 save-buffer in tar-mode Tak Ota
2004-02-04 23:36 ` Kenichi Handa
2004-02-04 23:53 ` Tak Ota [this message]
2004-02-05 2:17 ` Kenichi Handa
2004-02-05 2:54 ` Stefan Monnier
2004-02-09 9:39 ` Richard Stallman
2004-02-12 13:04 ` Kenichi Handa
2004-02-12 17:12 ` Stefan Monnier
[not found] ` <200403021222.VAA17913@etlken.m17n.org>
2004-03-03 15:18 ` Richard Stallman
2004-03-03 22:32 ` Stefan Monnier
2004-03-05 12:15 ` Richard Stallman
2004-02-13 17:35 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040204.155331.190222248.Takaaki.Ota@am.sony.com \
--to=takaaki.ota@am.sony.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).