unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: weber <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Undo customization for a function
Date: Wed, 16 Jul 2008 06:24:13 -0700 (PDT)	[thread overview]
Message-ID: <d26fd961-53f5-4d9c-9da6-c57bbaaeec8a@59g2000hsb.googlegroups.com> (raw)

Hi folks.

Suppose a function F that is executed several times in a row.
Is there any way that I can customize undo behavior so that undoing
reverts all changes for sucessive calls?

Something like this:

state A
user calls `insert'
state B
user calls `F'
state C
user calls `F'
state D

and after this, calling undo reverts buffer to state B?

Thanks in advance,
weber


                 reply	other threads:[~2008-07-16 13:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=d26fd961-53f5-4d9c-9da6-c57bbaaeec8a@59g2000hsb.googlegroups.com \
    --to=hugows@gmail.com \
    --cc=help-gnu-emacs@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.
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).