On Sat, Nov 24, 2018 at 5:55 AM Nicolas Goaziou <
address@hidden> wrote:
Hello,
Matt Price <address@hidden> writes:
> OH man, that was a little harder than I thought it would be. Does `make
> test` randomly checkout a new branch or something?
No, it doesn't.
Then I'm sorry for the noise (and also for this aside!). Magit, or git, or some other tool was doing something quite strange and disturbing, and I am now seeing these remotes in my repo:
> * org-srce.el (org-src-restore-window-config, org-exit-from-src): New
> variable org-src-restore-window-config allows user to opt out of
> restoring window config when exiting from source buffer with
> org-exit-from-src.
Thank you.
Should it be a variable, though? Is there any strong reason, e.g.,
a valid use-case, to preserve window configuration?
I'm not sure. Until now only Eric and I had commented on this feature. I will say that I will probably never go back to the old behavior, but maybe there are people who prefer it. I believe there are 6 possible options for org-src-window-setup (though only 5 are listed in the defcustom definition, I think that org-src-switch-to-buffer also recognizes 'silently). It may be that some of those options only make sense if the window config is restored after closing the src buffer.
~org-src--saved-window-config~ is only used in this function, so instead of adding a new variable we could just get rid of an old one :-).