[PATCH 1/3] edoc: Do not auto-import error/1

Tuncer Ayaz <>
Sun Sep 12 17:55:22 CEST 2010


Resolve name clash with auto-imported BIF error/1.
---
 lib/edoc/src/edoc.erl     |    2 ++
 lib/edoc/src/edoc_run.erl |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/edoc/src/edoc.erl b/lib/edoc/src/edoc.erl
index ec452a5..75b3bb4 100644
--- a/lib/edoc/src/edoc.erl
+++ b/lib/edoc/src/edoc.erl
@@ -58,6 +58,8 @@
 	 read_comments/1, read_comments/2,
 	 read_source/1, read_source/2]).
 
+-compile({no_auto_import,[error/1]}).
+
 -import(edoc_report, [report/2, report/3, error/1, error/3]).
 
 -include("edoc.hrl").
diff --git a/lib/edoc/src/edoc_run.erl b/lib/edoc/src/edoc_run.erl
index 37025d6..96e5ea4 100644
--- a/lib/edoc/src/edoc_run.erl
+++ b/lib/edoc/src/edoc_run.erl
@@ -42,6 +42,8 @@
 
 -export([file/1, application/1, packages/1, files/1, toc/1]).
 
+-compile({no_auto_import,[error/1]}).
+
 -import(edoc_report, [report/2, error/1]).
 
 


More information about the erlang-patches mailing list