From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Adding refactoring capabilities to Emacs Date: Tue, 26 Sep 2023 12:24:01 +0100 Message-ID: References: <83fs4f36wi.fsf@gnu.org> <1b963d24-51b3-8128-ad14-e4af2c9f0c43@gutov.dev> <8408fa63-af93-ab36-8524-fa12de7918ea@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Alfred M. Szmidt" , monnier@iro.umontreal.ca, eliz@gnu.org, philipk@posteo.net, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 26 13:25:11 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 1ql6Bj-0004B2-Cr for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Sep 2023 13:25:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ql6Av-0004fn-3k; Tue, 26 Sep 2023 07:24:21 -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 1ql6As-0004f6-Ue for emacs-devel@gnu.org; Tue, 26 Sep 2023 07:24:18 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ql6Ar-0004Aq-3S; Tue, 26 Sep 2023 07:24:18 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50325ce89e9so14268856e87.0; Tue, 26 Sep 2023 04:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695727453; x=1696332253; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=H/D/e3OZatibUsbd9LGGG/rH7TF5Yaoaczu1YAx6jLo=; b=Bptb4fbdjfhlwK+RYORKIcwlMxKsZ48vP2FXpZYjSwEf+1fOVpNso6CqsWLS31vMts iInU+SXrLXIqDqc8xJM6Fw8MhEpfWiEmX7RD2+/QAvc6vgV7mfMkAVsAe1rYvtd6mp8s 4YF0uqFKqrmR/Yz/zco09M3jQfskuVE6mQmoWaEV0f8keL/tFWbMfkk2mKVisxxgub00 2PMUkgdRy9qW2eN4o0Gpi0Y4/I+r9vdsUP4QKHzvoYLQgRLl+kPyPGH8KD8/M35xpDn1 JsWZXezZJ7VnI+v1QUvFUb1+o97akSF/J8MBwVll97nay9uJzSzW+7tbryDag7phvRAm QnmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695727453; x=1696332253; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H/D/e3OZatibUsbd9LGGG/rH7TF5Yaoaczu1YAx6jLo=; b=DU2dxzP2ujUrHn/xl1XfgMvy4ysnGDNmN/wms+lUPvyCGbMac4YL1DyLj5FH6X4LX1 ot/xJrVltEz9c9NJc5cHd2v4LlJycdZJ3/fKmNoeG9SwzfZbeDd7Bn5HgitOPEvCSxJC PjeVVFfZHvJothPvi2VB/OU/2VY2hg86lAtgO1UgIImiziIOzXtWkY6+ngT6twaR7WZC VXhpCF1CJNhFIUJalixBZjEG+sHlXSiBiv9xx52Zu43KREX5ky3BAVAgYkwVlS6ztX9G aMOWrVVNz3eZD0ULD+iLcgUlhRKb0yzRU48t2XPbaB18IyVAMu00gxOsj/uYhWjabQsG FQ6A== X-Gm-Message-State: AOJu0YyYCp6LA+Hxoy6nxrEwnKGkpOYLZf6hGOVq8QotW5yNQL7w0loo AVTKfyfAAkOzhWEKiHiyUDuw07MqcvIBH/OVNJBWvuDX X-Google-Smtp-Source: AGHT+IGRkpOtmk8b95WZb6LvQOPM2RE3Im3MWDZTJc98OuJGAApRyn0no1R53cLYbkudesU2Y2ARDy1v40K3K94V/pI= X-Received: by 2002:a19:654b:0:b0:4e0:a426:6ddc with SMTP id c11-20020a19654b000000b004e0a4266ddcmr7330083lfj.0.1695727452831; Tue, 26 Sep 2023 04:24:12 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.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:311056 Archived-At: On Tue, Sep 26, 2023 at 11:57=E2=80=AFAM Dmitry Gutov wr= ote: > > On 26/09/2023 11:06, Jo=C3=A3o T=C3=A1vora wrote: > > On Tue, Sep 26, 2023 at 6:36=E2=80=AFAM Alfred M. Szmidt = wrote: > > > >> If you have a diff on file, you are most probobly going to apply it, > >> and also probobly going to remove a hunk or two or edit the diff in > >> some manner. (That this is "relatively rare" I disagree from my own > >> usage and experience). Not to mention that visiting a file on disk, > >> that is read-write, and Emacs making it read-only would be very > >> strange. > > I completely agree with these two points. Even non-file diff-mode > > buffers, such as the ones provided by piping git diff into Emacs > > (yes, I can do that =F0=9F=98=84 ) are generally better left read-write= , > > since I frequently edit them to kill hunks I'm not interested in. > > 'k' (or M-k), 'C-c C-s' and 'C-_' all work fine in a read-only diff-mode > buffer. 'C-x C-s' also works, of course. I think it's very inconsistent to have specialized commands to modify a buffers contents and not allow all the other regular commands that modify a buffer do their work. I don't have unlimited brain address space for keybindings and I think C-SPC C-n a few times C-w does the job just fine. Opening regular files of a special type read-only mode would be a spectacular failure in the basic ergonomics of an editor. Jo=C3=A3o