From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ciss Newsgroups: gmane.emacs.help Subject: Re: TODO in code and org mode Date: Fri, 29 Jan 2010 09:25:57 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264865466 21778 80.91.229.12 (30 Jan 2010 15:31:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2010 15:31:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 30 16:31:03 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.69) (envelope-from ) id 1NbFHo-0000pP-UN for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2010 16:31:01 +0100 Original-Received: from localhost ([127.0.0.1]:46046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbFHo-0003OA-DZ for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2010 10:31:00 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!k19g2000yqc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 62.118.229.150 Original-X-Trace: posting.google.com 1264785957 4665 127.0.0.1 (29 Jan 2010 17:25:57 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 29 Jan 2010 17:25:57 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k19g2000yqc.googlegroups.com; posting-host=62.118.229.150; posting-account=V4CquQoAAABd4WNVclz5dOFB_jU9pCb4 User-Agent: G2/1.0 X-HTTP-Via: 1.1 DC1 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.1pre) Gecko/20100126 Ubuntu/9.10 (karmic) Namoroka/3.6.1pre, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176493 X-Mailman-Approved-At: Sat, 30 Jan 2010 10:28:38 -0500 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:71582 Archived-At: On Jan 14, 4:04=A0pm, 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 > =A0CLOSED 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)