[PATCH 1/2] Window save functionality

Robert C. Helling helling at atdotde.de
Sat Mar 2 02:30:10 PST 2013


On Mar 2, 2013, at 7:45 AM, Dirk Hohndel wrote:

Dirk,

> Right now when I switch to one of the single pane modes (ctrl-1/2/3) and
> then back to the three pane mode, I'm back to the default
> positions. Similarly if I quit while in one of the single pane modes.
> 
> Instead it would be much nicer when switching to single pane mode it
> would remember the positions of the panes and then restore them the next
> time it's in three pane mode (either Ctrl-4 or a restart of the app)
> 
> Does that make sense?

it does make sense and I was aware of that already last night when I sent the second patch. But I was not able to come up with a solution that would not use new global variables (secret_pane_position) at that time of day. Now, after some hours of sleep, here is my attempt.

Signed-off-by: Robert C. Helling <helling at atdotde.de>

Robert

PS: Two more questions: How do I set the commit message when sending a patch?

And I keep having formatting problems. I am aware of https://www.kernel.org/doc/Documentation/CodingStyle
but I have not been able to convince my emacs (which is actually an Aquamacs on Mac) to follow it even with the suggested .emacs file and the BSD indent on Mac doesn't know the -kr option to follow the masters. Any suggestion?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memorize_pane2.patch
Type: application/octet-stream
Size: 3018 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130302/81f2a6b1/attachment.obj>
-------------- next part --------------

--                                                                              
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO 
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics  
                      Scientific Coordinator                                   
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik    
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339       
    stupid .sig\n";   http://www.atdotde.de 



More information about the subsurface mailing list