From: Ali Tofigh <alix.tofigh@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Mailinglist emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: refiling tasks and counter cookies
Date: Thu, 19 Jan 2012 18:45:10 -0500 [thread overview]
Message-ID: <CAD=7RJbMFeCgamU80StwfTTkUx_wj7xjW-81LQ4_OGLB1tsu7g@mail.gmail.com> (raw)
In-Reply-To: <87y5tmvzpf.fsf@gnu.org>
On Thu, Jan 5, 2012 at 12:14, Bastien <bzg@altern.org> wrote:
> Hi Ali,
>
> Ali Tofigh <alix.tofigh@gmail.com> writes:
>
>> when refiling todos (C-c C-w), the counter cookies don't update. is
>> that a known/intended issue?
>
> This should do:
>
> (add-hook
> 'org-after-refile-insert-hook
> 'org-update-parent-todo-statistics)
what I need is a org-pre-refile-insert-hook. i looked in org.el and
the org-refile function. could some knowledgeable person on the
mailinglist point me to where I should insert
(run-hooks 'org-pre-refile-insert-hook)
so that the snippet below
(add-hook
'org-pre-refile-insert-hook
'org-update-parent-todo-statistics)
together with Bastien's helpful snippet above, would result in
updating of the cookie counters of both the source and destination?
/ali
prev parent reply other threads:[~2012-01-19 23:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-05 16:35 refiling tasks and counter cookies Ali Tofigh
2012-01-05 17:14 ` Bastien
2012-01-05 17:37 ` Ali Tofigh
2012-01-19 23:45 ` Ali Tofigh [this message]
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='CAD=7RJbMFeCgamU80StwfTTkUx_wj7xjW-81LQ4_OGLB1tsu7g@mail.gmail.com' \
--to=alix.tofigh@gmail.com \
--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).