From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#74637: [PATCH] Make view-read-only behave like view-file Date: Wed, 04 Dec 2024 08:16:32 -0500 Message-ID: References: <86ldwy46al.fsf@gnu.org> <86o71t3mob.fsf@gnu.org> <86zflc27dl.fsf@gnu.org> 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="10740"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: =?UTF-8?Q?Bj=C3=B6rn?= Bidar , 74637@debbugs.gnu.org, Stefan Kangas To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 04 14:17:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tIpFm-0002XX-OV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 14:17:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIpFZ-0001Yo-7k; Wed, 04 Dec 2024 08:17:05 -0500 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 1tIpFX-0001Ye-0U for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 08:17:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIpFW-00012H-O7 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 08:17:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=u1Bockyw6fqupSBRGySuCtYW3EJPYR3Ee8TEJ0m1dEo=; b=t9LU7RMuQQYkSnjFr8U4Ro7rjmKVgfYWobZCQZ1ARkesUs2z+ZfAm4vjceNr2vnTDBlxqm2pE2IG0NkuvBfFftCHeyELonFqUjZ7XzBkr1nwnEga/lg2MxZ5NuiRWLKH2hfTE2YnmcjtV/Sp3bB/Ex3L5E9Iy6D9qT/WpeCNFjeXuzbciqkBM277vDO/tSUE+nYTkid+zZK6mfikp5LKaspcDcWV53zF1iLiaGEEolXshwV67p76+vm2V8v1mQnYOKW3hDIjVhrovrXev+tSqjvBx12ZI8wL8ZiV9SWdsVreZLyk5qcAMtv2zm+J5Jz6Wb/5LlQ2JV1Ynik6ZUC6fw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIpFW-0000my-Hy for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 08:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2024 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74637 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74637-submit@debbugs.gnu.org id=B74637.17333182022939 (code B ref 74637); Wed, 04 Dec 2024 13:17:02 +0000 Original-Received: (at 74637) by debbugs.gnu.org; 4 Dec 2024 13:16:42 +0000 Original-Received: from localhost ([127.0.0.1]:34636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIpFB-0000lL-Pi for submit@debbugs.gnu.org; Wed, 04 Dec 2024 08:16:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIpF9-0000kt-5v for 74637@debbugs.gnu.org; Wed, 04 Dec 2024 08:16:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIpF2-0000zt-Uk; Wed, 04 Dec 2024 08:16:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=u1Bockyw6fqupSBRGySuCtYW3EJPYR3Ee8TEJ0m1dEo=; b=JxvZpfbKD3vz067p6oY7 Fomu4tptmUo8epEHscfwLgjxYNySkyk15p6+mI0qhzdo9smXOpD6ExAt4LCiMMftSrtMwC8GZDq/k 8fbJbP3yQG2qHo4AR+8z3ZQQesZm0fxvz4gmjN+fFTGKSDbm3PTcO3YY5CZXXILklqqMnAwaG+4Ca nFdD+uowK7Qy+JTqniiEk8g7pp2zURQ6WFntwXrU9MNxzCqyl3IOWpvoYlZ37JBfrNKnrarktMM8v Vm98JxZViWz6PQe1QZOSKJECe9GqmNmlx3wlbEnaMOuz7smbphoRlRUyXoYZi0TYeIJNj/67On20H 4+ntAhKD6n3GVw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1tIpF2-0006aM-Bi; Wed, 04 Dec 2024 08:16:32 -0500 In-Reply-To: <86zflc27dl.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 03 Dec 2024 16:01:10 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296409 Archived-At: Eli Zaretskii writes: >> From: Bj=C3=B6rn Bidar >> Cc: 74637@debbugs.gnu.org >> Date: Tue, 03 Dec 2024 12:06:11 +0200 >>=20 >> >> > That's an incompatible behavior change. Is that justified? How can >> >> > we be sure that everyone agrees with your interpretation of this mo= de? >> >>=20 >> >> All other view-file like modes behave like this, you view the file and >> >> leave the file with q. >> > >> > That doesn't change the fact that view-mode didn't behave like that, >> > until now. >>=20 >> View-mode isn't change outside of the specific situation of opening a >> file which isn't writable. > > It's still a significant change. Killing a buffer is not a minor > think, and restoring it is not always easy, or even possible (e.g., > the file could have been deleted in the meantime). > > My opinion is that if we install this, we need to provide some way of > getting the previous behavior back, for those who may want it. > > Stefan and Andrea, WDYT? Agree with your position.