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?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74637: [PATCH] Make view-read-only behave like view-file Date: Mon, 02 Dec 2024 20:08:46 +0200 Message-ID: <19894.809152332$1733162977@news.gmane.org> References: <86ldwy46al.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar 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="25086"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74637@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 02 19:09:30 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 1tIArR-0006OG-KX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Dec 2024 19:09:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIAr3-0007p6-T1; Mon, 02 Dec 2024 13:09:06 -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 1tIAr0-0007og-IR for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 13:09:02 -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 1tIAr0-0003j5-3S for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 13:09: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=D47O9WZwScQl/SfGdtUB4QGTvz4mNHcYnJY3wKeHGyE=; b=VO/DiuqBtOaALmrDVjncYNgj5Tmtl0aLx+aDN3Sapwu6d8sTo2ZOY6ajOLsyx6UlCS+c69EzAEfrXZDE654Yb8lrnYviXIScWO5DbB3mazfBkv5ZVo+rJShm7GLyT/2H17tV4m9pt9196A16fywEDBmRptzWdjp83ZLclusP9KklhXpFaCuZr6W69Nf+7ttbc1OZiV3wZpSil2gOUdRcQI3k4fwLJIb4h8PWcRcu7ySDAYQ06SN1lC+18iM7GT5wames4Fj+/KnUQvjtYeVOLpM9MZ6Wo2ctaYC8nb+0eV2a8MVc2Uq05NgwrVvFtzXd/D4vDo3uqNPmW2m402ypxg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIAqz-0007AS-OE for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 13:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2024 18:09:01 +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.173316293427528 (code B ref 74637); Mon, 02 Dec 2024 18:09:01 +0000 Original-Received: (at 74637) by debbugs.gnu.org; 2 Dec 2024 18:08:54 +0000 Original-Received: from localhost ([127.0.0.1]:56486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIAqr-00079w-SP for submit@debbugs.gnu.org; Mon, 02 Dec 2024 13:08:54 -0500 Original-Received: from thaodan.de ([185.216.177.71]:40814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIAqo-00079l-Rx for 74637@debbugs.gnu.org; Mon, 02 Dec 2024 13:08:52 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 1E44DD00045; Mon, 2 Dec 2024 20:08:48 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1733162928; bh=lp+SD5DNGVOZb++cjTSzAdGIsmTgz+wJ72OnA89sFgs=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=tC3QcCyFVqWWwU4JWTO0lqL+6Jlp/ScIyHFWO+LlZtw9v1saICPVQgHFJmZK4OZ0v RdXnCzc4hHKW1snwiD/LzkwH04khi1yptOsxW1DbfzjjlW06ypekA7Khio/Y5q36CX AkCBX0YP5vMIN4OBXonY8qbmY+hiwbvPs8nF+FsgAWIHuTGpSWCwFKioY4mZBDtIoC YxWQufjpPryQ0s/BTCSFHQWf9R6iU55A30JT01elK8ZSObk/N5SAl9rzxH+F5JjatO H8xrTwECXs3TIQ+2TVBMHg6UAl3GG8e1aq6V9SZwGwYPMcDhH08pa/FydB9XQvk73r AJ4q7klEiQ/kzHSYoQtNrl5H7UhS6HKbyUq0cjgrv8+v0NmoTbJfQqDVFBIt8qtMQT jrq4KfyphFMNzMD25EEtZcYcves3KG14/Xl2S/wK0VSO08AD2S1aY71YMKhZj9yWuP S8S7n72mSzcquWTHrB6OOOPaTyr1HkXHsGIeqGM7/K2z2fxfDJhiOMriO3pCbM9Z36 /OIJug2olKEvtMq2XOZwT02X+38fsbLW6pnhAZ0q/t0Vj60nYAb1ZCRpSA7wao0nZ5 +Q03fgvAxhxdLXXRy3xV1X9e7yfXqMdFiCs4FUMgY3UvxHQfIUJHx+DofPmFPlHoEY ckKQMOgLHiIElZjKWN6caMug= In-Reply-To: <86ldwy46al.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 02 Dec 2024 14:29:22 +0200") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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:296342 Archived-At: Eli Zaretskii writes: >> Date: Sun, 01 Dec 2024 22:40:16 +0200 >> From: Bj=C3=B6rn Bidar via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> Make view-mode behave like when called in view-file when entered because >> `view-read-only' is true on a file which is not writable. >> The change makes the view-read-only behave better on files which are >> not writable.=20 >> Now it makes Emacs behave more like less on these files. > > That's an incompatible behavior change. Is that justified? How can > we be sure that everyone agrees with your interpretation of this mode? All other view-file like modes behave like this, you view the file and leave the file with q. But even going with that point: You open a file file which isn't writable. Once you hit q the window is quit and the buffer is buried. What do you do now next time you visit that file? The buffer was buried, view-mode isn't active anymore, you would have to activate view-mode again to go where you left off. If you would want to edit the file the you visited this way you would have not pressed q but e to exit view mode and the proceeded to exit read-only-mode and edit the file.