From: Puneeth Chaganti <punchagan@gmail.com>
To: Bernt Hansen <bernt@norang.ca>,
emacs-orgmode <emacs-orgmode@gnu.org>, Bastien <bzg@altern.org>
Subject: Bulk function documentation is missing
Date: Fri, 8 Apr 2011 22:34:09 +0530 [thread overview]
Message-ID: <BANLkTimyjyj+F8a=knRvFhK6HYRvR1ndVg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=_6Jc-dmZtn9q2kgvt95gP=AOPbg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 394 bytes --]
Hi,
I'd sent it to Bernt alone, on the previous occasion. Re-sending to
everyone. Sorry for the re-post, Bernt.
Hi Bernt,
On Fri, Apr 8, 2011 at 8:52 AM, Bernt Hansen <bernt@norang.ca>
[..]
> Could you please also provide documentation in org.texi with an example
> of how you use this?
I have attached a patch that documents this function. Please feel free
to improve it.
Thanks,
Puneeth
[-- Attachment #2: 0001-Document-option-to-allow-applying-a-function-as-Bulk.patch.txt --]
[-- Type: text/plain, Size: 1476 bytes --]
From 007f723e5bfd11b1d3c0efbb89b32f1955264314 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <punchagan@gmail.com>
Date: Fri, 8 Apr 2011 11:23:31 +0530
Subject: [PATCH] Document option to allow applying a function as Bulk Agenda
action
* doc/org.texi (Agenda commands): Doc for function option to bulk action.
---
doc/org.texi | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/doc/org.texi b/doc/org.texi
index 5ab25b0..d5c7b7b 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -8075,6 +8075,21 @@ s @r{Schedule all items to a new date. To shift existing schedule dates}
S @r{Reschedule randomly by N days. N will be prompted for. With prefix}
@r{arg (@kbd{C-u B S}), scatter only accross weekdays.}
d @r{Set deadline to a specific date.}
+f @r{Apply a function to marked entries.}
+ @r{For example, the function below sets the CATEGORY property of the}
+ @r{entries to web.}
+ @r{(defun set-category ()}
+ @r{ (interactive "P")}
+ @r{ (let* ((marker (or (org-get-at-bol 'org-hd-marker)}
+ @r{ (org-agenda-error)))}
+ @r{ (buffer (marker-buffer marker)))}
+ @r{ (with-current-buffer buffer}
+ @r{ (save-excursion}
+ @r{ (save-restriction}
+ @r{ (widen)}
+ @r{ (goto-char marker)}
+ @r{ (org-back-to-heading t)}
+ @r{ (org-set-property "CATEGORY" "web"))))))}
@end example
--
1.7.4.4
next prev parent reply other threads:[~2011-04-08 17:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 3:22 Bulk function documentation is missing Bernt Hansen
2011-04-08 16:34 ` Bastien
[not found] ` <BANLkTi=_6Jc-dmZtn9q2kgvt95gP=AOPbg@mail.gmail.com>
2011-04-08 17:04 ` Puneeth Chaganti [this message]
2011-04-08 17:08 ` Bernt Hansen
2011-04-08 17:19 ` Bernt Hansen
2011-04-08 17:21 ` [Accepted] " Bastien Guerry
2011-04-08 17:23 ` Bastien
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='BANLkTimyjyj+F8a=knRvFhK6HYRvR1ndVg@mail.gmail.com' \
--to=punchagan@gmail.com \
--cc=bernt@norang.ca \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/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).