aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/edit.erl8
-rw-r--r--src/ermacs.in6
2 files changed, 6 insertions, 8 deletions
diff --git a/src/edit.erl b/src/edit.erl
index a1e0cbf..17e4f7a 100644
--- a/src/edit.erl
+++ b/src/edit.erl
@@ -34,13 +34,13 @@ start(Args) ->
%% Another command-line entry function. Starts the editor with some
%% modules loaded for debugging.
debug() ->
- lists:foreach(fun(Mod) -> i:ii(Mod) end, debug_modules()),
+ i:ii(debug_modules()),
i:im(),
sleep(1000),
proc_lib:start_link(?MODULE, start, []).
debug_modules() ->
- [edit_display, edit_lib, ?EDIT_TERMINAL, edit_keymap, edit_buf,
+ [edit, edit_display, edit_lib, ?EDIT_TERMINAL, edit_keymap, edit_buf,
edit_extended, edit_file, cord, edit_eval, edit_util, edit_text].
%% ----------------------------------------------------------------------
@@ -81,8 +81,8 @@ init() ->
loop(State2).
init_io_traps() ->
- {ok, Leader} = file_gl:start_link("/tmp/edit.out"),
- group_leader(Leader, self()),
+ group_leader(whereis(standard_error), self()),
+ ok = error_logger:logfile({open, "/tmp/ermacs-errors.log"}),
error_logger:tty(false).
%% Setup initial buffers (scratch and minibuffer)
diff --git a/src/ermacs.in b/src/ermacs.in
index cbb521f..accb10f 100644
--- a/src/ermacs.in
+++ b/src/ermacs.in
@@ -2,10 +2,8 @@
BASEDIR=%BASEDIR%
-SLANG_EBIN_DIR=${BASEDIR}/../slang/ebin
-
-erl -pa ${SLANG_EBIN_DIR} -pa ${BASEDIR}/ebin -pa ${BASEDIR}/mods/ebin \
- -pa ${BASEDIR}/../msc/ebin -noshell -s edit start $*
+erl -pa ${BASEDIR}/ebin -pa ${BASEDIR}/mods/ebin \
+ -noshell -nouser -s edit start $* 2>/tmp/ermacs-misc.log
# How do I get sh to run this in response to SIGINT?
stty sane