unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, rms@gnu.org, Takaaki.Ota@am.sony.com
Subject: Re: save-buffer in tar-mode
Date: 12 Feb 2004 12:12:37 -0500	[thread overview]
Message-ID: <jwv8yj88bwc.fsf-monnier+emacs/devel@asado.iro.umontreal.ca> (raw)
In-Reply-To: <200402121304.WAA11159@etlken.m17n.org>

> To avoid changing enable-multibyte-characters, I have
> another idea.

While we're throwing around ideas, I'd mention the one I had already
presented in the past: allow switching the buffer's text between
two buffers.
The idea is:
find-file loads the tar file's content into buffer A.

tar-mode is called which needs to show in buffer A the TOC (in multibyte
since it's made of chars).  Currently it does this by prepending the TOC and
using narrowing to hide the actual tar data (which really wants to be in
unibyte since it's made of bytes).  What tar-mode would ideally want to do
is copy the tar data to auxiliary buffer B so buffer A could be in multibyte
and buffer A in unibyte, but copying 25MB of tar data is a bit costly, so
instead we could offer a primitive that swaps the buffer_text of
two buffers.  Or something along these lines.


        Stefan

  reply	other threads:[~2004-02-12 17:12 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 [this message]
     [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=jwv8yj88bwc.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=rms@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).