From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70587: More buffers that ought to be read-only Date: Fri, 26 Apr 2024 13:48:49 +0300 Message-ID: <86jzkkz9f2.fsf@gnu.org> References: <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="30263"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70587@debbugs.gnu.org To: Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 26 12:50:14 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 1s0J9h-0007fp-Pg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Apr 2024 12:50:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0J9W-0004ek-1c; Fri, 26 Apr 2024 06:50:02 -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 1s0J9U-0004eI-6C for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 06:50:00 -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 1s0J9T-0004aI-Ru for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 06:49:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s0J9l-0001zW-40 for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 06:50:17 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2024 10:50:15 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70587 X-GNU-PR-Package: emacs Original-Received: via spool by 70587-submit@debbugs.gnu.org id=B70587.17141285706661 (code B ref 70587); Fri, 26 Apr 2024 10:50:15 +0000 Original-Received: (at 70587) by debbugs.gnu.org; 26 Apr 2024 10:49:30 +0000 Original-Received: from localhost ([127.0.0.1]:34049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0J8s-0001h4-Lo for submit@debbugs.gnu.org; Fri, 26 Apr 2024 06:49:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0J8m-0001a9-2L for 70587@debbugs.gnu.org; Fri, 26 Apr 2024 06:49:18 -0400 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 1s0J8O-0004Vf-1f; Fri, 26 Apr 2024 06:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=oL1PWv8s7A4tzBur8HRWH3xb9Ch+2daRJPiNA55+CIk=; b=NV8+F4X4q29qg8cboY3i QWCPOV8L6BmEDjpWLec+81oHgHAZNNCebNZE6nJxBAjyPBXprdMQI4tFhuG6L+YT5PMC0r3s8XAgp 3hY2o9RdymAQ2zR1qFQn/mSllbWFU02ybPxyqhMGR730zsdoYjReDtJdEJH5eHBKUuYeeC/Zv/HeL wxb/z/MseO10upXKlktiDFkUmVW6D1Gb6MnpxrExxc3SbC0IPCmsyEVYZnCk/+V0g3ghFzcx65mDp dCSlI7V/2UzN6SuMd9/Xg0UEzi2RqgAz546KcH/LXPHuioDxo+xzVt8Ap+8UJ9IZL8sTWU12V8LcR nx4STmKONjdtIg==; In-Reply-To: <87le506i07.n.fsf@jidanni.org> (message from Dan Jacobson on Fri, 26 Apr 2024 09:16:08 +0800) 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:283976 Archived-At: > From: Dan Jacobson > Date: Fri, 26 Apr 2024 09:16:08 +0800 > > 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. I cannot reproduce this. E.g., visiting a file that turned on diff-mode doesn't make the buffer read-only. So please show a recipe, preferably starting from "emacs -Q", where a diff-mode buffer is read-only without changing this variable from its default value of nil. > 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.) A simple "C-x C-q" should set you up, in those cases. Emacs cannot possibly cater to each and every use case out there. Sometimes you need to do stuff manually, if your case is specialized to require that.