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: Tue, 5 Sep 2023 17:00:35 +0300 Message-ID: <48400a06-b472-25bb-c5ee-faae9207cfb0@gutov.dev> References: <1deda8eb-3ca8-e066-f1f3-a7a5e887664d@gutov.dev> 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="39164"; 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: Juri Linkov , Eli Zaretskii , emacs-devel@gnu.org To: Alexander Adolf Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 05 16:01:32 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 1qdWcV-000A2N-Cy for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Sep 2023 16:01:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdWbo-0001kB-Ka; Tue, 05 Sep 2023 10:00: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 1qdWbn-0001iS-Ag for emacs-devel@gnu.org; Tue, 05 Sep 2023 10:00:47 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdWbg-0003OH-6U; Tue, 05 Sep 2023 10:00:43 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F27E25C005C; Tue, 5 Sep 2023 10:00:38 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 05 Sep 2023 10:00:38 -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= 1693922438; x=1694008838; bh=J1xp/uQhXN002S6VDtkc3kHVk5OyNrLGhzQ B6R4rms8=; b=ceSGN34bF5Om9wucXdN0oxj8R2u2N+2MwG1T0LGfHGTvuOMe0uZ Wev4ZXj41mjJw1F82y2jhp3L4WT+C/iDJezblU/GPNeekOa0GBGmlBypl/yDvoBe vQxlIEeiysTXM0Hr8RH44F6BySoY661ZHiwgJjFTAEV2pVg76yMh7mmgXPXI3Gmk 8dXDFEoN7yHZrLArm5qicaPuTHfc9DEP2eE8mMjkoJh3UlQhDfhmq/gD4fXLGXR6 bGsQgVwA+2p3DkKKIhyBx2LVm7R7X21Mezc5KAOZPAnN79rPzONqBdcVg1DgkCXz UGjD8TibwSJxRUa6zSUa8IDvng3kuZ1KAcA== 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= 1693922438; x=1694008838; bh=J1xp/uQhXN002S6VDtkc3kHVk5OyNrLGhzQ B6R4rms8=; b=UJsszs65vWP/V9ixkir1J31z4scYzCyfnn2pJj5ds7642+9dxdv dHBZ7DK71rTOZiXlWuEf64YuhKC7VilEf0RAYvI/khewL+9L/u3uvtqJ7a306NMY I+25T0VQezwomOj4KLPr67n+MwZPvfDkqXTgrEEgo+2cjghuPVfXnIBHfzOIBWaP a2hkGzW5/w248hAMK6Mz6VLINECnvwadLglWnuhHYhwqL/Y+T2Hf+H2engFZMJV8 AFEvX/AsDipsqrlv+BNV4wuzFvJG+W6uNBKD+RgwCDL9d8ScsFiFDWo8+YoKXFuy NArRRtKZTkiko2EJ447eR4pPgviXbDj2DSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehuddggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepueffveeiffeugffgveejvdegteeuhfdugfehleelfeejtdelteethfdtieeg vddunecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Sep 2023 10:00:37 -0400 (EDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=dmitry@gutov.dev; helo=out2-smtp.messagingengine.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.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, NICE_REPLY_A=-1.473, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:310129 Archived-At: On 05/09/2023 16:56, Alexander Adolf wrote: > That’d be just like https://github.com/benma/visual-regexp.el >  and that’s why I’m using > that. OTOH it’s for string replacement only; no code refactoring. But > perhaps the UI could be used da source of inspiration? I don't know. One issue is that for a multi-file refactoring you would want to see all the changes in one place. OTOH, if we were talking about a more compact diff, 'git diff' has a thing called "word diff" which doesn't take up two lines for one change (the modification is shown in-line).