emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: pholcomb@cpoint.net
Cc: emacs-orgmode@gnu.org
Subject: Re: Small patch:  org-agenda-bulk-toggle
Date: Fri, 7 Aug 2009 07:17:22 +0200	[thread overview]
Message-ID: <8FB185EC-6DD8-4B7D-84B6-C088806F5F07@gmail.com> (raw)
In-Reply-To: <20090807030413.GR15589@cpoint.net>

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

  reply	other threads:[~2009-08-07  5:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07  3:04 Small patch: org-agenda-bulk-toggle Paul Holcomb
2009-08-07  5:17 ` Carsten Dominik [this message]
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=8FB185EC-6DD8-4B7D-84B6-C088806F5F07@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pholcomb@cpoint.net \
    /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).