From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Making org-fit-agenda-window able to be turned off? Date: Sun, 15 Apr 2012 09:57:43 -0400 Message-ID: <11865.1334498263@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJPxd-0007zV-Jj for emacs-orgmode@gnu.org; Sun, 15 Apr 2012 09:57:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJPxb-0003DJ-QP for emacs-orgmode@gnu.org; Sun, 15 Apr 2012 09:57:49 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:39702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJPxb-0003DF-Lf for emacs-orgmode@gnu.org; Sun, 15 Apr 2012 09:57:47 -0400 In-Reply-To: Message from Kyle Machulis of "Sat, 14 Apr 2012 22:23:36 PDT." 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kyle Machulis Cc: emacs-orgmode@gnu.org Kyle Machulis wrote: > Would adding a flag to skip calls to org-fit-agenda-window be handy to > anyone else? > > Some context: I use workgroups.el > (https://github.com/tlh/workgroups.el) for my desktop management > setup. I have a workgroup that keeps my org-mode daily agenda and > sauron (https://github.com/djcb/sauron) up as my sort of "current > status" desktop. Any time I update the agenda buffer using 'g', the > windows rebalance because of the call to org-fit-agenda-window, making > the sauron window take far more than I want it to. In order to keep > the window sizes the same, I wrap org-fit-agenda-window in defadvice > that checks a variable I set (gross, I know), but was wondering if it > might be useful in other situations and worth adding to org-agenda, or > if it's just me. > (untested) Does (setq org-agenda-window-setup 'current-window) help? Nick