unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Plaksin <happy@mcplaksin.org>
Subject: Re: term.el and undo
Date: Wed, 25 Aug 2004 16:25:23 -0400	[thread overview]
Message-ID: <m37jrnhsng.fsf@water.tss.usg.edu> (raw)
In-Reply-To: 87brgzml03.fsf@deneb.enyo.de

Florian Weimer <fw@deneb.enyo.de> writes:

> * David Kastrup:
>
>> However, since the whole point of term is to provide an
>> ncurses-capable terminal, and since undo or any other output or cursor
>> movement operation not initiated from the device writing into the
>> pseudotty would lead to a discrepancy between the screen contents and
>> the application's expectations, _any_ editing by the user including
>> undo would seem completely pointless.
>
> Minor nitpick: In *line* *mode*, undo does make sense, because the
> application doesn't see any data before the user presses RET.  (Line
> mode is the default mode, and typically it supports limited line
> editing via ^H, ^W and ^U.)

Right but it only makes sense *on the current command-line*.  Undoing
anything beyond that will make the point move to some random place in the
window where some prior insert happened.

Say you typed ls at the top of the window and the output took up half the
window.  The point is in the middle of the window.  Then while typing your
next command you delete some text and want to undo the deletion.  That
works fine unless you undo again--that will make the point move to the top
of the buffer which probably isn't what you want.

  reply	other threads:[~2004-08-25 20:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-22 23:39 term.el and undo Richard Stallman
2004-08-23  1:43 ` undo in compilation mode Karl Chen
2004-08-23 23:26   ` Richard Stallman
2004-08-23 23:32     ` Florian Weimer
2004-08-24 21:02       ` Richard Stallman
2004-08-24 23:25         ` Karl Chen
2004-08-24  2:08     ` Stefan
2004-08-24 14:50       ` Karl Chen
2004-08-25  4:41         ` Richard Stallman
2004-08-24 20:13 ` term.el and undo Mark Plaksin
2004-08-25  4:41   ` Richard Stallman
2004-08-25  8:03     ` David Kastrup
2004-08-25 12:59       ` Florian Weimer
2004-08-25 20:25         ` Mark Plaksin [this message]
2004-08-25 22:40       ` 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=m37jrnhsng.fsf@water.tss.usg.edu \
    --to=happy@mcplaksin.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).