From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: finding stuff Date: Fri, 26 Feb 2021 23:57:01 -0300 Message-ID: References: <87a6szjc81.fsf@logand.com> <8735yqbnyz.fsf@posteo.net> <87v9ae71th.fsf@logand.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="17742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tomas Nordin , help-gnu-emacs To: Tomas Hlavaty Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 27 03:57:38 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 1lFpnW-0004V7-Lz for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 03:57:38 +0100 Original-Received: from localhost ([::1]:46292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFpnV-0001GV-LP for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 21:57:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFpnA-0001G7-Mv for help-gnu-emacs@gnu.org; Fri, 26 Feb 2021 21:57:16 -0500 Original-Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:42279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFpn8-0000EE-Uo for help-gnu-emacs@gnu.org; Fri, 26 Feb 2021 21:57:16 -0500 Original-Received: by mail-pg1-x52c.google.com with SMTP id o38so7356389pgm.9 for ; Fri, 26 Feb 2021 18:57:13 -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=l/tgGvVUpHfPg428CLiHiRdSsUi2J4Tw6+nyb/ZLisU=; b=sfQV+NDjMBsAO6kj7tJO2+AnvSHLAZCEcjA+MvgXNemSSvvTbVtjnm0rUscZCcp8bz O0NCpkA/qps6nPRAr8fcOHJ/nx4M72DgZRYzxxTGy8/gevjLGuQPRxEdubgVVPvDFxGb osc1pE1SNI4tbNWB9b8HUSYbiFaLKDL5jG+m1igKOKJpV7jpdUD0QB68kJjG1gVq17mo lCduTNqUVzFcP1g02W9EGdADkIT4G6og7WrZtEdOt/ruy5GfncakCwQmW8UGq3EpM27j 1np9leTf2efypD5hLKP5vRcr2W6FmwKmJxRSbr9VZb6ldRlhXVMCLNmjMZgnvuAwQrPz 7i4A== 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=l/tgGvVUpHfPg428CLiHiRdSsUi2J4Tw6+nyb/ZLisU=; b=Vg/5Fe5zDO7DwC6wXK1PBj0CXBOnh+h6/afez1KUrMlnkYWFGtXeJTrEqiGhVOIS6y Vdb7RUyKJU0EGcg5hAlwJjtxREgfWvD0Zp3T4w5+5vcvgfF1lzNnJ4tZo3R1V0ku9HUA D+8YF+qGrsOG5tsaB3Z3ir2Xj0BTH2CSx3opv8wrIe4W0G74xu9X7Q2TfuuGmgcEt0aL mZN87X7FeqKiiJZvm+fVVBwIB2V8aa4O9ilS/D2lPh6j8vITVSauBUT6PzEVhw4yvpKI DHgnGpxeDiD4B0M20azOU3ge3MCQkImwTcx6iBz8Mtn2eiQJtHhpTNceUnL0G7Do/VX/ 0gnQ== X-Gm-Message-State: AOAM532QVaURJzCmOzZlrEYJCOr4InNzMdLEchNAh7GVuK9rdtacbAuL brF6Ko6fh9uUmNJU+5ywexKOlpe6xl5c87dNFks= X-Google-Smtp-Source: ABdhPJyRGjDYxT0dNWaJyReYq+185FaWotVxMSPXmL1oowMO8BmAhv5xWrdnkf/9EeOtrmCSX+L912sviAGBfmY3qq4= X-Received: by 2002:a63:f95b:: with SMTP id q27mr5526776pgk.82.1614394632813; Fri, 26 Feb 2021 18:57:12 -0800 (PST) In-Reply-To: <87v9ae71th.fsf@logand.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=eduardoochs@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=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-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:128287 Archived-At: On Fri, 26 Feb 2021 at 22:10, Tomas Hlavaty wrote: > > On Sun 24 Jan 2021 at 11:58, Tomas Nordin 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