From: Ihor Radchenko <firstname.lastname@example.org> To: Kevin Foley <email@example.com>, firstname.lastname@example.org Subject: Re: Custom Bulk Functions With Prompt Date: Sun, 17 Jan 2021 13:42:04 +0800 [thread overview] Message-ID: <871rekxgpf.fsf@localhost> (raw) In-Reply-To: <m25z3wwayo.fsf@Kevins-MBP.home.lan> Kevin Foley <email@example.com> writes: > I'd like to setup a custom bulk function using > `org-agenda-bulk-custom-functions', however I'd like to receive one > prompt when I select the action and then have the action performed on > every entry without being prompted again. Generally, you can set a variable indicating if your custom function is invoked first time during the bulk action. This variable can be set to nil in :before advice for org-agenda-bulk-action. Then, you can check the variable value in your custom function. If it is nil, it is the first invocation and you run the interactive version then setting the variable to 't. The variable will have 't value in all the following invocations and your function can run non-interactively. Instead of advice, you can also provide a simple patch implementing the described functionality in org-agenda-bulk-action. I do support adding this functionality to org. Best, Ihor
next prev parent reply other threads:[~2021-01-17 5:38 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-17 2:31 Kevin Foley 2021-01-17 5:42 ` Ihor Radchenko [this message] 2021-01-17 18:06 ` Kevin Foley 2021-01-18 2:11 ` Ihor Radchenko 2021-01-18 2:14 ` Kevin Foley 2021-01-18 8:50 ` Ihor Radchenko 2021-01-19 18:36 ` Kevin Foley 2021-01-20 6:49 ` Ihor Radchenko 2021-01-21 14:01 ` [PATCH] Org Agenda Support Argument Collection for Custom Bulk Functions (was: Custom Bulk Functions With Prompt) Kevin Foley 2021-01-22 5:14 ` Ihor Radchenko 2021-01-22 5:29 ` Kyle Meyer 2021-01-27 23:13 ` Kevin Foley 2021-01-30 7:48 ` Kyle Meyer 2021-02-13 17:29 ` Kevin Foley 2021-02-14 20:23 ` Kyle Meyer 2021-02-15 2:30 ` Kevin Foley 2021-02-15 3:01 ` Kyle Meyer 2021-02-15 14:04 ` Kevin Foley
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=871rekxgpf.fsf@localhost \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: Custom Bulk Functions With Prompt' \ /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
Code repositories for project(s) associated with this 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).