From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Machulis Subject: Making org-fit-agenda-window able to be turned off? Date: Sat, 14 Apr 2012 22:23:36 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJHw4-0006CF-AO for emacs-orgmode@gnu.org; Sun, 15 Apr 2012 01:23:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJHw2-0006LW-Hm for emacs-orgmode@gnu.org; Sun, 15 Apr 2012 01:23:39 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:35504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJHw2-0006LQ-A4 for emacs-orgmode@gnu.org; Sun, 15 Apr 2012 01:23:38 -0400 Received: by lbbgp10 with SMTP id gp10so749205lbb.0 for ; Sat, 14 Apr 2012 22:23:36 -0700 (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: emacs-orgmode@gnu.org 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. There's already checks all over the place for whether org-multi-buffer is non-nil, which if it is means org-fit-agenda-window doesn't run, but I think that's for backgrounded buffer updates?