From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Small patch: org-agenda-bulk-toggle Date: Fri, 7 Aug 2009 07:17:22 +0200 Message-ID: <8FB185EC-6DD8-4B7D-84B6-C088806F5F07@gmail.com> References: <20090807030413.GR15589@cpoint.net> Mime-Version: 1.0 (Apple Message framework v935.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 1MZHpd-0002N6-1n for emacs-orgmode@gnu.org; Fri, 07 Aug 2009 01:17:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZHpX-0002LI-Sb for emacs-orgmode@gnu.org; Fri, 07 Aug 2009 01:17:32 -0400 Received: from [199.232.76.173] (port=57728 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZHpX-0002Kq-Ea for emacs-orgmode@gnu.org; Fri, 07 Aug 2009 01:17:27 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]:38279) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZHpX-0007t4-0n for emacs-orgmode@gnu.org; Fri, 07 Aug 2009 01:17:27 -0400 Received: by ey-out-1920.google.com with SMTP id 5so508005eyb.24 for ; Thu, 06 Aug 2009 22:17:25 -0700 (PDT) In-Reply-To: <20090807030413.GR15589@cpoint.net> 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: pholcomb@cpoint.net Cc: emacs-orgmode@gnu.org This is what I had originally, but t was pointed out to me that in other applications in Emacs, marking and unmarking are usually separate commands. I have no objections to put this function back in. But what should be the key for it? I guess you would then have to use the agenda-mode-hook to redefine the m key. - Carsten On Aug 7, 2009, at 5:04 AM, Paul Holcomb wrote: > > 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 > > > _______________________________________________ > 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