From: martin rudalics <rudalics@gmx.at>
To: Miles Bader <miles@gnu.org>
Cc: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>,
emacs-devel@gnu.org
Subject: Re: A new(?) warning of erase-buffer, which was not seen before.
Date: Sat, 24 Mar 2007 10:09:40 +0100 [thread overview]
Message-ID: <4604EAD4.4090207@gmx.at> (raw)
In-Reply-To: <87d52zs6q9.fsf@catnip.gol.com>
> In the case of comint, I'd actually like to try supporting a model where
> the undo-list-updating is _not_ handled directly by the text modifying
> code -- i.e. `insert/delete-without-undo' wouldn't work. The reason is
> that some text modification is done by various hook functions in comint,
> and those are harder to control (e.g. they may be written by the user).
>
> I don't think this is too much of a problem given the restrictions of
> comint mode (where non-undoable and undoable modifications are separated
> by a clear boundary).
Agreed.
> To support this model in a more general manner I guess would require
> primitive support (e.g., something like an `inhibit-undo' variable which
> would cause primitives to adjust the undo list instead of recording undo
> information).
I think it's not feasible. I tried to write such code for customization
buffers - where undo can erase entire buffer contents - but didn't get
very far. It should be possible though since these undos have "clear
boundaries" as for the comint case (hence you could try to have a look
at this - maybe you come up with a solution that works for both). A
general solution would virtually have to undo every single action on the
undo list to check how a current non-undoable modification interferes
with undoable ones.
next prev parent reply other threads:[~2007-03-24 9:09 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
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 [this message]
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=4604EAD4.4090207@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=miles@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).