All the information about source locations is stored in the compiler condition. Currently they are internal symbols in the C package but that can be changed.<div><br></div><div><div>(define-condition compiler-message (simple-condition)</div>
<div> ((prefix :initform "Note" :accessor compiler-message-prefix)</div><div> (file :initarg :file :initform *compile-file-pathname*</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> :accessor compiler-message-file)</div>
<div> (position :initarg :file :initform *compile-file-position*</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> :accessor compiler-message-file-position)</div><div> (toplevel-form :initarg :form :initform *current-toplevel-form*</div>
<div> :accessor compiler-message-toplevel-form)</div><div> (form :initarg :form :initform *current-form*</div><div> :accessor compiler-message-form))</div><br><div class="gmail_quote">On Sun, Feb 7, 2010 at 1:01 PM, Tobias C. Rittweiler <span dir="ltr"><<a href="mailto:tcr@freebits.de">tcr@freebits.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Juan Jose Garcia-Ripoll writes:<br>
<br>
> Use .ecl or .eclrc and add COMPILER-NOTE to the type<br>
> C:*suppress-compiler-messages* (this is a lisp type specifier, not a list)<br>
> which represents the type of notes and messages that are suppressed, or set<br>
> C::*SUPPRESS-COMPILER-NOTES* to T and get rid of everything which is not a<br>
> warning or an error.<br>
><br>
> Juanjo<br>
<br>
</div>Btw. is there a way to get at the source location of a condition<br>
signaled by the compiler? E.g. for a "variable not used" style-warning,<br>
the source position of the toplevel form? (The closer the position to<br>
the actual place of offence the better, i.e. best would be the actual<br>
position of the symbol name, second-best the position of the containing<br>
form, and still-good the position of the toplevel form.)<br>
<br>
If not, contemplate adding something because that can be made good use<br>
of in Slime.<br>
<div><div></div><div class="h5"><br>
-T.<br>
<br>
<br>
------------------------------------------------------------------------------<br>
The Planet: dedicated and managed hosting, cloud storage, colocation<br>
Stay online with enterprise data centers and the best network in the business<br>
Choose flexible plans and management services without long-term contracts<br>
Personal 24x7 support from experience hosting pros just a phone call away.<br>
<a href="http://p.sf.net/sfu/theplanet-com" target="_blank">http://p.sf.net/sfu/theplanet-com</a><br>
_______________________________________________<br>
Ecls-list mailing list<br>
<a href="mailto:Ecls-list@lists.sourceforge.net">Ecls-list@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/ecls-list" target="_blank">https://lists.sourceforge.net/lists/listinfo/ecls-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>