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#68648: 30.0.50; read-only-mode-hook's are not executed when buffer-read-only is t Date: Sat, 10 Feb 2024 10:37:02 +0200 Message-ID: <867cjcvhox.fsf@gnu.org> References: <86a5ov6h9n.fsf@gnu.org> <868r441pn4.fsf@gnu.org> <86le84z0wz.fsf@gnu.org> <868r4151w3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8143"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bjorn.bidar@thaodan.de, monnier@iro.umontreal.ca, 68648-done@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 10 09:56:58 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 1rYjAO-0001sI-Kb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Feb 2024 09:56:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYj9P-0001PW-4x; Sat, 10 Feb 2024 03:55:55 -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 1rYj9J-0001Gy-OS for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:55:50 -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 1rYj9I-00036h-Qa for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:55:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYj9Y-0007uk-8p for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:56:04 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2024 08:56:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68648 X-GNU-PR-Package: emacs Mail-Followup-To: 68648@debbugs.gnu.org, eliz@gnu.org, bjorn.bidar@thaodan.de Original-Received: via spool by 68648-done@debbugs.gnu.org id=D68648.170755531930249 (code D ref 68648); Sat, 10 Feb 2024 08:56:04 +0000 Original-Received: (at 68648-done) by debbugs.gnu.org; 10 Feb 2024 08:55:19 +0000 Original-Received: from localhost ([127.0.0.1]:53629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYj8o-0007rn-N4 for submit@debbugs.gnu.org; Sat, 10 Feb 2024 03:55:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYj7e-0007mm-5Q for 68648-done@debbugs.gnu.org; Sat, 10 Feb 2024 03:54:06 -0500 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 1rYirB-0008JJ-N4; Sat, 10 Feb 2024 03:37:05 -0500 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=7IPLQbgDIdW7XLusEC1yfE1b4nlNf7D5ss8D2QT3dIM=; b=YtvOf9fr+Op4 AIKsO3pLIfYY+OQakyjaGpRkcM1urBURvH5vqXVvGX7Yx0lTo66uiakH6qPzOnnf61Fvm8jNQCvH8 alWlK3pmfx0o8TONqr9uPwmXh/xaSWzJsnYsuH9yhyULOiXMHWC/In++IKx7AAmZp5NTG4GdlpnDI X9PVYd3elSGndNFJXKbAQcMQ9ntzPFuhg3CPbhOKa+mtfInKm+vqEvm03lb6ylhzSh4WB0M2tKyLi U5VvM115E/pO3JlT9EbSrybLxQ1EaJ+8cpJ/d7zsG2tf/dgJwsyQKBh3/BOiamJGkBqukFSbA8rQ+ UuS15//RJZpyA++mqo3tWg==; In-Reply-To: (message from Stefan Kangas on Sat, 3 Feb 2024 17:09:53 -0500) 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:279733 Archived-At: > From: Stefan Kangas > Date: Sat, 3 Feb 2024 17:09:53 -0500 > Cc: bjorn.bidar@thaodan.de, 68648@debbugs.gnu.org > > Stefan Monnier writes: > > >> On second thought, would it be okay to just call the mode hook where > >> we set buffer-read-only in after-find-file? > > > > It's probably an acceptable middle ground until someone goes through the > > trouble of sorting out how to make the code call `read-only-mode`. > > Even better if the `run-hooks` is accompanied with a FIXME explaining > > that :-) > > Makes sense to me. Now done on master, let's see what this breaks. Closing.