aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/filename.xml
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-02-09 11:44:28 +0100
committerGitHub <[email protected]>2017-02-09 11:44:28 +0100
commitaff4e82fce59e4eaefa84ed0d1dd5c40927637e5 (patch)
tree56dd7ab69e25ec36a20e95c7040cc5d54af8eb36 /lib/stdlib/doc/src/filename.xml
parentb4471746fbf987b44420aa350dc3c2a899e6f0a5 (diff)
parent1d886081027c4d4fcfbf7f73d4708694cad582f5 (diff)
downloadotp-aff4e82fce59e4eaefa84ed0d1dd5c40927637e5.tar.gz
otp-aff4e82fce59e4eaefa84ed0d1dd5c40927637e5.tar.bz2
otp-aff4e82fce59e4eaefa84ed0d1dd5c40927637e5.zip
Merge pull request #1312 from richcarl/shell-smart-compile
Extend shell c(...) to find and recompile modules OTP-14190
Diffstat (limited to 'lib/stdlib/doc/src/filename.xml')
-rw-r--r--lib/stdlib/doc/src/filename.xml10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/stdlib/doc/src/filename.xml b/lib/stdlib/doc/src/filename.xml
index 2a413835d0..7acef51ca1 100644
--- a/lib/stdlib/doc/src/filename.xml
+++ b/lib/stdlib/doc/src/filename.xml
@@ -356,10 +356,12 @@ true
<p>Finds the source filename and compiler options for a module.
The result can be fed to <seealso marker="compiler:compile#file/2">
<c>compile:file/2</c></seealso> to compile the file again.</p>
- <warning><p>It is not recommended to use this function. If possible,
- use the <seealso marker="beam_lib"><c>beam_lib(3)</c></seealso>
- module to extract the abstract code format from the Beam file and
- compile that instead.</p></warning>
+ <warning>
+ <p>This function is deprecated. Use <seealso marker="filelib#find_source/1">
+ <c>filelib:find_source/1</c></seealso> instead for finding source files.</p>
+ <p>If possible, use the <seealso marker="beam_lib"><c>beam_lib(3)</c></seealso>
+ module to extract the compiler options and the abstract code
+ format from the Beam file and compile that instead.</p></warning>
<p>Argument <c><anno>Beam</anno></c>, which can be a string or an atom,
specifies either the module name or the path to the source
code, with or without extension <c>".erl"</c>. In either