From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#74637: [PATCH] Make view-read-only behave like view-file Date: Sun, 15 Dec 2024 18:43:39 +0000 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="32875"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Bj=C3=B6rn?= Bidar , 74637@debbugs.gnu.org To: Andrea Corallo , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 19:45:15 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 1tMtcB-0008QM-7i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 19:45:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMtc6-0004zM-Lw; Sun, 15 Dec 2024 13:45:11 -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 1tMtbz-0004uB-Uu for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:45:06 -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 1tMtby-0006qv-E5 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:45:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=trJgt1clOUA7R4ou97DcUDxnaUq4EHnEChpSg+9VYxc=; b=OmvdoHC4WVhFuWXyHnPXyu1054hSHoBRqVC4BWmimxsn7oomgTylJQt5KW0Don71xlrE8avIuZhi2MXLsaQ/QQsnLIoi/A/x4egAslhslgIRyu3roFMf3au5u/EV/Wl9PXzpaarsevsPD1+KFeNMc0INDIc8CylGWAgHSyew3eW+JiDBSe7tREKPQAl7LSF1ovH4tb4/gKw2z4ryJqw2o/SoJEmbKc4HbT4VnQobb3rqtFv3wQtjBbF0KNUlEzWRLEzYgTNAeDySzrl/NMJPjb1OaIdPLl9/RtZDBEk8EKffAyXPl+WOxtuC2MXW+yynsZDZJJmajwjEs26vZQWzsQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMtby-0004hN-8X for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 18:45: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.173428828618017 (code B ref 74637); Sun, 15 Dec 2024 18:45:02 +0000 Original-Received: (at 74637) by debbugs.gnu.org; 15 Dec 2024 18:44:46 +0000 Original-Received: from localhost ([127.0.0.1]:52065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMtbg-0004gW-NW for submit@debbugs.gnu.org; Sun, 15 Dec 2024 13:44:45 -0500 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:58706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMtbd-0004gN-Qm for 74637@debbugs.gnu.org; Sun, 15 Dec 2024 13:44:42 -0500 Original-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5cecbddb574so5787077a12.1 for <74637@debbugs.gnu.org>; Sun, 15 Dec 2024 10:44:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734288221; x=1734893021; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=trJgt1clOUA7R4ou97DcUDxnaUq4EHnEChpSg+9VYxc=; b=ARGxoBbvmujXn5yCpXfINN3dIIfIb6BOku8WbJGlEeSPIHiqs2rPLvVSesoIJsXrb3 MQcxBGiz35q76M9GhMEcdOZGLGt9DcPkqJanOtdSumQUbbjb/YrGh0G31dNrtc97Cqgv RncyKjUTFksdU1wdj0bjTLI2IA8h7J8il6Q6bc9ViwWs0KX+Ik5iNaJqZbgswsVv3YsA ZI3yHIzRdqxde7T0pBDrmNYs5srBMcsEcLhoI6TR3ek+559Ytcqr/pT95TwAvIcxwXbk 2flGZ6f4PC/b/mKnrInXR+lQtRdxMNHFusk4acML/Hs6gTxSYhz3MhbJumVlaKHXKe4T XmUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734288221; x=1734893021; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=trJgt1clOUA7R4ou97DcUDxnaUq4EHnEChpSg+9VYxc=; b=EZCY5L/dplltTnMv03GuawU5ZEk9jBnsm9tRPisobMT0TLQHTBt7na8Pr+tjI7yjR1 0cA7o7xuPL7XJcNfvPm8WrH5oarPd4mGmQ89V3cY+f4fHe/KGgAtju7J5FCb1t8z0pTy +8qOF8E7uSNtP5X+SyDYUN5Zf20a88UpHlBsaWk5Hp+kjRuILnvCUUAg9XNG8KHGu0Ei lPngV9RUNmF6SaRgHA93AJ9QXbO3d+c0Dca610+OzhoCDulO0//acDYRwYkKVAcSsLFM nZ79Ajkrp1LFZLCK4XjT3eqfY0Vv4nkL2UxyEewibQ6tvSGKCp3PDeabB0vrldsvrOOT 0wqg== X-Forwarded-Encrypted: i=1; AJvYcCWqS00YvFNBCFlQsZ+xOJdA/0GJJ6wLulOOU8KjKOLKdzPElOWabreOtVw5V1vbu5fG6njmTQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxyQpgYCk4ZwAPNlY6uRi2uZbltXe++JNAoFRKBUyKVkOENfFC3 KI8KgV+JWZta3ANzm4aGl6Tc3htwaVUdGCVzYGZThHLRIbwyYdkBf2qX/k5JORzT7Ow0sNOJ9Nb ezUd6INnHp7YjMl/YbLJKT/ZUwpw= X-Gm-Gg: ASbGncvJof3gcwLT35PuTUvng/fmYqTqAtokYhen3x7E29JoEdj54WFuApB9pZOQrdp ncntV7ZTJc+8pK6+8CQ7ziDSijQzBoZW9bP9S0VU= X-Google-Smtp-Source: AGHT+IGZMDynWhghQQe8o4SVBWKmS3Gq7I/UZadVuldxEZ7OOayuECfyRvF1HtK1itgKGXVMMpt2lio4FjQK7C74FXs= X-Received: by 2002:a05:6402:354f:b0:5d0:e2c8:dc8d with SMTP id 4fb4d7f45d1cf-5d63c33bafamr10176756a12.20.1734288220601; Sun, 15 Dec 2024 10:43:40 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 15 Dec 2024 18:43:39 +0000 In-Reply-To: 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:297125 Archived-At: Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Bj=C3=B6rn Bidar >>> Cc: 74637@debbugs.gnu.org >>> Date: Tue, 03 Dec 2024 12:06:11 +0200 >>> >>> >> > That's an incompatible behavior change. Is that justified? How c= an >>> >> > we be sure that everyone agrees with your interpretation of this m= ode? >>> >> >>> >> All other view-file like modes behave like this, you view the file a= nd >>> >> leave the file with q. >>> > >>> > That doesn't change the fact that view-mode didn't behave like that, >>> > until now. >>> >>> 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. +1