Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renaming history module to avoid possible clashes

The 'history' module is now known as 'group_history' in order to
avoid potential name clashes. The name now represents the
dependency on the group module while significantly decreasing
the potential for name clashes.
  • Loading branch information...
commit d69057f0488c5a1f92ae64e7c431f76c483dc3aa 1 parent c8eac58
@ferd ferd authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/group.erl
  2. +1 −1  src/{history.erl → group_history.erl}
View
4 src/group.erl
@@ -32,7 +32,7 @@ start(Drv, Shell, Options) ->
server(Drv, Shell, Options) ->
process_flag(trap_exit, true),
edlin:init(),
- put(line_buffer, proplists:get_value(line_buffer, Options, history:load())),
+ put(line_buffer, proplists:get_value(line_buffer, Options, group_history:load())),
put(read_mode, list),
put(user_drv, Drv),
put(expand_fun,
@@ -644,7 +644,7 @@ save_line_buffer("\n", Lines) ->
save_line_buffer(Line, [Line|_Lines]=Lines) ->
save_line_buffer(Lines);
save_line_buffer(Line, Lines) ->
- history:add(Line),
+ group_history:add(Line),
save_line_buffer([Line|Lines]).
save_line_buffer(Lines) ->
View
2  src/history.erl → src/group_history.erl
@@ -1,4 +1,4 @@
--module(history).
+-module(group_history).
-export([load/0, add/1]).
-define(DEFAULT_HIST_FILE, ".erlang-hist").
Please sign in to comment.
Something went wrong with that request. Please try again.