help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding stuff


From: Eduardo Ochs
Subject: Re: finding stuff
Date: Fri, 26 Feb 2021 23:57:01 -0300

On Fri, 26 Feb 2021 at 22:10, Tomas Hlavaty <tom@logand.com> wrote:
>
> On Sun 24 Jan 2021 at 11:58, Tomas Nordin <tomasn@posteo.net> wrote:
> > Did you try 'C-u C-h d'? Or set the variable apropos-do-all to
> > non-nil? That should yeild a more extensive search.
>
> Thanks Tomas, this helped!
>
> - There is an example in no-byte-compile directly shown in the results.
>
> - I discovered ps-begin-cut-regexp and ps-end-cut-regexp related to the
>   thing I was doing.
>
> People suggested many ways of finding different things.  I can not
> remember them all and know in each context which one to choose.
>
> grep through emacs sources seems to give me fastest way of finding
> stuff.  It is not perfect but I don't have to remember anything.
>
>    (grep "grep -r -nH --color -i -e 'local variables:' ~/mr/emacs")
>
> or
>
>    (grep "rg -nH --no-heading -i 'local variables:' ~/mr/emacs")
>
> This topic also led me to discover eev, which I find amazing.
>
> Thanks to all for suggestions!


Hey! Thanks for the mention to eev!!! =)

I just realized that there was something missing in eev, and I fixed
that and commited the fix to the git repository... here is a quick
explanation. When eev-mode is active the key sequence `M-h M-h' runs
`find-here-links', that generates a temporary buffer with "links to
here", as explained in:

  http://angg.twu.net/eev-intros/find-here-links-intro.html
  http://angg.twu.net/2020-find-here-links.html

Now, after the fix, typing `M-h M-h' on a grep buffer generates a
temporary buffer whose last lines are something like this:

  (let ((default-directory "~/bigsrc/emacs27/lisp/"))
    (grep "grep --color -niH --null -e 'local variables:' *.el")
    )

this a (3-line) elisp hyperlink that doesn't need eev to run, and that
should make sense to non-eev users... and they should find the
directory part trivial to adapt.

  Cheers, thanks, and apologies for the shameless plug =),
    Eduardo Ochs
    http://angg.twu.net/#eev
    http://angg.twu.net/emacsconf2020.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]