From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#60787: setq-mode-local doesn't work for buffers not visiting files Date: Tue, 17 Jan 2023 09:31:51 +0200 Organization: LINKOV.NET Message-ID: <86sfg9bpto.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22657"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 60787@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 17 08:37:40 2023 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 1pHgXM-0005kW-1l for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Jan 2023 08:37:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHgWp-00039N-7z; Tue, 17 Jan 2023 02:37:07 -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 1pHgWl-00035O-Re for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 02:37:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHgWk-00047E-Qd for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 02:37:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHgWk-0003gW-M0 for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 02:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jan 2023 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60787 X-GNU-PR-Package: emacs Original-Received: via spool by 60787-submit@debbugs.gnu.org id=B60787.167394101714146 (code B ref 60787); Tue, 17 Jan 2023 07:37:02 +0000 Original-Received: (at 60787) by debbugs.gnu.org; 17 Jan 2023 07:36:57 +0000 Original-Received: from localhost ([127.0.0.1]:35566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHgWf-0003g6-I6 for submit@debbugs.gnu.org; Tue, 17 Jan 2023 02:36:57 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:55917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHgWc-0003ff-AQ for 60787@debbugs.gnu.org; Tue, 17 Jan 2023 02:36:56 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id D5F7920003; Tue, 17 Jan 2023 07:36:46 +0000 (UTC) In-Reply-To: (Sean Whitton's message of "Fri, 13 Jan 2023 10:32:34 -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:253529 Archived-At: > (setq-mode-local diff-mode view-read-only nil) > > doesn't affect *vc-diff* buffers, but it should, according to the docstring of > setq-mode-local. Is this because of the condition `(buffer-file-name b)` in mode-local-map-file-buffers?