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: Adding refactoring capabilities to Emacs Date: Mon, 4 Sep 2023 18:45:18 +0300 Message-ID: References: <83fs4f36wi.fsf@gnu.org> <61621120-8f6d-5884-e7c8-33581b8e0ca4@gutov.dev> <87edjkuv0s.fsf@gmail.com> <0bba73a6-f9a5-91c8-ef56-a58951706490@gutov.dev> <838r9rg5x3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13519"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Yuri Khan , emacs-devel , "Philip K." To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 04 17:46:44 2023 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 1qdBml-0003Js-Ou for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Sep 2023 17:46:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdBls-000897-78; Mon, 04 Sep 2023 11:45:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdBlo-00087s-MG for emacs-devel@gnu.org; Mon, 04 Sep 2023 11:45:45 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdBlZ-0001Bc-JU; Mon, 04 Sep 2023 11:45:44 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0295132001FC; Mon, 4 Sep 2023 11:45:22 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 04 Sep 2023 11:45:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1693842322; x=1693928722; bh=tVOsjye+vUk6GAVUZp31HWACQWMYGzfWxUO 1fCjoZpg=; b=r1SpXOIz2nfkPjRCt0HpfSSYeiCYpOUl7r7HaFxMxPDfFPV4rsx pyXdc5Z+hePfQ9tETHvVq5D0CFnwpyYLD8L2Z7OjXhEyxVsdZDuymgUy5yaCM2C+ d1liHRMu8Kt0bIIMb9/kI9RNLSJp/705VlExZV3joix3D65hthuw4XFHnnByXmLo Rl0xLD/VT9In280wNs9IlQfeMB/hInYav6x7OEpq/rTa4TzJv3iSXdqp0IjgYTtv xOU7hbqICnSRMiaxqDT7wk4H0N+Yzc0stRR5WLxVwOdapFZP9WGv4mBdqS/d+jGZ XI2aKIaAGNuJUwj2fXuyXt5QQgIxfaxjWGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1693842322; x=1693928722; bh=tVOsjye+vUk6GAVUZp31HWACQWMYGzfWxUO 1fCjoZpg=; b=dNl3IAxld4Hjv7M538MCdOHsp9D6JTQxtr126TOnT+kVTfY3cTc 0x5dKxswrgKjN8JZkdOmlqufD1kLZuPi+I8tsuFUFZwynEZF+gmNskQGFV1CRH8v QE7LcOJ3wUSqNWqniBwyhrZsp2fUlPWWffmLropzQTSP9JMh81/K9msiLZUwwjAz xWJ1SlQyu6FqDEmDCUScz2R6bmtEwkhTpd3VPyUTRZizO+mRKdn5GXENzZPpyTWF /hz91qQmKOQDNEkYGeedIKaZVK7GLuwm0AAUuCCyIx5x2C6qiOGDmvK7U7Kd0/RH 9yA+gWtceSq2QZ+xxWqHSxDCnkVGSYo1+AA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudegkedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfffheeljeffgeffueeghfekkedtfffgheejvdegjeettdduheeufffggfef jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Sep 2023 11:45:20 -0400 (EDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=64.147.123.20; envelope-from=dmitry@gutov.dev; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 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, NICE_REPLY_A=-1.473, SPF_HELO_PASS=-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.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310081 Archived-At: On 31/08/2023 11:02, João Távora wrote: > I had seen this screenshot already. I think it is a very simple rename. > If like to see how it handles clangd's move function to out-of-line > action, for example. Do you mean what's also commonly referred to as "Extract function"? Have you seen it in practice? I've tried to find a pieces of code in several C/C++ projects where clangd would offer such action, but no such luck. Only "extract variable" in some places. And renames, of course. "Extract variable" doesn't seem to offer any preview either, opting for a more snippet-like interactive UI where you're typing the name and it's updated in both places on the fly. Maybe wherever "Extract function" works (newer clangd? I have 15.0.7 installed), it would do the same.