aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-04-21 14:53:52 +0200
committerLukas Larsson <[email protected]>2017-04-25 14:16:38 +0200
commitab048d66c59fa827bf4129fc95bec21488a931a4 (patch)
tree743a89fa7cc06ff070cb60f98241a2c5d0053c35 /lib
parenteece23d7f6b225a6abc3807f9af44d1f742f7eee (diff)
downloadotp-ab048d66c59fa827bf4129fc95bec21488a931a4.tar.gz
otp-ab048d66c59fa827bf4129fc95bec21488a931a4.tar.bz2
otp-ab048d66c59fa827bf4129fc95bec21488a931a4.zip
erts: Auto-import port_to_list for consistency
Follow the same pattern as pid_to_list
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/src/erl_bifs.erl1
-rw-r--r--lib/stdlib/src/erl_internal.erl2
-rw-r--r--lib/tools/emacs/erlang.el4
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/compiler/src/erl_bifs.erl b/lib/compiler/src/erl_bifs.erl
index 3ee789e2ab..2eff9b4efb 100644
--- a/lib/compiler/src/erl_bifs.erl
+++ b/lib/compiler/src/erl_bifs.erl
@@ -114,6 +114,7 @@ is_pure(erlang, max, 2) -> true;
is_pure(erlang, min, 2) -> true;
is_pure(erlang, phash, 2) -> false;
is_pure(erlang, pid_to_list, 1) -> true;
+is_pure(erlang, port_to_list, 1) -> true;
is_pure(erlang, round, 1) -> true;
is_pure(erlang, setelement, 3) -> true;
is_pure(erlang, size, 1) -> true;
diff --git a/lib/stdlib/src/erl_internal.erl b/lib/stdlib/src/erl_internal.erl
index 6bf4eea843..11d02c0999 100644
--- a/lib/stdlib/src/erl_internal.erl
+++ b/lib/stdlib/src/erl_internal.erl
@@ -349,6 +349,7 @@ bif(nodes, 1) -> true;
bif(now, 0) -> true;
bif(open_port, 2) -> true;
bif(pid_to_list, 1) -> true;
+bif(port_to_list, 1) -> true;
bif(port_close, 1) -> true;
bif(port_command, 2) -> true;
bif(port_command, 3) -> true;
@@ -362,6 +363,7 @@ bif(process_info, 2) -> true;
bif(processes, 0) -> true;
bif(purge_module, 1) -> true;
bif(put, 2) -> true;
+bif(ref_to_list, 1) -> true;
bif(register, 2) -> true;
bif(registered, 0) -> true;
bif(round, 1) -> true;
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index 8025f25b43..14c21d7dad 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -855,12 +855,14 @@ resulting regexp is surrounded by \\_< and \\_>."
"port_command"
"port_connect"
"port_control"
+ "port_to_list"
"pre_loaded"
"process_flag"
"process_info"
"processes"
"purge_module"
"put"
+ "ref_to_list"
"register"
"registered"
"round"
@@ -968,14 +970,12 @@ resulting regexp is surrounded by \\_< and \\_>."
"port_get_data"
"port_info"
"port_set_data"
- "port_to_list"
"ports"
"posixtime_to_universaltime"
"prepare_loading"
"process_display"
"raise"
"read_timer"
- "ref_to_list"
"resume_process"
"send"
"send_after"