From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Patch] Add project.el command to replace symbol at point throughout project Date: Wed, 12 Jan 2022 14:45:38 +0200 Message-ID: <83zgo15dhp.fsf@gnu.org> References: <83zgo2770l.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eskinjp@gmail.com, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 12 14:50:56 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 1n7e1g-0009DI-KI for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Jan 2022 14:50:56 +0100 Original-Received: from localhost ([::1]:55576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7e1f-00053u-BX for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Jan 2022 08:50:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7d0n-0003oP-H4 for emacs-devel@gnu.org; Wed, 12 Jan 2022 07:45:57 -0500 Original-Received: from [2001:470:142:3::e] (port=44082 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7d0n-0007LZ-5C; Wed, 12 Jan 2022 07:45:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3N33oROv1WbCwygi+j4FalMxZrQuL4ae3rOddN+gwdo=; b=bhAdTVHvH5gg H+wW4N6SXFlDZCi3VgODHgaVRuW9SRzxdnjxsNrdUyFg0EV+NvWnawQEzZfCdCKSggLILsr+VBpEZ lw2BipEjYPDuHXYZH2aeg+AaFu+S0E4im9qJnkI5fMy4ZranZQtpqHvuPBCXN+SVlQ9MeDTE/vphg lDkJTcFwgi1GH0khpFqNUDYuI0mQMs5qamxzDEHDIhda1XvDoD2GrqQ6vv5A/AIcNmTS2PMX+dV+b Esp0/Q/P+FhsjyJgYiS+T4zsoibX8knshDF4QDqD4uDwAk5D3EVLnlsW+zDakigSn83fqgswHYcC6 thIyiZe09vDFpWJsgpubsg==; Original-Received: from [87.69.77.57] (port=1249 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7d0Y-0007Bv-RU; Wed, 12 Jan 2022 07:45:48 -0500 In-Reply-To: (message from Dmitry Gutov on Wed, 12 Jan 2022 05:46:53 +0200) 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:284649 Archived-At: > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > Date: Wed, 12 Jan 2022 05:46:53 +0200 > > On 11.01.2022 15:10, Eli Zaretskii wrote: > > I think we should have such a command outside project.el as well. > > Would it be possible to base it on xref.el and related facilities, so > > that, for example, one could rename a symbol in all the files > > mentioned in TAGS table? > > We could add a command like xref-find-references-and-replace. That's what I had in mind. Perhaps it would even make sense to have that command automatically adjust itself to a project, when invoked in the context of a project? > Or you can do a search with M-? and then press 'r'. Have you tried that? At some point. But I think someone who wants refactoring might have trouble discovering that, and a separate command will make that easier.