From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: andrea Newsgroups: gmane.emacs.help Subject: TODO in code and org mode Date: Thu, 14 Jan 2010 14:04:00 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263474502 22651 80.91.229.12 (14 Jan 2010 13:08:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jan 2010 13:08:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 14 14:08:15 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NVPPi-0005Tj-0F for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jan 2010 14:08:15 +0100 Original-Received: from localhost ([127.0.0.1]:38854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVPPN-0007nU-I2 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jan 2010 08:06:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVPOm-0007Q5-2r for help-gnu-emacs@gnu.org; Thu, 14 Jan 2010 08:06:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVPOg-0007LK-Ct for help-gnu-emacs@gnu.org; Thu, 14 Jan 2010 08:06:03 -0500 Original-Received: from [199.232.76.173] (port=52250 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVPOg-0007L3-3K for help-gnu-emacs@gnu.org; Thu, 14 Jan 2010 08:05:58 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:13667) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVPOX-0003eT-3j for help-gnu-emacs@gnu.org; Thu, 14 Jan 2010 08:05:57 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVPNN-0001Vh-HD for help-gnu-emacs@gnu.org; Thu, 14 Jan 2010 08:04:37 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NVPN9-0004SP-47 for help-gnu-emacs@gnu.org; Thu, 14 Jan 2010 14:04:23 +0100 Original-Received: from 134.61.90.114 ([134.61.90.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jan 2010 14:04:23 +0100 Original-Received: from andrea.crotti.0 by 134.61.90.114 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jan 2010 14:04:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 134.61.90.114 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:kSSWWYmE9FFzOEL8Gf/DKHJGCOY= X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71216 Archived-At: 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