From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: From comments in code to org-mode Date: Fri, 5 Feb 2010 17:07:17 -0700 Message-ID: <20524da71002051607h1fdf9bd2gb8408ebca9c18693@mail.gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NdYCn-0004jV-EE for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:07:21 -0500 Received: from [199.232.76.173] (port=47356 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdYCn-0004jM-2P for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:07:21 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdYCl-0006TC-SA for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:07:20 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:52144) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdYCl-0006Si-Ce for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:07:19 -0500 Received: by fxm25 with SMTP id 25so1517669fxm.32 for ; Fri, 05 Feb 2010 16:07:18 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: andrea Cc: emacs-orgmode@gnu.org Ideally we could put tasks in comments, but there are regexps that need refactoring. On 2010-01-16, andrea 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? > Is there maybe a way to do it? > > PS. sorry for the crossposting but here is more appropriate I guess > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Q: How many CDC "scientists" does it take to change a lightbulb? A: "You only think it's dark." [CDC has denied ME/"CFS" for 25 years] ========== Retrovirus: http://www.wpinstitute.org/xmrv/index.html