From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vedang Subject: Re: View inherited DEADLINEs in agenda Date: Wed, 11 Apr 2012 19:08:12 +0530 Message-ID: References: <20111107120311.GA6246@hydrogen.black.hole> <834nygktvh.fsf@yahoo.it> <20111114133827.GA7282@hydrogen.black.hole> <87mx6tp9oj.fsf@gnu.org> Reply-To: ved.manerikar@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHxkw-0002hl-Hn for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 09:38:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHxkq-0002Q9-4J for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 09:38:42 -0400 In-Reply-To: <87mx6tp9oj.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Brian van den Broek , emacs-orgmode@gnu.org, Fabrizio Chiarello , Carsten Dominik 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-t= o-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 wrote: > > Hi Fabrizio, > > Fabrizio Chiarello 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. =A0Otherwise send me your public key > and I'll give you write access to Worg. > > Thanks in advance for your contribution! > > -- > =A0Bastien > -- Unix is simple. It takes a genius to understand it's simplicity.=A0 =A0 -= =A0 =A0 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. -=A0 =A0 Calvin. Cheers, Vedang. Programmer, Infinitely Beta. http://twitter.com/vedang http://vedang.me