all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Reset Emacs state
@ 2010-03-02 10:41 Johan Andersson
  2010-03-02 10:50 ` Lennart Borgman
  0 siblings, 1 reply; 10+ messages in thread
From: Johan Andersson @ 2010-03-02 10:41 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

Hey,

I'm looking for a way to reset Emacs. By reset I mean like something you
would want to do in a testing framework. So if you set a variable in one
test, it will not be set in the next.

The only way I find this possible is to run each test as a Emacs Batch
script:
(dolist (test tests)
  (shell-command "./run-test"))

I guess that would work. However, there is a problem with this. *run-test does
not have the test* object. I could solve that by for each test output the
object to a file and then read it in run-test.

This solution seems rather clumpy though and I'm wondering if you can think
of any good way to do it.


Thanks!

[-- Attachment #2: Type: text/html, Size: 897 bytes --]

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

end of thread, other threads:[~2010-03-02 20:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 10:41 Reset Emacs state Johan Andersson
2010-03-02 10:50 ` Lennart Borgman
2010-03-02 11:03   ` Johan Andersson
2010-03-02 11:18     ` Lennart Borgman
2010-03-02 11:48       ` Johan Andersson
2010-03-02 11:50         ` Lennart Borgman
2010-03-02 12:06           ` Johan Andersson
2010-03-02 12:21             ` Lennart Borgman
2010-03-02 12:48               ` Johan Andersson
2010-03-02 20:16                 ` Lennart Borgman

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.