[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editing change groups
From: |
Ben Bacarisse |
Subject: |
Re: Editing change groups |
Date: |
Fri, 09 Nov 2018 11:41:29 +0000 |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> I have the following requirement for a user interface: if the user hits
> a key, something in the buffer is replaced with something else. Doing
> this potentially involves several editing operations. If the user hits
> the same key again, the old contents are restored.
Would fiddling with the undo mechanism not be a better way to do this?
https://www.gnu.org/software/emacs/manual/html_node/elisp/Undo.html
I've never tried to do what you ask this way (so I'm, just speculating)
but it looks like one place to start.
--
Ben.
- Re: Editing change groups, (continued)
Re: Editing change groups,
Ben Bacarisse <=