emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Small patch:  org-agenda-bulk-toggle
@ 2009-08-07  3:04 Paul Holcomb
  2009-08-07  5:17 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Holcomb @ 2009-08-07  3:04 UTC (permalink / raw)
  To: emacs-orgmode


 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small patch:  org-agenda-bulk-toggle
  2009-08-07  3:04 Small patch: org-agenda-bulk-toggle Paul Holcomb
@ 2009-08-07  5:17 ` Carsten Dominik
  2009-08-07 15:15   ` Paul Holcomb
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2009-08-07  5:17 UTC (permalink / raw)
  To: pholcomb; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small patch:  org-agenda-bulk-toggle
  2009-08-07  5:17 ` Carsten Dominik
@ 2009-08-07 15:15   ` Paul Holcomb
  2009-08-08  4:17     ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Holcomb @ 2009-08-07 15:15 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, pholcomb

On Fri, Aug 07, 2009 at 07:17:22AM +0200, Carsten Dominik wrote:
> 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.

 I thought s was fine for the key, as C-x C-s already is bound to
 org-save-all-org-buffers.

-- 
Paul Holcomb                               *pholcomb    \@      cpoint  net*
GPG key fingerprint          2B62 05AE EE74 845A 705F  D716 28C4 FE1C 088F CFAC

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small patch:  org-agenda-bulk-toggle
  2009-08-07 15:15   ` Paul Holcomb
@ 2009-08-08  4:17     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2009-08-08  4:17 UTC (permalink / raw)
  To: pholcomb; +Cc: emacs-orgmode


On Aug 7, 2009, at 5:15 PM, Paul Holcomb wrote:

> On Fri, Aug 07, 2009 at 07:17:22AM +0200, Carsten Dominik wrote:
>> 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.
>
> I thought s was fine for the key, as C-x C-s already is bound to
> org-save-all-org-buffers.

I have installed the function, but not added the key - please do so  
yourself.

- Carsten

>
> -- 
> Paul Holcomb                               *pholcomb    \@       
> cpoint  net*
> GPG key fingerprint          2B62 05AE EE74 845A 705F  D716 28C4  
> FE1C 088F CFAC

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-08  4:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07  3:04 Small patch: org-agenda-bulk-toggle Paul Holcomb
2009-08-07  5:17 ` Carsten Dominik
2009-08-07 15:15   ` Paul Holcomb
2009-08-08  4:17     ` Carsten Dominik

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).