unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: joer@san.rr.com
Cc: Aleksandar Simic <asimic@gmail.com>,
	Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: grep-at-point
Date: Wed, 11 Jan 2017 19:55:20 +0000	[thread overview]
Message-ID: <CAFyQvY2CrVt_yKX3VrSufMceW1Kb6b6wAHhnpFVDuxOZLB3mNw@mail.gmail.com> (raw)
In-Reply-To: <CAN-=FCv2tEECcnQ4z6JHoozLe=0ES-s_51Qe4xz_K-rpFby92w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 760 bytes --]

If you are open to installing the ag utility (
https://github.com/ggreer/the_silver_searcher ) and installing the counsel
package (available in GNU Elpa), you can use counsel-ag.

Below I am using counsel-ag to search for all instances of the symbol under
point 'ag-arguments' in the current directory.

[image: pasted1]


> On Wed, Jan 11, 2017 at 5:48 PM, Joe Riel <joer@san.rr.com> wrote:
>
> > Before writing one, is there an elisp function
> > that returns a buffer of links to file locations
> > where the elisp symbol at point is used?
> >
> > I'm only concerned with the files in the current directory.
> > Am currently using M-x grep.   Maybe all I really need
> > is a grep-at-point function, which greps for the symbol at point.
>
-- 

Kaushal Modi

[-- Attachment #2: pasted1 --]
[-- Type: image/png, Size: 52894 bytes --]

  reply	other threads:[~2017-01-11 19:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-11 17:48 grep-at-point Joe Riel
2017-01-11 19:21 ` grep-at-point Aleksandar Simic
2017-01-11 19:55   ` Kaushal Modi [this message]
2017-01-11 19:42 ` grep-at-point Eli Zaretskii
2017-01-11 20:20   ` grep-at-point Kaushal Modi
2017-01-11 20:23     ` grep-at-point Eli Zaretskii
2017-01-11 21:09       ` grep-at-point Kaushal Modi
2017-01-11 21:32         ` grep-at-point Kaushal Modi
2017-01-11 21:45       ` grep-at-point Marcin Borkowski
2017-01-11 19:56 ` grep-at-point Eric Abrahamsen
2017-01-11 20:15 ` grep-at-point John Mastro
2017-01-11 20:46 ` grep-at-point Thien-Thi Nguyen
2017-01-11 21:01 ` grep-at-point Drew Adams
2017-01-11 21:29   ` grep-at-point Joe Riel
2017-01-11 22:15     ` xref-find-references in elisp (Was: Re: grep-at-point) Kaushal Modi
2017-01-11 23:14       ` Dmitry Gutov
2017-01-11 23:24         ` Kaushal Modi
2017-01-11 23:37           ` Dmitry Gutov
2017-01-11 23:42             ` Kaushal Modi
2017-01-11 23:42     ` grep-at-point Drew Adams

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=CAFyQvY2CrVt_yKX3VrSufMceW1Kb6b6wAHhnpFVDuxOZLB3mNw@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=asimic@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joer@san.rr.com \
    /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.
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).