<div dir="ltr">Hi!<div><br></div><div style>It looks like this patch went forgotten after the discussions I had with Henrik offline and after I had problems running the test suites. It went well with R16A.</div><div><br><span style="font-family:arial,sans-serif;font-size:13px">A new function code:get_mode() can be used to detect how</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">the code servers behaves, returning 'embedded' or 'interactive'.</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">Rationale:</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> Some applications (like erlide) have code to be loaded dynamically on a</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> node. It may be slow to load everything upfront every time, so if the</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> node is in interactive mode, we would like to just append to the load</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> path. Currently, there is no direct way to detect if the node is running</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> in embedded mode or not so that we can do the right thing.</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">git fetch git://</span><a href="http://github.com/vladdu/otp.git">github.com/vladdu/otp.git</a><span style="font-family:arial,sans-serif;font-size:13px"> code_get_mode</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><a href="https://github.com/vladdu/otp/compare/erlang:master...code_get_mode">https://github.com/vladdu/otp/compare/erlang:master...code_get_mode</a><br style="font-family:arial,sans-serif;font-size:13px">
<a href="https://github.com/vladdu/otp/compare/erlang:master...code_get_mode.patch">https://github.com/vladdu/otp/compare/erlang:master...code_get_mode.patch</a></div><div><br style="font-family:arial,sans-serif;font-size:13px">
</div><div style>Github shows a whitespace diff, but in my editor the whitespace is exactly like on the line above. Maybe git does soemthing to it?</div><div style><br></div><div style>best regards,</div><div style>Vlad</div>
<div style><br></div></div>