emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Small patch: org-agenda-bulk-toggle


From: Carsten Dominik
Subject: Re: [Orgmode] Small patch: org-agenda-bulk-toggle
Date: Fri, 7 Aug 2009 07:17:22 +0200

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]