unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ishikawa <chiaki.ishikawa@ubin.jp>
To: Miles Bader <miles@gnu.org>
Cc: storm@cua.dk, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: A new(?) warning of erase-buffer, which was not seen before.
Date: Fri, 23 Mar 2007 18:47:11 +0900	[thread overview]
Message-ID: <4603A21F.5030608@ubin.jp> (raw)
In-Reply-To: <87vegsj244.fsf@catnip.gol.com>

Miles Bader wrote:
> Richard Stallman <rms@gnu.org> writes:
>> Actually, we want people to tell us where they get these messages,
>> so that we can learn about Emacs modes and facilities
>> where we ought to turn off undo.
> 
> This is an issue for post-release, but:
> 
> I think comint is an obvious candidate for this -- the throughput in a
> comint buffer can be massive, and basically you never want to undo
> anything except small user edits at the end.  Indeed, it's all to easy
> to accidentally undo part of the process output, which just messes
> things up.  However, it _is_ handy to have undo for user edits of the
> command line.
> 
> Ideally, you could keep undo information _only_ for user edits, and
> flush even that whenever the user submits a line of input to the
> subprocess (so once submitted, a command line would become "permanent").
> 
> I've been working on some patches to comint to do this, by selectively
> disabling undo at various points, but it's not entirely straight-forward
> because you then have to fix up the undo list to account for the
> unrecorded buffer changes.
> 
> -Miles
> 

Hi,

Come to think of it, my original post was concerning a buffer
which actually contains interactive-shell mode buffer (I invoked it
with M-x shell and then later renamed it to "*sim*" since a buffer
of which name starts with "*" is not the target of confirmation for saving when 
we quit emacs. The buffer contains the massive output of
a running simulator program which I want to check from time to time,
but basically I can safely throw it away whenever the
buffer becomes too large.

I am not familiar with the current emacs, but if comint is the underlying
base for "shell" mode, then I agree that the above change will
solve all my concerns. (I don't understand the "unrecorded buffer changes" above 
[whose change? subprocess?], but I think that is a side issue.)

As a matter of fact, "undo" is probably unnecessary even for
small user command editing if we use a shell that supports
the printing of past history of executed command.
In order to pick up old command line for new editing,
we can always run, say, "history" to bash to choose the
command line even if we lost the region that contains
that particular command line by mistake or something.

But not all the interactive program that talks with us at the other
end supports "list command history" command. So comint might have to deal
with user input editing issues. At least, "shell" mode might be
an easy target.


Chiaki Ishikawa

  reply	other threads:[~2007-03-23  9:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19  2:20 A new(?) warning of erase-buffer, which was not seen before ishikawa
2007-03-19 12:19 ` Kim F. Storm
2007-03-20  3:48   ` ishikawa
2007-03-20  9:42     ` Kim F. Storm
2007-03-22 11:08       ` ishikawa
2007-03-22 22:50         ` Richard Stallman
2007-03-22 23:21           ` Miles Bader
2007-03-23  9:47             ` ishikawa [this message]
2007-03-23 14:52               ` Davis Herring
2007-03-23  9:54             ` Johan Bockgård
2007-03-23 11:31               ` Miles Bader
2007-03-23 12:56                 ` Johan Bockgård
2007-03-23 16:54                   ` Stefan Monnier
2007-03-23 17:01                     ` Lennart Borgman (gmail)
2007-03-23 17:35                       ` martin rudalics
2007-03-24  2:41                         ` Miles Bader
2007-03-24  9:09                           ` martin rudalics
2007-03-19 18:10 ` Richard Stallman
2007-03-20  3:52   ` ishikawa

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=4603A21F.5030608@ubin.jp \
    --to=chiaki.ishikawa@ubin.jp \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=rms@gnu.org \
    --cc=storm@cua.dk \
    /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).