unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Juri Linkov <juri@jurta.org>
Cc: 13549-done@debbugs.gnu.org
Subject: bug#13549: 24.3.50; FR: Improve grep output (show function names, when possible)
Date: Sat, 25 May 2013 18:38:31 +0530	[thread overview]
Message-ID: <87y5b3w6k0.fsf@gmail.com> (raw)
In-Reply-To: <87hahsrtcc.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 24 May 2013 23:55:15 +0300")


In terms of UI, git grep solution is inferior compared to
(which-function) proposal.  Both of these are in turn is much inferior
to current state of the art i.e., semantic-symref.

Semantic not only interfaces with grep, cscope backends but has the
necessary infrastructure to re-write the results in to a unified
interface.  More importantly it displays function context.

I am OK with this bug remaining closed.  

I have now moved the proposal for displaying function context to
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14468.

Juri Linkov <juri@jurta.org> writes:

>>> -     ("^.+?-[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.





      reply	other threads:[~2013-05-25 13:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-25 14:57 bug#13549: 24.3.50; FR: Improve grep output (show function names, when possible) Jambunathan K
2013-01-25 15:05 ` Jambunathan K
2013-01-25 17:32 ` Glenn Morris
2013-01-25 18:55 ` Stefan Monnier
2013-02-03 13:49 ` Jambunathan K
2013-05-22 20:44 ` Juri Linkov
2013-05-22 22:03   ` Stefan Monnier
2013-05-24 20:55     ` Juri Linkov
2013-05-25 13:08       ` Jambunathan K [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5b3w6k0.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=13549-done@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).