From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.devel Subject: A new command to apply changes to lines referenced in compilation buffers Date: Tue, 22 Dec 2020 00:43:47 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35519"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 22 00:45:58 2020 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 1krUsH-00097G-Lb for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 00:45:57 +0100 Original-Received: from localhost ([::1]:39850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krUsG-0000Vo-Lp for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 18:45:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krUqO-00082T-BX for emacs-devel@gnu.org; Mon, 21 Dec 2020 18:44:01 -0500 Original-Received: from sonic311-32.consmr.mail.ir2.yahoo.com ([77.238.176.164]:33113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krUqK-0000yd-7s for emacs-devel@gnu.org; Mon, 21 Dec 2020 18:44:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1608594230; bh=yOrH0K9sJpgVI1Px/WWMGeaGX7xcVEADDQpnrU2Fn7E=; h=From:To:Subject:Date:References:From:Subject; b=OJoKAFO5RQtZXbxPJrN/hlTv7I0XRp+ISVbZVTva1idiUACpU1wXfL38WyH/qoN86ZpbaH/ByyPbXa/nu4/7OMOu7a73FHyDbSR8Y6p9XVAqNCX/JXd5EP+Rm/QiNURCktFR4vmPyHhETa+mMnc9uFbtD7Z7sYe1xMWZI6BaMH2wcuGkN1g2W2MibBxDW5E4+AHmbNxhSASr/hvhzbdpjZXzdAugdtcCk8/C7XteQXPjX62ObGvDBIp1K1RMBBNOnH8XS9PxlS24fDyYoERbJro6bPLkeImpoQu2O37wgph6rbyOJhPMIqqWQ6KJZZtrf41D+PP+5GeFahyC9++G0A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1608594230; bh=Zd7m0XjlsbsQlHnEl04Xrj8PXlwsJBCPp06YqzVcqt8=; h=From:To:Subject:Date:From:Subject; b=BedCCRK2Nk+7YrQz1x6H5uZpusjrPhAoAXS+Xe0Zfa+50EQ4T31oPrcuV2MCRT/wHVrHctGgLZwX090tudZBYQLjK0EA6EljbEETHKNOBMN+8ck6cFtFu4GeuqIf54cT2EN7QMPDj4RKkY0JFYi2hwoyocof1Pt6z0jCv0MZpM+9us8HQK/ONQsv7p5gzvcTtrRqaTBlTeMfxe8aHLkFFxeadKn/n70ssusHyUQHou2HxEp5DjGu3ODLLdUCiV/enVC2oiWYS6iXx2NK/AbkJLtKhYber1teTt4lvbdKXnmEJHmh9nVKk3Z7fmmzr85Rz9RTMKwivbnE0fCw9zxaTg== X-YMail-OSG: M8Q2YSsVM1mD2Xh4AgpJm2TJGIHkVQaK.wj6hBNmec.pyJ0USNLnNbJFjc446Ct 3Bjl5Lkkc7Xwv1zwHG2VRd3VsdFJ9yyX6uxYFdiVSWTxrBusBdJl7b_E2Gl.njZANvYQa24cf7i1 mE.pjZIniL2DMyYk0mmn6GZN6lF4KtUWflDyrhn7yq4r7GylMfjCgbSqBBP_s5kr1LuZnQtKwTz3 dfWemrYtOwyTx.EqK11gWJRBb9M62UjfqVrFSaZHxG1uSPYXf.vgoI5J7LZlsEk3LTEbbVTMGZjN zPUPVboecRoYLxfj6n7k7Ba84vmoWYyNSCB7xfyH_2QRS2mAd13zkTI0vjONEu8jIZ9RAR7DQBH. edzCvRceXb3jktcSA_xjnkESqmRmvMrhdOPg9XDkfKh9MQq._ID2xnSA4UjsDTBV4kquwimfDSKN alMIP6ksh9kPq_DHsbJrrkCEwgXXAp_1Bc3cIpE2NyhVM06w9iqtgQDbGLL_tfuHUWDQHsN1icwF c92G57M4KFP_bd7ZmqDeZG3uCZsQ3mw0h_xyYnVIGeG4YwEpxPmdrxkU.KEwFDy.p3G4ez7nEQDO 4.V4rSAeSLX_7WFY75XOk3PujPRv4xdhqXdpUtttRwSfKNH4mubLSy99dxojlxV3ldb9oSbIYIZD 2EiREwZQQMR.ghhENDp32Gs.c5VGSLI_p9d5HOgjfkK7E53ysSI6ugrSFfel4DgL8dnutKjbjpK1 IVPHFigoKdEyiD5iWPy2KCG0dCOmFYIBVK_SbhFyfNXJ6K_lYCJmJaE7tH80surnnupaA9uqS1FE wEtNOuYl3xtTss0eS7ExN3YIQdhd1Q30SfQDXlmE6v Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ir2.yahoo.com with HTTP; Mon, 21 Dec 2020 23:43:50 +0000 Original-Received: by smtp422.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 42b8be60039df6cce82ce733ddb0a4b1; Mon, 21 Dec 2020 23:43:48 +0000 (UTC) X-Mailer: WebService/1.1.17278 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Received-SPF: pass client-ip=77.238.176.164; envelope-from=mardani29@yahoo.es; helo=sonic311-32.consmr.mail.ir2.yahoo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:261452 Archived-At: Today I thought about the following use case: Imagine a user that is working in a C codebase and wants to rename some function without using a TAGS file (or maybe the language is not C and there's no good TAGS support for it). One possible way to do that in a more or less reliable way (ie, without changing unrelated matches in documentation files, for example) is to simply change the definition and compile the code so that the compiler will refer to each callsite that needs to be renamed. Compilation-mode already knows about the location (file and line number, at least) of each error message, so I wonder if we could add a command to compilation-mode that performs a search and replace over each error line in a compilation buffer. The command would be similar to xref-query-replace-in-results, which does this for results produced by TAGS or any other Xref backend. Before I think more about the design of this command, is there potential interest in having it in Emacs? Is there something available in Emacs that already implements this use case in a simple way? Thanks.