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#69819: 30.0.50; comint-mode does not always respect the read-only flag Date: Sat, 16 Mar 2024 09:16:37 +0200 Message-ID: <86r0ga7iju.fsf@gnu.org> References: <87frwrxnqr.fsf@secretsauce.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69819@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 16 08:19:57 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 1rlOKj-00099Z-Kh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Mar 2024 08:19:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlOKF-0005dm-08; Sat, 16 Mar 2024 03:19:27 -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 1rlOKD-0005dd-Mj for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 03:19:25 -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 1rlOKD-0005M1-EX for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 03:19:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlOKn-0000RL-VD for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 03:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Mar 2024 07:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69819 X-GNU-PR-Package: emacs Original-Received: via spool by 69819-submit@debbugs.gnu.org id=B69819.17105735761642 (code B ref 69819); Sat, 16 Mar 2024 07:20:01 +0000 Original-Received: (at 69819) by debbugs.gnu.org; 16 Mar 2024 07:19:36 +0000 Original-Received: from localhost ([127.0.0.1]:54759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlOKO-0000QQ-Hy for submit@debbugs.gnu.org; Sat, 16 Mar 2024 03:19:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlOKK-0000QB-H3 for 69819@debbugs.gnu.org; Sat, 16 Mar 2024 03:19:35 -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 1rlOHX-0005HL-N6; Sat, 16 Mar 2024 03:16:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6A4+SRfuynfepnqERQzU+ZGVr5bf7+j4SiBrO/GGfLE=; b=JRQ0DT/ZHW9N sASZYoCbwbWl59mM+xTu0EUac8RW/ecwNnHSidiAkwEWVuPzynm7T344VQqWa62cUhbqLvRtGiQ+A USuZrDDFfRmCF1dc48QeeW0l+JcKff6PDw93ylDQzluDdEVwtQKkiHHjEkWPbSMv1VX1ffTzjMzQY 59oKHb47R4ujX/C+n+6M/qaWVxbolBUBh3am014WaxT0jOC0qnH0Gk2sLpOfF4qgr+rt1hX6bl0Us oivH/pswyIGp08/QId9z+/TMlAn/SeUkWU4i79rEkeTBZ8QVaZTCg6CUDRqy/yhNDPUe//k+CaSkW JsmEl3mFrMWjGnFfhp5liQ==; In-Reply-To: <87frwrxnqr.fsf@secretsauce.net> (message from Dima Kogan on Fri, 15 Mar 2024 13:07:40 -0700) 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:281709 Archived-At: > From: Dima Kogan > Date: Fri, 15 Mar 2024 13:07:40 -0700 > > Hi. Here's a recipe: > > 1. emacs -Q > > 2. M-x shell > > 3. Observe that the shell is live. You can run commands, and the > inferior process responds > > 4. C-x C-q > > Turns on read-only-mode > > 5. Observe that we now cannot interact with the shell since it's > read-only. We can C-x C-q again to make it work again. Before step 6, > C-x C-q again, to make it read-only > > 6. C-d > > This normally exits the shell. But if we're read-only, it shouldn't > do that. I see that it still works, despite being read-only. Why do you think C-d shouldn't work when the buffer is read-only? > I'm observing this with all comint-based modes, not just shell-mode. It's a feature, AFAICT. But I'm interested in hearing why you thought it was a bug.