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

2009-08-07 Thread Paul Holcomb
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


___
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


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

2009-08-07 Thread Carsten Dominik


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




___
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


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

2009-08-06 Thread Paul Holcomb

 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


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

2009-08-06 Thread Carsten Dominik

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




___
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