From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#60787: setq-mode-local doesn't work for buffers not visiting files Date: Wed, 18 Jan 2023 15:42:42 -0700 Message-ID: <87zgafea71.fsf@melete.silentflame.com> References: <86sfg9bpto.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13971"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60787@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 18 23:43:20 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 1pIH9L-0003Qj-6i for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Jan 2023 23:43:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIH9A-0006qU-GA; Wed, 18 Jan 2023 17:43:08 -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 1pIH96-0006lH-FT for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2023 17:43:04 -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 1pIH95-0002hZ-0W for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2023 17:43:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIH94-0005WV-EN for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2023 17:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jan 2023 22:43: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.167408177221214 (code B ref 60787); Wed, 18 Jan 2023 22:43:02 +0000 Original-Received: (at 60787) by debbugs.gnu.org; 18 Jan 2023 22:42:52 +0000 Original-Received: from localhost ([127.0.0.1]:42009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIH8u-0005W6-Bx for submit@debbugs.gnu.org; Wed, 18 Jan 2023 17:42:52 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:56099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIH8s-0005Vr-Re for 60787@debbugs.gnu.org; Wed, 18 Jan 2023 17:42:51 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CE3D65C00AD; Wed, 18 Jan 2023 17:42:44 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 18 Jan 2023 17:42:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1674081764; x=1674168164; bh=FD VQpKeXnkfvldxtkCR9SYJgGhDzpE1FfUJC4iQl8xg=; b=YqDBvxVKwtjbYSYTMW s7Paa553OXMTyALtbZJ3Bxtote8SpOUK9hxkRCimAjvrlHq81jh+bNsuHww4G6gJ yVEVV9eap/ceW34g3j6c9JU3y27pzMLVxRDmCx1IF6s4qkCd5hLL/HF2sL3qcbzF DHlgsWV5L7bFrSbkhbzxJpAfCDRJt8YqhsIpcYCUdYx/VH1+Fa09o2td9TmK3YaD Vrh8ndq8etvKR72FTxd0Mhxk6AWEfqVRrAJZ0pLVJNyv2OUKK0Qe3OODwPLdke4r C+jbergsG785SwuK0Xqhdw32m0dAMLoldXyBNLOARO8c4256jm/SOJ4KhwhmAnhy S+Rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1674081764; x=1674168164; bh=FDVQpKeXnkfvldxtkCR9SYJgGhDz pE1FfUJC4iQl8xg=; b=covQHHKb0YwJXtMHXCWKJ7s3qcAOEqxAm23bNItieB2e C1I4Ao/ZROnFud8pJ11OVvjNBzPRBPWon4m4PZbjxk97i0wF34U+EFDN8uyM7Bxu sDTM+igS02h5rVmD2x4MB9t5nk6/6pQRpB89ccWjI9ifo4b2y5al6lWLw2oV08ZT qN0JduaaxckOckwfEy8G/k6MXpBaU66YVCvfe2MZ76iZiX3RWnZ8cOYKHWpkUmx7 dZVmVuUlOHG/1Hk5Z9EcboOQk9M0ErqmO8mhmW2X48+9HfvNH9tbqZIFZM8pxaWh Od2o9iWghRcRRN/PxvcWRX8SH/F2UiGWh53fKmA8Bw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtkedgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfgfgggtsehttddttddtredtnecuhfhrohhmpefuvggr nhcuhghhihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg eqnecuggftrfgrthhtvghrnheptdffvdffueeluedvteekvdevhefghedvgeevgffhvedu keeggeelveegjeekteeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Jan 2023 17:42:44 -0500 (EST) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id A07737F3748; Wed, 18 Jan 2023 15:42:42 -0700 (MST) In-Reply-To: <86sfg9bpto.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 17 Jan 2023 09:31:51 +0200") 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:253668 Archived-At: Hello, On Tue 17 Jan 2023 at 09:31AM +02, Juri Linkov wrote: >> (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? Yes, but also how setq-mode-local relies on find-file-hook. -- Sean Whitton