unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* TODO in code and org mode
@ 2010-01-14 13:04 andrea
  0 siblings, 0 replies; 2+ messages in thread
From: andrea @ 2010-01-14 13:04 UTC (permalink / raw)
  To: help-gnu-emacs

I had an idea which would be really nice if I'm able to implement it.
I write very often in code comments like
// FIXME: infinite loop
for example, now is a good thing they're in the code, but I also would
like to centralize the error management per project in some way.

So I thought something like, adding a hook in after-save-hook that
checks all the FIXME|TODO... and adds it to an org-mode file.

That org-mode should be like

* FIXME [[file:error.c:20][error.c]] (don't remember the syntax)
  
Maybe also including the date when this has been written the first time.
Then if the error is corrected or the nice thing would be adding a 
 CLOSED at [date]

line.

The only problem I see is if you change the text but leave the FIXME,
in that case maybe the other thing is not CLOSED but it's just changed,
and we should remove the old and create a new entry.

What do you think, could that be a good idea?
Thanks





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: TODO in code and org mode
       [not found] <mailman.1402.1263474366.18930.help-gnu-emacs@gnu.org>
@ 2010-01-29 17:25 ` Ciss
  0 siblings, 0 replies; 2+ messages in thread
From: Ciss @ 2010-01-29 17:25 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 14, 4:04 pm, andrea <andrea.crott...@gmail.com> wrote:
> I had an idea which would be really nice if I'm able to implement it.
> I write very often in code comments like
> // FIXME: infinite loop
> for example, now is a good thing they're in the code, but I also would
> like to centralize the error management per project in some way.
>
> So I thought something like, adding a hook in after-save-hook that
> checks all the FIXME|TODO... and adds it to an org-mode file.
>
> That org-mode should be like
>
> * FIXME [[file:error.c:20][error.c]] (don't remember the syntax)
>
> Maybe also including the date when this has been written the first time.
> Then if the error is corrected or the nice thing would be adding a
>  CLOSED at [date]
>
> line.
>
> The only problem I see is if you change the text but leave the FIXME,
> in that case maybe the other thing is not CLOSED but it's just changed,
> and we should remove the old and create a new entry.
>
> What do you think, could that be a good idea?
> Thanks

yes! this is very nice.
i will realise this in future for my ruby-code-editing :)
contact me if u want to talk about anythink -
pechorin.andrey@gmail.com (jabber)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-29 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1402.1263474366.18930.help-gnu-emacs@gnu.org>
2010-01-29 17:25 ` TODO in code and org mode Ciss
2010-01-14 13:04 andrea

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).