Georg Bauhaus <[email protected]> writes:

> On 30 Dec 2013, at 16:59, [email protected] wrote:
>
>> Georg Bauhaus <[email protected]> writes:
>> 
>>> On 29 Dec 2013, at 22:47, [email protected] wrote:
>>>> I don't have a good use case for
>>>> editing without a project file; anyone else?
>>> It may not be immediately obvious to a mode user what "project file”
>>> means: .gpr, .apr, .prj, Makefile?
>> 
>> Yes; these do all have more specific names:
>> 
>
>> .apr -> ?
>>    perhaps you meant .adp, which is one of the default extensions for
>>    an Emacs Ada mode project file
>
> Yes. (I was confused and the source of the confusion is obvious.
> Part of the reason was the other IDEs use .prj for completely different
> things, so overload resolution has affected different braches.)
>
> May I suggest that the notions will be pedantically named using
> unambiguous descriptions? 

That's what this list was.

If you are suggesting that list needs to be in the user manual, please
state where, and provide an example of what wording would work for you.

> To have .gpr working as “project” within Emacs Ada mode is very nice,
> but it can be confusing to see the same word used to denote different
> things. 

Yes, that is overloading. I don't see a better way.

> In particular, the user will have to sort out the explicit distinction
> in the second sentence of this paragraph from @chapter Overview:
>
> "Finally, for large Ada projects, you will want to set up an Emacs
> Ada mode project file for each project; @xref{Project files}. Note
> that these are different from the GNAT project files used by gnatmake
> and other GNAT commands."

Yes. I think that's clear; can you suggest a rewording?

>>> As a list of use cases,
>>> - if using another compiler besides GNAT,
>> 
>> Definitely requires either a project file or ~/.emacs customization of
>> Emacs Ada mode defaults (or file variable customization, as you point
>> out below).
>
> A project would be needed, I’d think, if the programmer uses Emacs
> as the IDE. 

If you have only one project on a host, or all projects can share the
same settings, you can use ~/.emacs customizations.

> Likely the most frequent and most important use case;
> I have edited source text in emacsclient in the past when the
> IDE of some other compiler lacked this or that editing tool.

How does that affect Emacs Ada mode? As far as I know, there's nothing
special about editing an Ada file via emacsclient.

> Another case you mentioned in addition to the one the OP’s has reported
> is the effect of C-c C-o when no project has been selected: e.g. open an
> Ada library unit spec in the compiler’s directories, then try finding
> the body via C-c C-o in the same directory. Doesn’t work, the message is:
>
>  ada-find-other-file: no file search path defined; set project file?

Ah. That is a special case. I'll see if it is easy to handle. One idea
is to define the default project search path to contain the compiler
library dirs; that should not be hard.

>> Although it might make sense to provide a function that writes out the
>> current project settings to a file that the user specifies. That would
>> ease the transition from file variables to project file.
>> 
>> But, is this a real use case? How many people actually do real editing
>> without any project file?
>
> As a general observation of IDE use: It is a (certifiable) qualification
> to know how to set up a project with some IDE; with Eclipse, say, it
> might be insufficient qualification to know language and target
> platform well, but not know the set of project descriptions that some
> party currently finds important. However, Eclipse features project
> creation dialogs that get the programmer going. Hence the idea to
> enable Ada mode to write a project file that gets the programmer
> going. (Another opportunity for skeleton?)

Creating a project file from scratch, via a "wizard", is not what I had
in mind; that's hard. But I agree it would be nice to have for newbies.

What would be relatively easy would be to take the current project and
write it out as an Emacs Ada mode project file. The use case is:

- user has been using ~/.emacs and file variable customizations of Emacs
  Ada mode.

- user wants/needs to transition to using an Emacs Ada mode project
  file.

- user invokes 'ada-prj-dump'

The question is: how many people actually meet the first condition? I
never did.

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to