From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trevor Murphy Subject: [PATCH] New user option for org-agenda-show-and-scroll-up Date: Sun, 20 Jul 2014 14:42:15 -0400 Message-ID: <1405881736-6299-1-git-send-email-trevor.m.murphy@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8w48-00030z-DY for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:42:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8w3y-00064v-D8 for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:42:32 -0400 Received: from mail-yk0-x22c.google.com ([2607:f8b0:4002:c07::22c]:57285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8w3y-00064j-93 for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:42:22 -0400 Received: by mail-yk0-f172.google.com with SMTP id 10so3408502ykt.31 for ; Sun, 20 Jul 2014 11:42:21 -0700 (PDT) Received: from localhost.localdomain (z65-50-91-81.ips.direcpath.com. [65.50.91.81]) by mx.google.com with ESMTPSA id v43sm23548975yhj.18.2014.07.20.11.42.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Jul 2014 11:42:19 -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 Hi, all. The current behavior of `org-agenda-show-and-scroll-up' (SPC from the Agenda) reveals drawers and logbooks unless the user passes a prefix argument. This doesn't work for my flow - I prefer the drawers stay hidden all the time, unless I prefix the command. My workflow may be unique to me. Thus far I've been patching the code locally. For fun I'm sharing my patch with the list, in case somebody else finds it worthwhile. I've added a defcustom `org-agenda-show-and-scroll-up-show-drawers'. It defaults to t, and this gives the current behavior. Customizing it to nil gives the alternate behavior I prefer. My not-so-secret hope is that this patch is suitable for applying to master. Please let me know if that's the case, or if there are some changes I can make that would get it there. I'm fine signing copyright assignment papers. Thanks for taking a look! -- Trevor Murphy GnuPG Key: 0x83881C0A