unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Scary undo
@ 2008-05-06 10:04 Lennart Borgman (gmail)
  2008-05-06 10:11 ` Juanma Barranquero
  2008-05-06 10:15 ` David Kastrup
  0 siblings, 2 replies; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2008-05-06 10:04 UTC (permalink / raw)
  To: Emacs Devel

I would like to undo a change made by a function that I call with 
funcall. I do not know exactly what the function does, but hopefully it 
will only indent the current line. However the new indentation might be 
wrong.

The scenario is something like this

    (funcall the-indentation-function)
    (when (= 0 (current-indentation))
       ;; undo what `the-indentation-function' did,
       ;; but how?
       )

I am a bit scared of writing this undo part so if someone could help me 
I would be glad. I do not think I can use `undo-boundary' here.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-06 17:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 10:04 Scary undo Lennart Borgman (gmail)
2008-05-06 10:11 ` Juanma Barranquero
2008-05-06 10:15 ` David Kastrup
2008-05-06 17:36   ` Lennart Borgman (gmail)

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).