From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jon Eskin Newsgroups: gmane.emacs.devel Subject: Re: [Patch] Add project.el command to replace symbol at point throughout project Date: Thu, 13 Jan 2022 04:57:19 -0500 Message-ID: <35579C02-D0EB-4269-B815-BDB5D2E0897A@gmail.com> References: <33d9f13d-7b46-1c06-f7d5-6d1f70b5d0fb@yandex.ru> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12117"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Manuel Uberti , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 13 11:03:07 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 1n7wwl-0002wR-4k for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 11:03:07 +0100 Original-Received: from localhost ([::1]:38876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7wwj-0000yr-UX for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 05:03:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7wrE-0004P5-FZ for emacs-devel@gnu.org; Thu, 13 Jan 2022 04:57:24 -0500 Original-Received: from [2607:f8b0:4864:20::832] (port=44746 helo=mail-qt1-x832.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7wrC-0003hN-8O for emacs-devel@gnu.org; Thu, 13 Jan 2022 04:57:23 -0500 Original-Received: by mail-qt1-x832.google.com with SMTP id c7so2777664qtc.11 for ; Thu, 13 Jan 2022 01:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HO8ziuni+mKbqYF/7RuZ72sov5Rya/zUPq4ktJQyYdg=; b=YoN4gqlOKGkpKHDfzGakmURMxOB+g++3W9JR6aHg1a8UAki5wj76ZZY8Mb0YBNA5qK KtCbTsEF0Pm2EmXjjQqCmuQBb1jfHpG4HUNXOhwNaQXiFxro1fmSjE6CtdzUn7NdPxTk +0H8/Y7iQGGp9A1b9fSmDK0LXf3Hovqrggi1wbUxXfMLC3QR8nNryRhefwyl+yBzsC0L Bl2/jtdSl0P9DZkf3h869ZJDu0c1sZoWQmVvSUNLtMf+DsEUyBYbeyEY2GDCvgyYsA0M McTNjxeCiIXgqg8x23EaX0aR3MwKfhc82rRrY789HxKhJXXITBHYFPG27dk2EjwzL+Ke 2X5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HO8ziuni+mKbqYF/7RuZ72sov5Rya/zUPq4ktJQyYdg=; b=zjtdovbkKHkjsoxtskHRTeuXgbpT1lICpmXr6BdfcOE+MqThhaNmf94Ln8ML7o+Jj8 5+resz0sCgKuHqbEqnPwyw2HKyCevboPivZeBBwOvYLK2oaV49wKgmXnPfvNXJs8rA/u DrU/nTuxN1hfCT+jwF1Em6EBAzmk+p6njLyOwKDHr16HqTEuVxWS+Zi7PZ8p7SLZso1l W2vX8ms7cdGHe72xMrfpzkZuC8FCWm5pSQiqulMh69TdGY++9PAuu/CIMin8m2qdiSFG VaWkfh2PDUiYREN26rcgQrIqsiIokjCdmpSSJIeALeQASZs6UPTryGKOlDAeLyYIeNR1 Efvw== X-Gm-Message-State: AOAM532UmW84b7IRlKRs5u7Ez9M6tcgV0r0wMLG//WDDC9ZgZGpHpvtY tTtLt2rh5UhM1FMoH636vBU= X-Google-Smtp-Source: ABdhPJwZbLptojmcK7KuLEz/i6Ind8E6vu+rL1+UkcRaYKO1asDC6r008JcnK1yS5WSS+7ZgKItQAw== X-Received: by 2002:a05:622a:1c6:: with SMTP id t6mr2869880qtw.271.1642067840440; Thu, 13 Jan 2022 01:57:20 -0800 (PST) Original-Received: from smtpclient.apple (pool-108-31-85-19.washdc.fios.verizon.net. [108.31.85.19]) by smtp.gmail.com with ESMTPSA id g22sm1665324qtk.23.2022.01.13.01.57.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jan 2022 01:57:19 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3693.40.0.1.81) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::832 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=eskinjp@gmail.com; helo=mail-qt1-x832.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:284694 Archived-At: This works great, it's exactly what I was looking to do originally but = couldn=E2=80=99t quite figure out how. Thanks for writing it! > On Jan 12, 2022, at 8:03 PM, Dmitry Gutov wrote: >=20 > On 12.01.2022 11:42, Jon Eskin wrote: >>> On Jan 11, 2022, at 10:43 PM, Dmitry Gutov wrote: >>>=20 >>> On 11.01.2022 11:50, Jon Eskin wrote: >>>> That's a great function, I love seeing all the results in an xref = buffer. I previously explored adding a command to the xref similar to = 'xref-query-replace-in-results' that pre-populates the FROM field with = the item you were searching for when you executed 'project-find-regexp'. >>>=20 >>> Would it help to have an easier version of = xref-query-replace-in-results, or do we really need a separate command = called project-find-regexp-and-replace? >> An easier version of xref-query-replace-in-results would be = preferable to me personally, at least. >=20 > Try out this change, then (attached). >