emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul Holcomb <pholcomb@cpoint.net>
To: emacs-orgmode@gnu.org
Subject: Small patch:  org-agenda-bulk-toggle
Date: Thu, 6 Aug 2009 22:04:13 -0500	[thread overview]
Message-ID: <20090807030413.GR15589@cpoint.net> (raw)


 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

             reply	other threads:[~2009-08-07  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07  3:04 Paul Holcomb [this message]
2009-08-07  5:17 ` Small patch: org-agenda-bulk-toggle Carsten Dominik
2009-08-07 15:15   ` Paul Holcomb
2009-08-08  4:17     ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090807030413.GR15589@cpoint.net \
    --to=pholcomb@cpoint.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).