[Geany-devel] Questions about Geany project support

Enrico Tröger enrico.troeger at xxxxx
Mon Jan 11 20:31:01 UTC 2010


On Sun, 10 Jan 2010 19:59:15 +0100, Dominic wrote:

>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?

By no means. I consider this a bug.
Thanks for pointing this out.


>> 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.

Me too.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100111/2cecc035/attachment.pgp>


More information about the Devel mailing list