ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting a project from the command line


From: Manuel Gómez
Subject: Re: Selecting a project from the command line
Date: Fri, 27 Aug 2021 20:27:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0



Am 26/8/21 um 18:58 schrieb Stephen Leake:
Manuel Gómez <mgrojo@gmail.com> writes:

Is there a way from the command line to load that GPR file?
This should work:

emacs  --eval "(progn (require 'ada-mode)(wisi-prj-select-file \"wisi.gpr\" (ada-prj-default 
\"nickname\")))"

That failed for me with this message:

wisi-prj-select-file used without wisi-prj-current-parse in project-find-functions

Then I tried:

emacs --eval "(progn (setq project-find-functions '(wisi-prj-current-parse))(require 'ada-mode)(wisi-prj-select-file \"project.gpr\" (ada-prj-default \"nickname\")))"

Which silenced the message, but the project doesn't seem to be loaded. Navigation works, but not C-c C-c. No "WisiPrj Select" menu entry, and "Ada > Project files > Show project" says "wisi-prj-show: Wrong type argument: wisi-prj, nil"

Sorry, I wasn't able to advance with other approaches. In ada-mode 4.0 I can simply do this:

emacs -q src/main.adb --eval '(progn (require '\''ada-mode) (ada-set-default-project-file "project.gpr"))'

And then C-c RET to set main and build.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]