From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: doltes doltes Newsgroups: gmane.emacs.help Subject: Re: finding stuff Date: Wed, 27 Jan 2021 06:33:52 -0500 Message-ID: References: <878s8gsbks.fsf@robertthorpeconsulting.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30802"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs mailing list , Robert Thorpe To: John Yates Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 27 12:37:44 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4j8q-0007u1-CR for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 12:37:44 +0100 Original-Received: from localhost ([::1]:41968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4j8p-0006nG-AL for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 06:37:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4j8O-0006mx-A6 for help-gnu-emacs@gnu.org; Wed, 27 Jan 2021 06:37:16 -0500 Original-Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]:38885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4j8M-0005Zp-IC for help-gnu-emacs@gnu.org; Wed, 27 Jan 2021 06:37:16 -0500 Original-Received: by mail-vs1-xe36.google.com with SMTP id w187so955116vsw.5 for ; Wed, 27 Jan 2021 03:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1Fuxee//+sS/9OGMIi6iiu07jwaAiRfzeqJP4kJM5W8=; b=MlmcQTqz5im15/oCjyDl2Y2nOAdOWVCRZXqaBzqwEZXjhlG5+Y2KVOX+g1hZRwj7Ue kzGpqqZLJCIVWB61qyQivFKTRbYAJJh4HKiN6Oo0ub+DtxJ8tqtxt8tVNvy482xAKGpT +WFaZPcohWXvFzwksM1u/8jdJTnSnOv3q1YHPm5xS1VPwRY2bp/BSn5Vibq3JSE2WdLj ybi+uu84MYJwkkRhHALhM52GeuW9GJzKGy92EAIzw5RkMSTdpi2W98UUqGWCreeGrWFl sLgisVn84Y8Vflx7d0TOK5lODl12Ncy2c4me84EP2Jxtz2ouShqbPl7wG7nkeOolsM5P k4OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1Fuxee//+sS/9OGMIi6iiu07jwaAiRfzeqJP4kJM5W8=; b=uRSNK3Z0UkJwm9+xRk/gvl++xCrMVYxsbl2xGpFRbCORao+pLHaQ6sRlXjVBqZC0XU AzG32943VddxglXJM5YMNeKgEAF/S9Brbmylk/JJBF2U5rXCfFKe/lVfYZio6RDpOLkA mzSOG963/mMV9kOqzC4BR7kmMLo7EZTmrHX0xaDrAHn0+9NSbbC3asVr/ZhpK8l2JUGf DTfAA9kzbTzISsLXJDUWaff2rDq0/JvsR2389sDVdwOOhZ+q94VDg6TgzyvLRwf4uZQc m9Hd8VWUdXpNGpGgghXetjd70Qy6ojleJqNnxIuPfQvC56eIp1zEZY5lYAAXAKnY+Mrw ccHQ== X-Gm-Message-State: AOAM530jvd7A2FF4ev0dBskI/JIQKM9mLXhxZRErl8C7C4qTlUx6kUCS Azj9vvdy0KSTQQKVMtgAzR66y53EqZmZ0rGqSkU= X-Google-Smtp-Source: ABdhPJzUKQH+ATed2888E+XEpnaIUbtaVOQzDju+73zhV+vGMzsCnDzUXZ4V9A+nlwZoVkPUyMny3NOelw26p+Lk/hY= X-Received: by 2002:a67:ba01:: with SMTP id l1mr7922538vsn.49.1611747433523; Wed, 27 Jan 2021 03:37:13 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e36; envelope-from=doltes512@gmail.com; helo=mail-vs1-xe36.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127382 Archived-At: 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 wrote: > On Mon, Jan 25, 2021 at 8:59 PM Robert Thorpe > 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. > >