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: Fri, 14 Jan 2022 05:26:13 -0500 Message-ID: References: <83zgo2770l.fsf@gnu.org> <83zgo15dhp.fsf@gnu.org> <83czkw3uvl.fsf@gnu.org> <170a1c89-7767-0930-f726-f7b2551876b2@yandex.ru> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25575"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 14 11:28:58 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 1n8JpJ-0006Ue-Qo for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jan 2022 11:28:57 +0100 Original-Received: from localhost ([::1]:55440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8JpI-0000Qd-Ls for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jan 2022 05:28:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8Jml-0007XL-2x for emacs-devel@gnu.org; Fri, 14 Jan 2022 05:26:19 -0500 Original-Received: from [2607:f8b0:4864:20::836] (port=35490 helo=mail-qt1-x836.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8Jmj-0005ut-7R; Fri, 14 Jan 2022 05:26:18 -0500 Original-Received: by mail-qt1-x836.google.com with SMTP id 14so2802436qty.2; Fri, 14 Jan 2022 02:26:15 -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=s/ey4zi8XSUGAuSrzPstg4GMOtD6GkEJiWIMQR/Bta8=; b=oObutcB8WwTOXnroDfQlysgk04fJx2uCuTboNVJto6xbXMibNfYu9ipDfV8x7CiB4j QdxEyGhbUK6f+ixCfanuyBr8dqvs3mxpo+FkphDC8UwLrXefWlRLN+7zBYwLhEAfM7EA yGMtc1ezwPyxHq6Pl5Qnka3c4weQ8g3qy9LOuRU+fyquKt8t3K5K7WwLhqhVmy16Gyuj 7A2tKACiMmSbDmoOvWll2aRVOlBT4PP4kOOUm5awIVlrmKJA3suSrU2luP6l4ZACqz+H YBXOAoEl0dTS/lKPE9Rt6Yg1JvWKYLAjZt5nrDn43W+2/eWjYfsb/EIS0Y0mdQRyOSf7 G8ng== 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=s/ey4zi8XSUGAuSrzPstg4GMOtD6GkEJiWIMQR/Bta8=; b=8R/chtK6VWXJdYTI/+xK/UN/7dtnd9DdJxDBR547iw4pD+wFBY4Y/CqtJLSt+zWa4c s3U+ZmmimQQQDkeeoSyqoh+uARSdKt1p1k3Jn1K8NBg1qqqHpKU7F3xjFMxtZCZxiNZX gjmmv7VhKTPoOK0J0qDYMQB1WiYqI1DjThzEfdyNUZ2wONykzvkAwnrVrMfntQpoyYJL 8uahpSEeSQU6nMM7zadi7GfOfsE1H1Iqgpd26vNjeW+NYrBr9CCVnw/SVcyrgGj2zSYn fr8cyvUIU7OCAWJEfaDy0Mv/nrhac3etiak6Ib8iXqmuufoHcYxhHei6/82xd1xq7n2A 0hMw== X-Gm-Message-State: AOAM532s0WUePhEQU0a3ofQmq6BHZU6CxR1HRZZOW+eNzdzPMa1eRoqp l3ttIe/dSMKl/4hygI5rSLw= X-Google-Smtp-Source: ABdhPJx+lK7Ej+6dUW6Vk7LdWbYdYGaJo5kx5uZkXFIxZ9I+jfmZEgU0FfT1r+m5f68RgO5wv0iBnA== X-Received: by 2002:ac8:5c49:: with SMTP id j9mr6922350qtj.544.1642155975168; Fri, 14 Jan 2022 02:26:15 -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 o10sm3685728qtx.33.2022.01.14.02.26.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jan 2022 02:26:14 -0800 (PST) In-Reply-To: <170a1c89-7767-0930-f726-f7b2551876b2@yandex.ru> X-Mailer: Apple Mail (2.3693.40.0.1.81) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::836 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=eskinjp@gmail.com; helo=mail-qt1-x836.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, PDS_HP_HELO_NORDNS=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:284737 Archived-At: > So Jon, if you fancy writing a patch in this area, you can try = implementing what Juri suggested: >=20 > let-bind read-regexp-defaults-function around the call > of query-replace-read-args, and use a symbol at point as the default. >=20 > That can apply to both project-query-replace-regexp and = xref-find-references-and-replace. On it! I might take a little while but I'll check in if I get stuck.=