From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Subject: From comments in code to org-mode Date: Sat, 16 Jan 2010 20:05:13 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWDxw-00047e-N5 for emacs-orgmode@gnu.org; Sat, 16 Jan 2010 14:05:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWDxs-00044M-2R for emacs-orgmode@gnu.org; Sat, 16 Jan 2010 14:05:43 -0500 Received: from [199.232.76.173] (port=34627 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWDxr-00044J-Rs for emacs-orgmode@gnu.org; Sat, 16 Jan 2010 14:05:39 -0500 Received: from lo.gmane.org ([80.91.229.12]:37287) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWDxr-0007hz-Cq for emacs-orgmode@gnu.org; Sat, 16 Jan 2010 14:05:39 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NWDxn-000084-2n for emacs-orgmode@gnu.org; Sat, 16 Jan 2010 20:05:35 +0100 Received: from 73-084.eduroam.rwth-aachen.de ([134.61.73.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jan 2010 20:05:35 +0100 Received: from andrea.crotti.0 by 73-084.eduroam.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jan 2010 20:05:35 +0100 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: emacs-orgmode@gnu.org 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