<br><br><div class="gmail_quote">On 4 March 2010 12:20, Sherwood Botsford <span dir="ltr"><<a href="mailto:sgbotsford@gmail.com">sgbotsford@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br clear="all"><br>
<br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>
<br>
</div>Very simple example as suggestion:<br>
<br>
geany -ro file1.txt # opens file1.txt read-only<br>
geany -ro file1.txt file2.txt # opens both files read-only<br>
<br>
and so on...<br>
<br></blockquote></div><div><br></div></div></blockquote><div>Numbered for reference<br> <br></div><div>1. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div>So does 'geany file1.txt -ro file2.txt' open the first read/write the second read only?<br><br></div></div></blockquote><div>2. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div>Does 'geany -ro' make all files opened later read only?  This normally opens with a blank file -- how do you save it at all?<br>
<br></div></div></blockquote><div>3. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>What is the behaviour of  'geany -ro file1.txt'  then later from the file menu opening file2.txt? <br>
<br></div></div></blockquote><div>4. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>What about 'geany file1.txt -ro file2.txt' then from the menu open file3.txt -- status of file3?<br>

<br></div></div></blockquote><div>5. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>If geany is set to open all files that were open last time, but now you expressly open one read only, and it is one of those files, what happens.<br>
<br></div></div></blockquote><div>6. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>Or what about geany file*txt -ro file2.txt? -- in essence one file is specified twice on the command line. which takes precidence?<br>

<br>It's not clear to me what the best behaviour should be.<br><br>Respectfully,<br><br>Sherwood of Sherwood's Forests<br><br>Sherwood Botsford<br>Sherwood's Forests --  http://Sherwoods-Forests.com<br>780-848-2548<br>

50042 Range Rd 31<br>Warburg, Alberta T0C 2T0<br><br><br></div></div></blockquote><div><br>I'd suggest the simplest solutions, <br><br> --readonly applies to all files on the command line irrespective of positioning and has no effect on any other files opened by session or menu.  This answers 1,2,3,4 (Note POSIX says it must be before any files but GNU allows anywhere)<br>
<br>Current behaviour on attempting to re-open a file with different read-only status is that nothing happens, the already open file is raised but not changed.  I would leave this as is irrespective of method of second opening (cli or menu)<br>
This answers 5,6.<br><br>Cheers<br>Lex<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div></div></div>
<br>_______________________________________________<br>
Geany mailing list<br>
<a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
<br></blockquote></div><br>