unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: monnier+gnu/emacs@rum.cs.yale.edu
Subject: Re: setenv -> locale-coding-system cannot handle ASCII?!
Date: Wed, 26 Feb 2003 18:26:12 -0500	[thread overview]
Message-ID: <E18oAwG-0000a9-00@fencepost.gnu.org> (raw)
In-Reply-To: <200302260749.QAA29494@etlken.m17n.org> (message from Kenichi Handa on Wed, 26 Feb 2003 16:49:15 +0900 (JST))

    > PS: I wish there was a way to swap two buffers's content so that
    >     tar-mode could swap the (potentially very large) data to
    >     a helper buffer (without needing to copy this large data)

    I think tar-mode should use multiple buffers, one unibyte
    buffer for tar-file itself, one multibyte buffer for table
    of contents, and the other multibyte buffers (created on
    demand) for viewing/editing files contained in the tar-file.

It does use other multibyte buffers (created on demand) for
viewing/editing the contained files.  So the change here would
be in using two buffers for the main file.

You would want the buffer that users know about to contain the ASCII
directory listing.  So the buffer that contains the actual tar file
would want to be another file.  That would work fine except perhaps
for complications in reading in the file.  The feature of
swapping contents between two buffers might indeed be useful here.
And it is probably easy to implement.

    Hmm...looking at the code, it does seem like there really isn't
    any save-current-buffer interfering.  Can we rely on that ?
    Should we document it ?
    It's rather unusual for a major-mode function to switch the
    current buffer.

I think that is a kludge, and that contents-swapping for the
same buffer is much cleaner.

  parent reply	other threads:[~2003-02-26 23:26 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-25  0:18 setenv -> locale-coding-system cannot handle ASCII?! Sam Steingold
2003-02-25  6:34 ` Kenichi Handa
2003-02-25  6:47   ` Miles Bader
2003-02-26  0:58     ` Kenichi Handa
2003-02-26  2:11       ` Stefan Monnier
2003-02-26  2:34         ` Kenichi Handa
2003-02-26  2:52           ` Stefan Monnier
2003-02-26  5:32             ` Kenichi Handa
2003-02-26  5:50               ` Stefan Monnier
2003-02-26  7:49                 ` Kenichi Handa
2003-02-26  8:05                   ` Kenichi Handa
2003-02-26  8:08                     ` Stefan Monnier
2003-02-26  8:12                   ` Stefan Monnier
2003-02-26  8:38                     ` tar-mode Kenichi Handa
2003-02-26  8:53                       ` tar-mode Stefan Monnier
2003-02-26 11:53                         ` tar-mode Kenichi Handa
2003-02-26 12:22                           ` tar-mode Stefan Monnier
2003-02-26 23:26                   ` setenv -> locale-coding-system cannot handle ASCII?! Richard Stallman
2003-02-26 23:26                   ` Richard Stallman [this message]
2003-02-26 23:26                 ` Richard Stallman
2003-02-26 23:26               ` Richard Stallman
2003-02-27  0:06                 ` Miles Bader
2003-03-03 18:59                   ` Richard Stallman
2003-03-04  2:48                     ` Miles Bader
2003-03-04  4:33                       ` Kenichi Handa
2003-03-05 20:46                       ` Richard Stallman
2003-02-26 23:25       ` 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=E18oAwG-0000a9-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=monnier+gnu/emacs@rum.cs.yale.edu \
    /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).