From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: don't always restore previous window configuration? Date: Thu, 22 Nov 2018 14:09:09 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006776c9057b4598f9" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPuLG-0006FB-2S for emacs-orgmode@gnu.org; Thu, 22 Nov 2018 14:08:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPuLF-0001nS-25 for emacs-orgmode@gnu.org; Thu, 22 Nov 2018 14:08:46 -0500 Received: from mail-it1-x12f.google.com ([2607:f8b0:4864:20::12f]:36805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPuLE-0001n9-T6 for emacs-orgmode@gnu.org; Thu, 22 Nov 2018 14:08:45 -0500 Received: by mail-it1-x12f.google.com with SMTP id c9so15130121itj.1 for ; Thu, 22 Nov 2018 11:08:44 -0800 (PST) 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: Org Mode --0000000000006776c9057b4598f9 Content-Type: text/plain; charset="UTF-8" I've recently switched to using the current window for editing src blocks w ~(setq org-src-window-setup 'current=window)~. I like this a lot, and it lets me swtich rapidly back and forth between the parent buffer and source code. Often when I ma working I split some of hte other windows to display other fn definitions or help buffers. I would strongly perfer for htat window layout not to hcange when I switch back to the parent buffer. I was able to change this for myself by wrapping the final ~when org-src--saved-temp-window-config~ in the definition of ~org-edit-src-exit~ in an unless statement: (unless (eq 'current-window org-src-window-setup) (when org-src--saved-temp-window-config (set-window-configuration org-src--saved-temp-window-config) (setq org-src--saved-temp-window-config nil))) SO far this is working for me but I wondered whether other people would similarly want to change this behaviour and I should put together a proper proposal & patch? --0000000000006776c9057b4598f9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've recently switch= ed to using the current window for editing src blocks w ~(setq org-src-wind= ow-setup 'current=3Dwindow)~. I like this a lot, and it lets me swtich = rapidly back and forth between the parent buffer and source code.=C2=A0 Oft= en when I ma working I split some of hte other windows to display other fn = definitions or help buffers. I would strongly perfer for htat window layout= not to hcange when I switch back to the parent buffer.=C2=A0 I was able to= change this for myself by wrapping the final ~when org-src--saved-temp-win= dow-config~ in the definition of ~org-edit-src-exit~ in an unless statement= :
(unless (eq 'current-window org-src-window= -setup)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (when org-src--saved-= temp-window-config
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (set-window-configuration org-src--saved-temp-window-config)
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq org-src--saved-temp-= window-config nil)))


<= /div>
SO far this is working for me but I wondered whether other people= would similarly want to change this behaviour and I should put together a = proper proposal & patch?
--0000000000006776c9057b4598f9--