[Github-comments] [geany/geany] Opening a file while saving a file is weird (#1487)

Ben Wiederhake notifications at xxxxx
Tue May 2 18:25:20 UTC 2017


I apologize in advance, this is a pretty weird scenario.

Steps to reproduce:
1. Open a new file (Ctrl-N)
1. Type something into it, for example `hello world`
1. Save it (Ctrl-S), but leave the file chooser open (so it's not really saved)
1. From the command line (different window, same user, same X.org session), run `geany necronomicon.txt`, where `necronomicon.txt` is an existing file with, say, `Hail Satan!` in it.  Observe that Geany opens the file and switches to it.  Of course the file chooser is focused instead, because it's modal.  But if you move it out of the way, you see `necronomicon.txt` open.
1. Enter `lovely_message.txt` in the file chooser and press OK.

Expected behavior: a lovely message in `lovely_message.txt`, and a demonic one in `necronomicon.txt`

Actual behavior: a demonic message in `lovely_message.txt`, with `necronomicon.txt` untouched, and the "new unsaved tab" is still unsaved.

My interpretation: apparently, Geany decides which file it wants to save 1) *after* the file chooser is done, and 2) depends only on which tab happens to be open.

So the order 3-4-5 is my fault, and a pretty extravagant use case.  But I think there are other ways to handle this which are more predictable by the user.

Using Geany 1.29, "Jowar, compiled 2016-11-16 or later".
I could not find any similar bug, so I expect (without trying it out) that it also fails with a newer version.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1487
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170502/0ac3ecf0/attachment.html>


More information about the Github-comments mailing list