On Wed, Feb 10, 2016 at 9:12 PM, Anthony Walter <sys...@gmail.com> wrote: > And could the IDE be enhanced to should which unit is > ultimately including a file? Obviously the CodeTools already knows, it was > able to deduce the identifier exists and that it has a declaration by > looking through the units in the uses clause in the current unit. Couldn't > something therefore display the unit name in IDE, possibly in the include > file's source code tab (e.g. system.pas - dynlibh.inc)?
Maybe you did not fully understand what the MainUnit directive does. It allows you to jump between the Pascal unit and the include file in any situation, just as if they were one single file. It works also if you opened first an include file from a search window. The other way around (unit -> include file) it works even without a MainUnit directive. Thus, Lazarus editor fully understands include files unlike Delphi' editor. In other words you can always do Ctrl-Shift-Up in a method / function and it does the right thing. You don't need to worry about if your cursor is on a unit or include file source. Juha _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal