emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vedang <vedang.manerikar@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: Brian van den Broek <brian.van.den.broek@gmail.com>,
	emacs-orgmode@gnu.org,
	Fabrizio Chiarello <fabrizio.chiarello@ieee.org>,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: View inherited DEADLINEs in agenda
Date: Wed, 11 Apr 2012 19:08:12 +0530	[thread overview]
Message-ID: <CABzEscZ=UuJvWbu1gO1KJjkrVxFMpppaVw8QFYp8nuNQ=pKCOw@mail.gmail.com> (raw)
In-Reply-To: <87mx6tp9oj.fsf@gnu.org>

Hi All,

I had asked a similar question on StackOverflow a long time ago
(http://stackoverflow.com/questions/4872088/is-there-any-way-for-subtasks-to-inherit-deadlines-in-org-mode)
and one of the answers was useful to me - namely,
http://stackoverflow.com/a/8920418/137430.

Adding the answer here for sake of completion.

"How about a function for adding subtasks? This one adds a deadline to
the subtask if its parent has one:

(defun my-org-insert-sub-task ()
  (interactive)
  (let ((parent-deadline (org-get-deadline-time nil)))
    (org-goto-sibling)
    (org-insert-todo-subheading t)
    (when parent-deadline
      (org-deadline nil parent-deadline))))

Don't forget to bind it to a key:

(define-key org-mode-map (kbd "C-c s") 'my-org-insert-sub-task)"


On Tue, Apr 3, 2012 at 12:46 PM, Bastien <bzg@gnu.org> wrote:
>
> Hi Fabrizio,
>
> Fabrizio Chiarello <fabrizio.chiarello@ieee.org> writes:
>
> > I solved by adding the following block in the agenda:
>
> This is a nice and useful hack.
>
> Can you consider adding it to Worg/org-hacks.org?
>
> If you want, just send me the .org content that I would
> add to org-hacks.org.  Otherwise send me your public key
> and I'll give you write access to Worg.
>
> Thanks in advance for your contribution!
>
> --
>  Bastien
>



--
Unix is simple. It takes a genius to understand it's simplicity.    -    Anon
People think it must be fun to be a super genius, but they don't
realize how hard it is to put up with all the idiots in the world.
-    Calvin.

Cheers,
Vedang.

Programmer,
Infinitely Beta.
http://twitter.com/vedang
http://vedang.me

      reply	other threads:[~2012-04-11 13:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 12:03 View inherited DEADLINEs in agenda Fabrizio Chiarello
2011-11-07 12:19 ` Giovanni Ridolfi
2011-11-07 12:22   ` suvayu ali
2011-11-07 13:16     ` Fabrizio Chiarello
2011-11-07 13:23       ` Gustav Wikström
2011-11-07 14:29   ` Carsten Dominik
2011-11-07 19:46     ` Fabrizio Chiarello
2011-11-08 22:35     ` Brian van den Broek
2011-11-09  8:10       ` Carsten Dominik
2011-11-14 13:38         ` Fabrizio Chiarello
2012-04-03  7:16           ` Bastien
2012-04-11 13:38             ` Vedang [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='CABzEscZ=UuJvWbu1gO1KJjkrVxFMpppaVw8QFYp8nuNQ=pKCOw@mail.gmail.com' \
    --to=vedang.manerikar@gmail.com \
    --cc=brian.van.den.broek@gmail.com \
    --cc=bzg@gnu.org \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrizio.chiarello@ieee.org \
    --cc=ved.manerikar@gmail.com \
    /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).