From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Holcomb Subject: Small patch: org-agenda-bulk-toggle Date: Thu, 6 Aug 2009 22:04:13 -0500 Message-ID: <20090807030413.GR15589@cpoint.net> Reply-To: pholcomb@cpoint.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZFkj-00014U-Hi for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 23:04:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZFke-00012v-Ov for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 23:04:21 -0400 Received: from [199.232.76.173] (port=42869 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZFke-00012a-5g for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 23:04:16 -0400 Received: from mailhost.cpoint.net ([204.10.55.14]:55876) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MZFkd-0004BE-MY for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 23:04:15 -0400 Content-Disposition: inline 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 Can we add the behavoir of org-agenda-bulk-select back? I far prefer the toggle action rather than having a key for "mark" and one for "unmark" This seems to work: -- (defun org-agenda-bulk-toggle () "Support behavoir of org-agenda-bulk-select" (interactive) (if (eq (get-char-property (point-at-bol) 'type) 'org-marked-entry-overlay) (org-agenda-bulk-unmark) (org-agenda-bulk-mark))) -- Although it would probably be better to refactor the bulk checker rather than copying the code here. -- Paul Holcomb *pholcomb \@ cpoint net* GPG key fingerprint 2B62 05AE EE74 845A 705F D716 28C4 FE1C 088F CFAC