From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: FR: A configuration option for the behavior of `org-fit-agenda-window' Date: Wed, 10 Oct 2007 09:07:12 +0200 Message-ID: <9e179dd2bb3fdf23026a123e852a385c@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfVrd-0005Mo-Il for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 03:20:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfVrc-0005Mc-5F for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 03:20:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfVrb-0005MZ-VA for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 03:20:16 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IfVrb-0003Jz-O2 for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 03:20:15 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfVj2-0005q3-DQ for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 03:11:24 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Wiegley Cc: emacs-orgmode@gnu.org On Oct 10, 2007, at 2:00, John Wiegley wrote: > When I switch to a daily agenda view, I like to know that what I'm > seeing is > everything there is to see. The current definition of > org-fit-agenda-window > sets a maximum height for the agenda view to 3/4 the frame height. > This > always leaves me wondering if maybe there's one more task, just beyond > the > bottom of the window. I recommend the following customization > variable: > > (defvar org-fit-whole-agenda-window nil) > > (defun org-fit-agenda-window () > "Fit the window to the buffer size." > (and (memq org-agenda-window-setup '(reorganize-frame)) > (fboundp 'fit-window-to-buffer) > (if org-fit-agenda-window > (fit-window-to-buffer) > (fit-window-to-buffer nil (/ (* (frame-height) 3) 4) > (/ (frame-height) 2))))) I guess we can also get rid of the limitations completely and just call `fit-window-to-buffer'. - Carsten