From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Patch] Add project.el command to replace symbol at point throughout project Date: Fri, 14 Jan 2022 22:28:10 +0200 Message-ID: <44f72f97-d1d8-0b4c-73a0-7f077fb1ef26@yandex.ru> References: <83zgo2770l.fsf@gnu.org> <83zgo15dhp.fsf@gnu.org> <83czkw3uvl.fsf@gnu.org> <170a1c89-7767-0930-f726-f7b2551876b2@yandex.ru> 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="25342"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Cc: Eli Zaretskii , emacs-devel@gnu.org To: Jon Eskin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 14 21:31:04 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 1n8TDz-0006RE-IJ for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jan 2022 21:31:03 +0100 Original-Received: from localhost ([::1]:50512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8TDy-0001zS-1P for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jan 2022 15:31:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8TCm-0001CL-NK for emacs-devel@gnu.org; Fri, 14 Jan 2022 15:29:48 -0500 Original-Received: from [2a00:1450:4864:20::32e] (port=43679 helo=mail-wm1-x32e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8TCl-0003eP-3k; Fri, 14 Jan 2022 15:29:48 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id s6-20020a7bc386000000b0034a89445406so5625012wmj.2; Fri, 14 Jan 2022 12:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=K50tTs9sKbGmcI+7Ob6NuSLOxtltEXkdEZ201sg8hh8=; b=nlzZB5M4q5Vhyps30Ar4ZZ0+n6LGGXOv+3OXcfLveKCsFR6bJO3sEoOjt8OMKrTOIw 8fmD3H46l5RsTMVpOIXQgJ8DzicZb572/n6tn91Pky+hmNz68F7nZIOCScZPnalnVqQ0 CS5lsgBnxkwS9Xc0vGKr7I32TgtiNW9+j1mQY/kTVSuT3YPmybcvsQHJjt8shuPN6bag hEqbEPIzaY02A7g0UIrL2iwxU7OMCvUzdXrgbhUNq96rBhUXbXgYcFBNH3uFFqr4MeBf nqAUPGTJC5nN1q+CQAKYRjcf1EuxZdAwA9IBwgDywsrQtmS6NIHCraHez7glcYFjXDqY Mibw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K50tTs9sKbGmcI+7Ob6NuSLOxtltEXkdEZ201sg8hh8=; b=N8FksPqqfLoOzpUk+Q5dTj02S1ZqSQT//I/kBqMwrUGaC87QIHEu2ZgeosThZQ46si myxD7hHDiUsptg6pkYZCwzJXtyncZss6yl/6kIH+sMGB/mGIp9fAk39ZlrINodg31y/h xnxPKDKIsb+Ws4wllcXYuFwm3zIjJqqSSYUL87ZQEJpfSc0EIKRu6uQRsEZ3BJTbmXm/ lS908pu+fc1kbp/gDfEwKnNgSHNZYLtnt0xLg3sr+MepDvOIVR3oEk1pGoZd8JEWLprR 73XVwFdjZrgmPuPawQPFnQ3hR+90iQMvfTxJD1++5O2SL62dr1+N2gVnlKC10AKuJhyC JjQQ== X-Gm-Message-State: AOAM530ekIkL2/BKN1pmL9o2uokr38PBEot5Og/lB/xcbmwrwUYIc6CH kfSOE+L2q1COFfhhP+OZ+jhDbqRpyeI= X-Google-Smtp-Source: ABdhPJxYWot33pRhriSw7lcJ2iuE7kHNbg8P92dIUTttlt0b+Xk5B+Agai4zbA12GCMRWvXV41j0BQ== X-Received: by 2002:a5d:64a1:: with SMTP id m1mr9494851wrp.503.1642192184980; Fri, 14 Jan 2022 12:29:44 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id e12sm7687434wrg.110.2022.01.14.12.29.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jan 2022 12:29:44 -0800 (PST) In-Reply-To: Content-Language: en-US X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-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:284759 Archived-At: On 14.01.2022 12:26, Jon Eskin wrote: >> So Jon, if you fancy writing a patch in this area, you can try implementing what Juri suggested: >> >> let-bind read-regexp-defaults-function around the call >> of query-replace-read-args, and use a symbol at point as the default. >> >> 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. Yeah, don't hesitate to ask questions if/when you have any.