From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antony Newsgroups: gmane.emacs.help Subject: grep and sort Date: Sun, 15 Aug 2010 07:29:48 -0700 Organization: Aioe.org NNTP Server Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291953492 1468 80.91.229.12 (10 Dec 2010 03:58:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 03:58:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 04:58:07 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 1PQu7S-0005Yn-MI for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 04:58:06 +0100 Original-Received: from localhost ([127.0.0.1]:36717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQu6P-0001Yd-2p for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 22:57:01 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.k-dsl.de!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: Fzt4KCbiJeRW0sMSf9tBPQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 Original-Xref: usenet.stanford.edu gnu.emacs.help:180723 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:23:43 -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:77285 Archived-At: Hi I'd like to find and sort all lines that contain 'TODO:' Sorting needs to be based on content and ignore filename rgrep works except for the sorting part The results should be in a grep like buffer so I can click on them If I can get some basic elisp code for this, that would be nice. I don't know how to modify the regrep command. Any pointers? -Antony PS: Reason for sorting I follow my TODO with a space and two digit number like TOOD: 01 or TODO: 80 with the numbers representing priority. This has worked very well as a task management mechanism for me in eclispe and visual studio.