From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Conditionally delete windows in agenda quit Date: Sun, 1 Mar 2009 17:18:52 +0100 Message-ID: <3230F90D-55AC-4EE7-A49F-3C72D0411224@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdoNW-0001n9-3q for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:18:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdoNU-0001mB-MX for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:18:57 -0500 Received: from [199.232.76.173] (port=53795 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdoNU-0001m5-H4 for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:18:56 -0500 Received: from mail-ew0-f179.google.com ([209.85.219.179]:54284) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdoNU-0001yE-34 for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:18:56 -0500 Received: by ewy27 with SMTP id 27so1902128ewy.42 for ; Sun, 01 Mar 2009 08:18:54 -0800 (PST) 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: Peter Jones Cc: emacs-orgmode@gnu.org I am accepting this patch, thanks. - Carsten On Feb 28, 2009, at 1:21 AM, Peter Jones wrote: > Before this patch, org-agenda-quit would delete the agenda window if > the frame had more than one window. This patch changes that behavior > slightly so that if org-agenda-window-setup is 'current-window, the > agenda window won't be deleted. > > Patch also available from: > > git://pmade.com/org-mode > branch: pjones-agenda-quit > > From 94a5f5f9487a2ccdd4d38d1b989720a89d1d10b6 Mon Sep 17 00:00:00 2001 > From: Peter Jones > Date: Fri, 27 Feb 2009 17:17:12 -0700 > Subject: [PATCH] Conditionally delete windows in agenda quit > > Before this patch, org-agenda-quit would delete the agenda window if > the frame had more than one window. This patch changes that behavior > slightly so that if org-agenda-window-setup is 'current-window, the > agenda window won't be deleted. > --- > lisp/org-agenda.el | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el > index 3fb7baf..dbfa5f6 100644 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -4455,7 +4455,9 @@ If ERROR is non-nil, throw an error, otherwise > just return nil." > (if org-agenda-columns-active > (org-columns-quit) > (let ((buf (current-buffer))) > - (if (not (one-window-p)) (delete-window)) > + (and (not (eq org-agenda-window-setup 'current-window)) > + (not (one-window-p)) > + (delete-window)) > (kill-buffer buf) > (org-agenda-reset-markers) > (org-columns-remove-overlays) > -- > 1.6.0 > > > -- > Peter Jones, http://pmade.com > pmade inc. Louisville, CO US > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode