[Geany-devel] Questions about Geany project support
Dominic Hopf
dmaphy at xxxxx
Sun Jan 10 18:59:15 UTC 2010
Am Sonntag, den 10.01.2010, 18:38 +0300 schrieb Eugene Arshinov:
> Hi all.
>
> Preface
> -------
>
> Recently I realized that I completely forgot to integrate project
> support into my XSMP support (which would reside in "sm" branch after
> some of my patches are committed). Currently my code stores open
> files, but it does not remember the project, if any was opened when
> Geany terminated.
>
> I was looking through the code to understand how the integration could
> be implemented and testing how Geany behaves on opening and closing
> projects. I discovered some issues, and there are also some questions
> I'd like to ask. After all problems are solved and questions are answered,
> I'll prepare some more patches for "sm" branch.
>
> Question #1
> -----------
>
> `load_startup_files' function within main.c (formatting is wrong):
>
> /* when we want a new instance, we still load project session files
> unless -s was passed */
> if (!cl_options.load_session ||
> (!load_project_from_cl && cl_options.new_instance)) return;
>
> Specifying "-s" while opening a projects causes Geany to open a blank document.
>
> First, when geany instance is closed, the project is overwritten.
> Instead of the files which were previously there, there would be no
> files in the project. Is it a desired behaviour? Is it a desired way to
> clear a project?
>
> Second, it is not intuitive. From my point of view, "-s" is
> there to not load the default session. When user tries to open a
> project and specify "-s", he should wish to open the project's files
> and not load the default session. Currently opening a project forbids
> loading the default session, so "-s" is not necessary. But I think the
> behaviour I described ("-s" is ignored) is more logical than opening a
> blank document instead of project's files.
I agree to this one. I'd also expect the project files to be opened.
Regards,
Dominic
--
Dominic Hopf <dmaphy at googlemail.com>
http://dominichopf.de/
Key Fingerprint:
A7DF C4FC 07AE 4DDC 5CA0 BD93 AAB0 6019 CA7D 868D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.geany.org/pipermail/devel/attachments/20100110/6cfab483/attachment.pgp>
More information about the Devel
mailing list