From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: [RFC] Urgrep: New ELPA submission (eventually) Date: Mon, 12 Sep 2022 11:00:08 -0700 Message-ID: References: <83k06897av.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 12 20:06:01 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oXnom-000AbK-QN for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Sep 2022 20:06:00 +0200 Original-Received: from localhost ([::1]:54730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXnol-0003DF-K4 for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Sep 2022 14:05:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXnj9-0000YM-Im for emacs-devel@gnu.org; Mon, 12 Sep 2022 14:00:11 -0400 Original-Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:35561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXnj7-0002oB-RQ; Mon, 12 Sep 2022 14:00:11 -0400 Original-Received: by mail-pl1-x62e.google.com with SMTP id t3so9330975ply.2; Mon, 12 Sep 2022 11:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :date:message-id:from:references:cc:to:subject:from:to:cc:subject :date; bh=kAxXIwdcdMgyzXF1/xxepLumIcsOxi/iWDg7jiQqRhM=; b=cCDTsDRpoaQqDKQUXKE6AnYIpMcrbHTCb7asAenB+jb1UYNv9Ffzf5ccFjCs+5GAji 2w0cnSkm2lLTgEQQuJVnAQfDUplXzdHlK/kcG9yu3jAwwZCeKYuI136xw4JqW271s2B8 MHm6XNVrRtjYJGwZhtAJkBfLdIlHM+0F9smYcZqjDEZCdDbBBkhD7HOn1vv2Xv+19IXc zskPGuDM2EPd8CB+75a4/Uwv9m16zmGufgtEsUnKxZvhE2yOxT5CHFjrauxKjIdtK8kv 6dPtVl1gSzEiVbpm6Knnzby0+3CYzOktkGIpx6ErCkex4YQvIxrE1p0Q7Orkk8Vtdysv GekA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :date:message-id:from:references:cc:to:subject:x-gm-message-state :from:to:cc:subject:date; bh=kAxXIwdcdMgyzXF1/xxepLumIcsOxi/iWDg7jiQqRhM=; b=RRpagzsrISl54dPn+OHUmDzj4ySJPUNEQvWVZorWsxaPmrClyYQ2nEHDpGLufKqKtn mBqjjuasLleoocwLhD5uJqr3LNxY6wYPNJZtCKg434i4qOMVGmH6y34UMWIShOuazGSf 3WwzjkxqnnUCZpTXcTkhg5ZBrTOUBOWUIzDinr4g/ftN2wFHb52/XBV5hsGfhM5E528y UvwjI4dxyvEHYVEm+Sa51zpqJNG65RkkoyZz8Pmf5Vw8HqaAxpxgp3SvqgcDU3dlonyG y+lmTj3x++LfziFts4nOQR/o10znmhiK58DiMWaV39qLluEJOVFfSPoNfPQgDn+OpXGv 6B7g== X-Gm-Message-State: ACgBeo0DSQ8gh1uAdR07fQCKYpfdYWrm5Ch+iVqOBCSexpOvpK19OFo4 d0+L0cbBc+Vt+Z+2XGJmGF2Wa8RYpr0= X-Google-Smtp-Source: AA6agR7HTBk7k/nymY4Ajd3O9UB7x2j13yGd/SF/iPe1MfbUL3N45x7rWmiHBlSJJCRV1MtFzHSbWw== X-Received: by 2002:a17:902:d70e:b0:178:2d9d:ba7b with SMTP id w14-20020a170902d70e00b001782d9dba7bmr6950017ply.90.1663005607546; Mon, 12 Sep 2022 11:00:07 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id z4-20020aa79f84000000b0053dea60f3c8sm5885078pfr.87.2022.09.12.11.00.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Sep 2022 11:00:06 -0700 (PDT) In-Reply-To: <83k06897av.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x62e.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295215 Archived-At: On 9/12/2022 4:11 AM, Eli Zaretskii wrote: > Would it make sense to add this to grep.el, instead of having an > add-on package? That could work too. I think there's some use in having this available on GNU ELPA though, even if it ships with base Emacs. Since it's new and I expect it'll gain new features, it's probably worth letting people get updates sooner than the next Emacs release. That said, having this in base Emacs would probably have some really nice benefits too. I haven't followed it super-closely, but I seem to recall some fairly recent changes to xref.el and project.el (maybe others too) to support a wider variety of grep-like tools. Urgrep would (hopefully) make this simpler for any package that wants to do this: the 'urgrep-command' function can convert an abstract search query to the concrete command, e.g. (urgrep-command "my query" :case-fold t :color nil) => "ag --nocolor --group -i -Q -- my\\ query" Then any time some Emacs code wants to do something rgreppy, it could call 'urgrep-command' and get the "best" command to use for the system in question.