From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13549: 24.3.50; FR: Improve grep output (show function names, when possible) Date: Fri, 24 May 2013 23:55:15 +0300 Organization: JURTA Message-ID: <87hahsrtcc.fsf@mail.jurta.org> References: <87a9rxux7q.fsf@gmail.com> <871u8ylp7b.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369429042 27908 80.91.229.3 (24 May 2013 20:57:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 20:57:22 +0000 (UTC) Cc: 13549-done@debbugs.gnu.org, Jambunathan K To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 24 22:57:22 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ufz3B-0004M9-Nu for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2013 22:57:21 +0200 Original-Received: from localhost ([::1]:53079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufz3B-0003nI-BF for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2013 16:57:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufz34-0003nB-Ow for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 16:57:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufz2v-0008CB-QJ for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 16:57:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufz2v-0008C6-NA for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 16:57:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ufz3q-0006ya-Hy for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 16:58:02 -0400 Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2013 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 13549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 13549@debbugs.gnu.org, juri@jurta.org, kjambunathan@gmail.com Original-Received: via spool by 13549-done@debbugs.gnu.org id=D13549.136942904726743 (code D ref 13549); Fri, 24 May 2013 20:58:02 +0000 Original-Received: (at 13549-done) by debbugs.gnu.org; 24 May 2013 20:57:27 +0000 Original-Received: from localhost ([127.0.0.1]:60935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ufz3H-0006xH-63 for submit@debbugs.gnu.org; Fri, 24 May 2013 16:57:27 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:42206 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ufz3D-0006x2-Uk for 13549-done@debbugs.gnu.org; Fri, 24 May 2013 16:57:24 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id A9AE7258B9E91C; Fri, 24 May 2013 13:56:24 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 22 May 2013 18:03:36 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74537 Archived-At: >> - ("^.+?-[0-9]+-.*\n" (0 grep-context-face))) >> + ("^.+?[-=][0-9]+[-=].*\n" (0 grep-context-face))) > > Sounds good, tho a little comment above that line would be welcome (it > could talk about both the =..= and the -..- cases). Done, with more comments. As for the function names in the output of grep, let's hope that the developers of GNU grep will apply the patch implemented in http://lists.gnu.org/archive/html/bug-grep/2005-01/msg00027.html that adds the command line option `-p' and `--show-function-line' with formatting similar to the output of git-grep that is now supported in Emacs.