From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Kamm Subject: Re: restore window configuration after org-edit-src-exit Date: Tue, 17 Dec 2019 06:28:01 -0800 Message-ID: <87mubrf2mm.fsf@gmail.com> References: <87lfrc9qs6.fsf@nicolasgoaziou.fr> <87woavd8j4.fsf@kyleam.com> <87sgljf3e1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56356) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihDq6-0004Q8-0Q for emacs-orgmode@gnu.org; Tue, 17 Dec 2019 09:28:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihDq4-0004MO-UB for emacs-orgmode@gnu.org; Tue, 17 Dec 2019 09:28:41 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:45509) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihDq4-0004Kt-Mw for emacs-orgmode@gnu.org; Tue, 17 Dec 2019 09:28:40 -0500 Received: by mail-pf1-x42f.google.com with SMTP id 2so7632555pfg.12 for ; Tue, 17 Dec 2019 06:28:40 -0800 (PST) In-Reply-To: <87sgljf3e1.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kyle Meyer , Nicolas Goaziou , Richard Kim Cc: emacs-orgmode@gnu.org Sorry for the noise, but I just had another thought: Rather than adding a new option, how about we make the behavior dependent on the value of org-src-window-setup? Basically, when org-src-window-setup is current-window, it never makes sense to restore the original layout. But when org-src-window-setup is reorganize-frame (the default), it always makes sense to restore the original layout. I'm not sure what the "correct" behavior would be for the other options however. Now that I think about it, I remember trying out the "current-window" option before, and having a very similar experience to Matt -- while I enjoyed having more manual control over the window layout, the fact that org-mode would change the window layout after I finished editing defeated the whole purpose of this, so I switched back to the original defaults.