aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/edit_lib.erl
diff options
context:
space:
mode:
authoretnt <etnt>2006-01-04 09:33:20 +0000
committeretnt <etnt>2006-01-04 09:33:20 +0000
commit190e6483ae66769e031c9b1ef0ca75d5fabe3e26 (patch)
tree243436edb8a10bfe8bd1fc975389fca5c4b6124d /src/edit_lib.erl
parent663d56ca630aa255f4114db6ba26027488f70039 (diff)
downloadermacs-fork-190e6483ae66769e031c9b1ef0ca75d5fabe3e26.tar.gz
Added a stop/0 function which doesn't halt the Erlang node. Right now it does a init:restart/0, but it should probably do something nicer. Also, added some info in the TOUR file.
Diffstat (limited to 'src/edit_lib.erl')
-rw-r--r--src/edit_lib.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/edit_lib.erl b/src/edit_lib.erl
index 73372db..08fd0aa 100644
--- a/src/edit_lib.erl
+++ b/src/edit_lib.erl
@@ -588,6 +588,11 @@ quit(State) ->
?EDIT_TERMINAL:teardown(),
halt().
+-command({stop, [], "Exit the editor process, without halting Erlang."}).
+stop(State) ->
+ ?EDIT_TERMINAL:teardown(),
+ init:restart(). % FIXME , should do something nicer... (tobbe)
+
-command({printf, [{string, "String:"}],
"Print a string to standard output (the file edit.out)"}).