From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Redisplay agenda with inactive timestamps without prompting the user Date: Fri, 14 Aug 2009 14:28:23 -0400 Message-ID: <1250274503-12703-1-git-send-email-bernt@norang.ca> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mc1WP-0005eI-6C for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:29:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mc1WK-0005cG-Gd for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:28:59 -0400 Received: from [199.232.76.173] (port=44216 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc1WJ-0005bz-Ry for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:28:56 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:50519) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mc1WJ-0003Kf-I6 for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:28:55 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Mc1WI-000JT8-IV for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 18:28:54 +0000 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: emacs-orgmode@gnu.org Cc: Bernt Hansen This removes the unnecessary prompt to redisplay the agenda view with inactive timestamps. If you hit [ or ] you immediately get the inactive timestamp view in the daily/weekly agenda view. You can redisplay without these timestamps by simply hitting 'g'. --- Hi Carsten, This patch is available at git://git.norang.ca/org-mode for-carsten I'm not sure if this prompt I'm removing is really totally useless. There are similar prompts for other agenda modes which I haven't tried out yet with [ and ] so I left those alone. Regards, Bernt lisp/org-agenda.el | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index fba7014..4f2f41c 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4957,10 +4957,8 @@ Negative selection means, regexp must not match for selection of an entry." (defun org-agenda-manipulate-query (char) (cond ((memq org-agenda-type '(timeline agenda)) - (if (y-or-n-p "Re-display with inactive time stamps included? ") - (let ((org-agenda-include-inactive-timestamps t)) - (org-agenda-redo)) - (error "Abort"))) + (let ((org-agenda-include-inactive-timestamps t)) + (org-agenda-redo))) ((eq org-agenda-type 'search) (org-add-to-string 'org-agenda-query-string -- 1.6.4