From: doltes doltes <doltes512@gmail.com>
To: John Yates <john@yates-sheets.org>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>,
Robert Thorpe <rt@robertthorpeconsulting.com>
Subject: Re: finding stuff
Date: Wed, 27 Jan 2021 06:33:52 -0500 [thread overview]
Message-ID: <CAKO1_R-fX_vjySK0R5A2LZCfLkyHnq=1XFmon1iCuUYs=M5gpg@mail.gmail.com> (raw)
In-Reply-To: <CAJnXXojEjDSeKfWNCXUc1R1_HOBbnmzOyZjHGv-L4sRc4WzeeQ@mail.gmail.com>
If I would really need to search all Emacs files, I would do the
following: Download the source code repository and execute =grep=
there but in all this time I've been using Emacs, I've never felt the
need to do this.
Apparently, what you were trying to find was a section in the Emacs
info manual and you knew some keywords but wasn't able to find the
Info heading. What I would do is the following:
1. Visit the =Emacs= info file. That is, execute =info-emacs-manual=
(or press =C-h r=)
2. Execute =Info-toc= (or press =T=)
3. Execute =occur= (or press =M-s o=) while being in the =Table of
Contents=.
4. Search the keywords I want to know about. In this scenario, they
would be: =local variables=.
If no occurrence were found, I would repeat the same process with the
=Elisp= info manual.
If you want to actually search a given regexp in all info manuals, you
can try the following command. I would call this the brute-force
method. If you haven't set the =$INFOPATH= environmental variable,
then just use =/usr/share/info= as your =$path_info=.
#+begin_src dash
path_info="$(printf "%s" "$INFOPATH" | tr ":" "\n")"
pattern="emacs"
flags="--color"
find $path_info \
-type f \( \
! \( -name '*.png' -o -name '*.gz' \) -exec grep "$flags" -- "$pattern"
{} + \
-o -name '*.gz' -exec zgrep "$flags" -- "$pattern" {} + \
\)
#+end_src
On Tue, 26 Jan 2021 at 10:09, John Yates <john@yates-sheets.org> wrote:
> On Mon, Jan 25, 2021 at 8:59 PM Robert Thorpe
> <rt@robertthorpeconsulting.com> wrote:
> >
> > Alternatively, info-apropos could be associated with C-h C-i by
> > default. As far as I can tell there is nothing that uses that binding
> > in vanilla Emacs.
>
> My suggestion to repurpose 'C-h I' was to conform to the pattern
> in that table of binding wherein an uppercase letter implements a
> deeper, more verbose version of its lowercase counterpart. Such
> patterns facilitate (my) memorization.
>
>
next prev parent reply other threads:[~2021-01-27 11:33 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-24 2:33 finding stuff Tomas Hlavaty
2021-01-24 5:33 ` Bob Newell
2021-01-24 7:22 ` Jean Louis
2021-01-24 11:09 ` Tomas Nordin
2021-01-24 7:13 ` Jean Louis
2021-01-24 16:26 ` John Yates
2021-01-25 16:31 ` [External] : " Drew Adams
2021-01-25 17:02 ` Eli Zaretskii
2021-01-25 17:37 ` Bob Newell
2021-01-25 19:39 ` John Yates
2021-01-25 20:59 ` Stefan Monnier
2021-01-26 10:33 ` Robert Pluim
2021-01-26 21:09 ` Drew Adams
2021-01-26 1:38 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-26 21:06 ` Bob Newell
2021-01-26 5:21 ` Drew Adams
2021-01-26 5:45 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-26 21:09 ` Drew Adams
2021-01-26 22:16 ` John Yates
2021-01-26 23:28 ` Drew Adams
2021-01-27 6:29 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-26 15:02 ` Eli Zaretskii
2021-01-26 21:17 ` Drew Adams
2021-01-27 6:39 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-27 6:43 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-27 18:43 ` Drew Adams
2021-01-27 18:59 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-27 18:24 ` Drew Adams
2021-01-27 18:34 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-26 1:58 ` Robert Thorpe
2021-01-26 14:49 ` John Yates
2021-01-27 11:33 ` doltes doltes [this message]
2021-01-24 9:18 ` Jude DaShiell
2021-01-24 10:58 ` Tomas Nordin
2021-02-27 1:10 ` Tomas Hlavaty
2021-02-27 2:57 ` Eduardo Ochs
2021-02-27 8:36 ` Tomas Hlavaty
2021-02-27 17:33 ` Eduardo Ochs
2021-02-27 23:25 ` Tomas Hlavaty
2021-02-27 23:28 ` Tomas Hlavaty
2021-02-28 6:20 ` Robert Thorpe
2021-02-28 7:39 ` Tomas Hlavaty
2021-02-28 7:55 ` Jean Louis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKO1_R-fX_vjySK0R5A2LZCfLkyHnq=1XFmon1iCuUYs=M5gpg@mail.gmail.com' \
--to=doltes512@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=john@yates-sheets.org \
--cc=rt@robertthorpeconsulting.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.