all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Calling a function interactively, and undo-information
@ 2009-02-21 21:28 Tobias C. Rittweiler
  0 siblings, 0 replies; only message in thread
From: Tobias C. Rittweiler @ 2009-02-21 21:28 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

Is there a way to invoke a function exactly as if it was invoked by the
command-loop? `call-interactively' does not push an undo-boundary on the
undo-list.

It's for writing unit tests that should check for some specific undo
behaviour. Of course, I could call `undo-boundary' myself after calling
the function, but this would test for something slightly different.

Thanks!,

  -T.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-21 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-21 21:28 Calling a function interactively, and undo-information Tobias C. Rittweiler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.