From: David Kastrup <dak@gnu.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: New undo element (fun . args)
Date: Mon, 07 Feb 2005 13:25:35 +0100 [thread overview]
Message-ID: <x58y608slc.fsf@lola.goethe.zz> (raw)
In-Reply-To: <m3ekfsk2qg.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Mon, 07 Feb 2005 12:51:03 +0100")
storm@cua.dk (Kim F. Storm) writes:
> storm@cua.dk (Kim F. Storm) writes:
>
>>> In what way does the undo process fail to work? Where is the
>>> bug?
>>
>> I'm not sure it is a bug in the undo machinery or the way I try to
>> use it in cua, or a combination...
>
> I have installed change to cua to use the new undo apply element.
>
> The problems reported earlier were just errors in my code.
>
> It turned out to be quite tricky to get the usage right as an apply
> function need to install a proper _redo_ entry which may not really
> do anything but re-install the original _undo_ entry etc.
>
>
> I also changed primitive-undo to install at most one dummy apply
> element.
A _lot_ of people are annoyed at the way `undo' also redos things.
For that reason, a package redo.el exists, and people get told about
it frequently on Emacs lists and groups.
I consider it likely that with the new changes, this package will no
longer work. I also have detected the variable undo-no-redo (not
customizable, though) which wouls appear from its name and description
to solve one half of the problem, the remaining half being that an
actual redo command working in the opposite direction would be
required.
Even if we don't find an actual keybinding for that (one could see
what redo.el uses), using undo with a negative argument could be used
instead.
Since we are likely to break redo.el, wouldn't it be sensible to
provide the functionality from within Emacs once and for all? It does
not seem like much would be missing for implementing this, and one
could even make do without an extra keybinding by using negative
prefixes to undo.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2005-02-07 12:25 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 0:47 New undo element (fun . args) Kim F. Storm
2005-01-30 1:24 ` Miles Bader
2005-01-30 15:07 ` Stefan Monnier
2005-01-30 17:22 ` Kim F. Storm
2005-01-30 18:11 ` Kim F. Storm
2005-01-31 12:01 ` Richard Stallman
2005-01-31 13:02 ` Kim F. Storm
2005-01-31 22:53 ` Kim F. Storm
2005-02-02 7:28 ` Richard Stallman
2005-02-02 7:28 ` Richard Stallman
2005-02-02 14:35 ` Stefan Monnier
2005-02-02 15:41 ` Kim F. Storm
2005-02-03 19:13 ` Richard Stallman
2005-02-04 15:40 ` Kim F. Storm
2005-02-05 17:39 ` Richard Stallman
2005-02-07 8:23 ` Kim F. Storm
2005-02-07 20:51 ` Richard Stallman
2005-02-09 21:50 ` Kim F. Storm
2005-02-07 11:51 ` Kim F. Storm
2005-02-07 12:25 ` David Kastrup [this message]
2005-02-07 14:14 ` Stefan Monnier
2005-02-08 11:47 ` Richard Stallman
2005-02-08 11:46 ` Richard Stallman
2005-02-08 12:53 ` Kim F. Storm
2005-02-03 19:13 ` Richard Stallman
2005-01-31 0:19 ` 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=x58y608slc.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--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).