From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Takaaki.Ota@am.sony.com,
Kenichi Handa <handa@m17n.org>
Subject: Re: save-buffer in tar-mode
Date: 03 Mar 2004 17:32:55 -0500 [thread overview]
Message-ID: <jwv65dlmv6u.fsf-monnier+emacs/devel@asado.iro.umontreal.ca> (raw)
In-Reply-To: <E1AyY95-0001mI-Ee@fencepost.gnu.org>
> 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
next prev parent reply other threads:[~2004-03-03 22:32 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv65dlmv6u.fsf-monnier+emacs/devel@asado.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
--cc=Takaaki.Ota@am.sony.com \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.