* [PATCH] Allow using a custom function for Bulk actions
@ 2011-03-07 10:28 Puneeth Chaganti
2011-03-08 13:06 ` Bernt Hansen
2011-03-10 9:46 ` Bastien
0 siblings, 2 replies; 5+ messages in thread
From: Puneeth Chaganti @ 2011-03-07 10:28 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]
Hi,
Here's a patch that allows choosing or specifying any arbitrary
function to be used for Bulk actions from agenda view.
From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <punchagan@gmail.com>
Date: Mon, 7 Mar 2011 15:54:20 +0530
Subject: [PATCH] org-agenda: Allow specifying a function for bulk action
* lisp/org-agenda.el: (org-agenda-bulk-action) A function can be
specified, to be used for bulk action on marked items.
---
lisp/org-agenda.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e6afbb0..0297d36 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7969,7 +7969,7 @@ The prefix arg is passed through to the command
if possible."
(interactive "P")
(unless org-agenda-bulk-marked-entries
(error "No entries are marked"))
- (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd
[S]catter [d]eadline")
+ (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd
[S]catter [d]eadline [f]unction")
(let* ((action (read-char-exclusive))
(org-log-refile (if org-log-refile 'time nil))
(entries (reverse org-agenda-bulk-marked-entries))
@@ -8059,6 +8059,11 @@ The prefix arg is passed through to the command
if possible."
(org-agenda-date-later distance)
(error nil)))))))
+ ((equal action ?f)
+ (setq cmd (list (intern
+ (org-icompleting-read "Function: "
+ obarray 'fboundp t nil nil)))))
+
(t (error "Invalid bulk action")))
;; Sort the markers, to make sure that parents are handled before children
--
1.7.4.1
--
Puneeth
[-- Attachment #2: 0001-org-agenda-Allow-specifying-a-function-for-bulk-acti.patch --]
[-- Type: text/x-patch, Size: 1538 bytes --]
From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <punchagan@gmail.com>
Date: Mon, 7 Mar 2011 15:54:20 +0530
Subject: [PATCH] org-agenda: Allow specifying a function for bulk action
* lisp/org-agenda.el: (org-agenda-bulk-action) A function can be
specified, to be used for bulk action on marked items.
---
lisp/org-agenda.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e6afbb0..0297d36 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7969,7 +7969,7 @@ The prefix arg is passed through to the command if possible."
(interactive "P")
(unless org-agenda-bulk-marked-entries
(error "No entries are marked"))
- (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline")
+ (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline [f]unction")
(let* ((action (read-char-exclusive))
(org-log-refile (if org-log-refile 'time nil))
(entries (reverse org-agenda-bulk-marked-entries))
@@ -8059,6 +8059,11 @@ The prefix arg is passed through to the command if possible."
(org-agenda-date-later distance)
(error nil)))))))
+ ((equal action ?f)
+ (setq cmd (list (intern
+ (org-icompleting-read "Function: "
+ obarray 'fboundp t nil nil)))))
+
(t (error "Invalid bulk action")))
;; Sort the markers, to make sure that parents are handled before children
--
1.7.4.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow using a custom function for Bulk actions
2011-03-07 10:28 [PATCH] Allow using a custom function for Bulk actions Puneeth Chaganti
@ 2011-03-08 13:06 ` Bernt Hansen
2011-03-08 13:28 ` Puneeth Chaganti
2011-03-10 9:46 ` Bastien
1 sibling, 1 reply; 5+ messages in thread
From: Bernt Hansen @ 2011-03-08 13:06 UTC (permalink / raw)
To: Puneeth Chaganti; +Cc: emacs-orgmode
Puneeth Chaganti <punchagan@gmail.com> writes:
> Hi,
>
> Here's a patch that allows choosing or specifying any arbitrary
> function to be used for Bulk actions from agenda view.
>
> From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
> From: Puneeth Chaganti <punchagan@gmail.com>
> Date: Mon, 7 Mar 2011 15:54:20 +0530
> Subject: [PATCH] org-agenda: Allow specifying a function for bulk action
>
> * lisp/org-agenda.el: (org-agenda-bulk-action) A function can be
> specified, to be used for bulk action on marked items.
> ---
> lisp/org-agenda.el | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
Hi Puneeth,
This patch is whitespace damaged by your MUA. Please resend as an
attachment.
Thanks,
--
Bernt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow using a custom function for Bulk actions
2011-03-08 13:06 ` Bernt Hansen
@ 2011-03-08 13:28 ` Puneeth Chaganti
2011-03-08 14:05 ` Bernt Hansen
0 siblings, 1 reply; 5+ messages in thread
From: Puneeth Chaganti @ 2011-03-08 13:28 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 955 bytes --]
On Tue, Mar 8, 2011 at 6:36 PM, Bernt Hansen <bernt@norang.ca> wrote:
> Puneeth Chaganti <punchagan@gmail.com> writes:
>
>> Hi,
>>
>> Here's a patch that allows choosing or specifying any arbitrary
>> function to be used for Bulk actions from agenda view.
>>
>> From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
>> From: Puneeth Chaganti <punchagan@gmail.com>
>> Date: Mon, 7 Mar 2011 15:54:20 +0530
>> Subject: [PATCH] org-agenda: Allow specifying a function for bulk action
>>
>> * lisp/org-agenda.el: (org-agenda-bulk-action) A function can be
>> specified, to be used for bulk action on marked items.
>> ---
>> lisp/org-agenda.el | 7 ++++++-
>> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> Hi Puneeth,
>
> This patch is whitespace damaged by your MUA. Please resend as an
> attachment.
The previous mail had it as an attachment, also. But, anyway, here it
is, again.
--
Puneeth
[-- Attachment #2: 0001-org-agenda-Allow-specifying-a-function-for-bulk-acti.txt --]
[-- Type: text/plain, Size: 1538 bytes --]
From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <punchagan@gmail.com>
Date: Mon, 7 Mar 2011 15:54:20 +0530
Subject: [PATCH] org-agenda: Allow specifying a function for bulk action
* lisp/org-agenda.el: (org-agenda-bulk-action) A function can be
specified, to be used for bulk action on marked items.
---
lisp/org-agenda.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e6afbb0..0297d36 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7969,7 +7969,7 @@ The prefix arg is passed through to the command if possible."
(interactive "P")
(unless org-agenda-bulk-marked-entries
(error "No entries are marked"))
- (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline")
+ (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline [f]unction")
(let* ((action (read-char-exclusive))
(org-log-refile (if org-log-refile 'time nil))
(entries (reverse org-agenda-bulk-marked-entries))
@@ -8059,6 +8059,11 @@ The prefix arg is passed through to the command if possible."
(org-agenda-date-later distance)
(error nil)))))))
+ ((equal action ?f)
+ (setq cmd (list (intern
+ (org-icompleting-read "Function: "
+ obarray 'fboundp t nil nil)))))
+
(t (error "Invalid bulk action")))
;; Sort the markers, to make sure that parents are handled before children
--
1.7.4.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow using a custom function for Bulk actions
2011-03-08 13:28 ` Puneeth Chaganti
@ 2011-03-08 14:05 ` Bernt Hansen
0 siblings, 0 replies; 5+ messages in thread
From: Bernt Hansen @ 2011-03-08 14:05 UTC (permalink / raw)
To: Puneeth Chaganti; +Cc: emacs-orgmode
Puneeth Chaganti <punchagan@gmail.com> writes:
> On Tue, Mar 8, 2011 at 6:36 PM, Bernt Hansen <bernt@norang.ca> wrote:
>> Puneeth Chaganti <punchagan@gmail.com> writes:
>>
>>> Here's a patch that allows choosing or specifying any arbitrary
>>> function to be used for Bulk actions from agenda view.
>>>
>>> From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
>>> From: Puneeth Chaganti <punchagan@gmail.com>
>>> Date: Mon, 7 Mar 2011 15:54:20 +0530
>>> Subject: [PATCH] org-agenda: Allow specifying a function for bulk action
>>>
>>
>> This patch is whitespace damaged by your MUA. Please resend as an
>> attachment.
>
> The previous mail had it as an attachment, also. But, anyway, here it
> is, again.
So you did. My mistake - It was a problem on my end not yours. I had
my Gnus set up to hide to the attachment part when it was displayed
inline. Sorry for the noise.
Thanks,
--
Bernt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow using a custom function for Bulk actions
2011-03-07 10:28 [PATCH] Allow using a custom function for Bulk actions Puneeth Chaganti
2011-03-08 13:06 ` Bernt Hansen
@ 2011-03-10 9:46 ` Bastien
1 sibling, 0 replies; 5+ messages in thread
From: Bastien @ 2011-03-10 9:46 UTC (permalink / raw)
To: Puneeth Chaganti; +Cc: emacs-orgmode
Hi Puneeth,
Puneeth Chaganti <punchagan@gmail.com> writes:
> Here's a patch that allows choosing or specifying any arbitrary
> function to be used for Bulk actions from agenda view.
I have applied this patch now, thanks.
This led me to think about an Org "Expert" mode.
I'm writing a separate email to explain this idea and to see whether
it's worth digging into that direction.
Best,
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-10 9:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 10:28 [PATCH] Allow using a custom function for Bulk actions Puneeth Chaganti
2011-03-08 13:06 ` Bernt Hansen
2011-03-08 13:28 ` Puneeth Chaganti
2011-03-08 14:05 ` Bernt Hansen
2011-03-10 9:46 ` Bastien
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).