From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#70587: More buffers that ought to be read-only Date: Fri, 26 Apr 2024 09:16:08 +0800 Message-ID: <87le506i07.n.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4857"; mail-complaints-to="usenet@ciao.gmane.io" To: 70587@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 26 10:42:09 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 1s0H9k-000152-Rm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Apr 2024 10:42:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0H9Q-0004wN-1I; Fri, 26 Apr 2024 04:41: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 1s0H9O-0004w8-8S for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 04:41:46 -0400 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 1s0H9N-0003JZ-WA for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 04:41:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s0H9g-0003Gw-5p for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 04:42:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2024 08:42:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70587 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171412087712005 (code B ref -1); Fri, 26 Apr 2024 08:42:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Apr 2024 08:41:17 +0000 Original-Received: from localhost ([127.0.0.1]:33910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0H8o-00036a-LF for submit@debbugs.gnu.org; Fri, 26 Apr 2024 04:41:16 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:39662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0H8f-00034Q-8V for submit@debbugs.gnu.org; Fri, 26 Apr 2024 04:41:07 -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 1s0H8H-0004rG-O7 for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 04:40:37 -0400 Original-Received: from toucan.tulip.relay.mailchannels.net ([23.83.218.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s0H8G-0003BO-4T for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 04:40:37 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F08A0842F56 for ; Fri, 26 Apr 2024 08:40:30 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a202.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8FEE384301A for ; Fri, 26 Apr 2024 08:40:30 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1714120830; a=rsa-sha256; cv=none; b=nKPKZnl/0sSlzeqWTQp4HzKWtTnuTGmrQYo3m6gMnHlC//T1FQdoHB5Wa7Q1UbkBBRE8BP xwYIBgq0bnA7H8bKKL6SIt++hYQ5wYjqVBgjH3S36Wia6k3pMfLW4gOr4gvvvnI0aUdHZp AYUAHHvthLGL4WO0PoSJkqHtVbea2LQSZpym+SY/o5SFi5RrG4fnloVq/aOT1XnbZTMRvj ifPJ/2RBLP/agYCYNKY1URilavzHzNLtC0lZDVy3Y1AfRP8jSx9lVut25kvrsa5Go9JdVq ljaGgaFeD/khWGUFyBHNbtAU+LU/lbkVqudyp/8Zf0m8wh/LCppZ+23c4v1wXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1714120830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=lLtEbR8lFCyY7Fdw3Jfv9zp/z1Z1VgAlJULEBVLUrkY=; b=YN/GUDlNg0F7vYyvL7lWWAbV0UZLjs4hqSUaj5WimTFywUS5KKH1tosZLPXs1kTiPTylZw UuGYtJIe79fYiKuZuEb290w23ClM+Rnt0scBhnSjA7ypN7oDzeY1YJfpG67GZYaA++5haV XaeSwU7kaTu3Fov+fGHKpNp7v8AbSlVu3tBJbP0aeTj6xmcXd1mFoWY7cZJGuhTRJBCasD 7kHv6x18dPJ2r1ZoLqUpwWxjUvTBoQSIiAXBF51KhAJmf5Zi74fLLWbFPgGw67LgpPVozk hZ2n6hqGn9zcaOitJ35Z+dRpP9he0tV98ENna5Z6I4GrBZs3Z1R7c38sl5rFXA== ARC-Authentication-Results: i=1; rspamd-67db6f49c6-4xzhc; auth=pass smtp.auth=dreamhost smtp.mailfrom=jidanni@jidanni.org X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Imminent-Befitting: 0f7ece272a4f1ff0_1714120830835_1696896154 X-MC-Loop-Signature: 1714120830834:1149073183 X-MC-Ingress-Time: 1714120830834 Original-Received: from pdx1-sub0-mail-a202.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.117.243.76 (trex/6.9.2); Fri, 26 Apr 2024 08:40:30 +0000 Original-Received: from jidanni.org (1-165-189-235.dynamic-ip.hinet.net [1.165.189.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a202.dreamhost.com (Postfix) with ESMTPSA id 4VQmQ63HZnz4w for ; Fri, 26 Apr 2024 01:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jidanni.org; s=dreamhost; t=1714120830; bh=lLtEbR8lFCyY7Fdw3Jfv9zp/z1Z1VgAlJULEBVLUrkY=; h=From:To:Subject:Date:Content-Type:Content-Transfer-Encoding; b=k8s5NjkO9s68P5fkA8wPdwbbAMjM5HZHqIv4auvDMbfPCmS0r8/Ot3fp6lBjShTZa 8iAH1FAXDfwWlcClGCJ2hQxQjtsj8O7aRVym45H6ndaGpSce9VS7RhzTHyaoib6VWx M2gcgl/YhC4myGp6MgLVKtlycm1nZf2MiVj7oFyvymVUyTntJPIf76ldES+HdqpsXE WWghVhIO2C4AHXZRnsnexxmDVI5csyOphHg2QGn7v53QZL2DQ9QaNpS/RZoJEZHZlB bP84oThU3YnI72C28v99gAXojv9WDE1vX47JZcNQv161kXhyMmebvuaTRTW67MNiAf 8t7nlrYBcxuOA== Received-SPF: pass client-ip=23.83.218.254; envelope-from=jidanni@jidanni.org; helo=toucan.tulip.relay.mailchannels.net X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:283971 Archived-At: diff-default-read-only is a variable defined in ‘diff-mode.el’. Its value is nil If non-nil, ‘diff-mode’ buffers default to being read-only. That's funny, it seems they are already read-only, without setting this variable. Maybe this variable can be retired. The *compilation* buffer of M-x compile is also read-only. Good. But how about *Shell Command Output*, and errors buffers, they should be read-only by default too. Why? Because tons of times we realize for the last half hour we have been editing our program's output buffer instead of the source code. (Often due to using sh -x or make (without -s) which echo command lines.) emacs-version "29.3"