[Geany-devel] [PATCH] FIx document_need_save_as() logic

Lex Trotman elextr at xxxxx
Thu Aug 12 13:14:28 UTC 2010


On 12 August 2010 23:03, Erik de Castro Lopo <mle+tools at mega-nerd.com> wrote:
> Lex Trotman wrote:
>
>> How does this work with geany
>> some_dir_that_doesn't_exist/some_file_that_doesn't_exist?
>
> Well it doesn't crash or do the wrong thing :-). Instead it
> puts up a dialog box saying "Error saving file. No such file or
> directory". The user can then choose to do SaveAs and save it
> to an directory that does exist.

I guess thats a reasonable response to the situation :-)

>
>> IIUC the check of real path is to catch missing directories and let
>> the user choose what to do
>
> That may be so, but the pre-patch behaviour of the asking for
> a SaveAs path even when a valid path was specified previously
> is just annoying.

I suppose so, I got over the command line back in the eighties & now
tend to do things from the GUI. :-D

Sorry, I've still got this nagging suspicion that the there was a
discussion a while back of some problem that the realpath check
guarded, but I can't find it now of course :-(
So unless someone else finds it in the mailing list past or remembers
it I guess its ok.

Cheers
Lex

>
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>



More information about the Devel mailing list