From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#57003: 28.1.90; Can local variables be loaded before loading major mode? Date: Sat, 13 Aug 2022 20:22:52 +0800 Message-ID: <87ilmw5o4j.fsf@localhost> References: <87czdeoqy7.fsf@localhost> <87v8r54j3h.fsf@gnus.org> <875yj5xzou.fsf@localhost> <875yj443zy.fsf@gnus.org> <874jyo6vd6.fsf@localhost> <87k07k18ro.fsf@gnus.org> <871qts6tzy.fsf@localhost> <87bksv0ya6.fsf@gnus.org> <87edxqzzm6.fsf@localhost> <87leryzzdl.fsf@gnus.org> <87a68ezycj.fsf@localhost> <875yj2zudw.fsf@gnus.org> <871qtp64eq.fsf@localhost> <878rntskld.fsf@gnus.org> <877d3c7by7.fsf@localhost> <87h72gjr3a.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10250"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57003@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 14:22:14 2022 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 1oMq9d-0002TR-OJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 14:22:13 +0200 Original-Received: from localhost ([::1]:45704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMq9c-0008PX-R9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 08:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMq9S-0008N6-KD for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 08:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMq9S-0002dp-BI for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 08:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMq9S-0002kN-6a for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 08:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 12:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57003 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57003-submit@debbugs.gnu.org id=B57003.166039331810549 (code B ref 57003); Sat, 13 Aug 2022 12:22:02 +0000 Original-Received: (at 57003) by debbugs.gnu.org; 13 Aug 2022 12:21:58 +0000 Original-Received: from localhost ([127.0.0.1]:59955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMq9O-0002k5-2d for submit@debbugs.gnu.org; Sat, 13 Aug 2022 08:21:58 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:37809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMq9M-0002jq-DI for 57003@debbugs.gnu.org; Sat, 13 Aug 2022 08:21:56 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id m2so2845274pls.4 for <57003@debbugs.gnu.org>; Sat, 13 Aug 2022 05:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=4+quR1fy76FJLSkGohcl75WFiqUnAAqMzvlQuUmVvHA=; b=Np/a74Y98obr0kzPlLNmce9nSWXefrLoHcgPl60PnYXsDPivXGuTSrYzF/uvNxq/y8 I+/j2RdjBLlz4046yUPNZ8MThJk/JGmU9pRj0tqDVsbCpYgAbejhzzhrtoTRDk2gIB4b 1y2Bpp1y5OWyQGycshxTPlIqsGBhvDZm4l6uMTX6DvzuNRrS9MO+6dD+RL3JJ7EMnjNp ql9WE+jBJs8HRD27xWz7vMQUXYp7PuwYF5kioNYsL+vD5Bd6oJSk4InODQQHrDoAX2x1 +hlZ5Xl2nTm43bZoWIGIpc1ZuYljNjRl2PZDnI1jc313AOpAfO9qJRVvcRcdUx+r4354 jmTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=4+quR1fy76FJLSkGohcl75WFiqUnAAqMzvlQuUmVvHA=; b=L4VmCoaMvFq28dUT59+AFYeZBXLF4TJMdgTdrqszL8IMeHtJyKQTf6084ecY4pa9eH kN5cGqWD7Ji2YI8lK5p4AvAcHV+4lQwWK8iZoLXzies1cnekw2Jo0A7E7UBqsMDFnHc6 QgP1DMo+jIWqF3UQ74wXuY3x48QwhPJDsNmLmOz/iRuE5KZ8Zr9EswOXjrExJysNY4Zl i4oZUhfQjhjOjBZF8SPElLz83hDc9Tnyh7kSYuw/0Rx9V061sgUB3K6z7DVrjeWJSfgb HvEGeEbDnWbD61eOnxmq1Ia5Uc+yeH+fx5KT2Qdhx5nx1lyzuJMvbS3Axi7CVjkXdp6F U8KA== X-Gm-Message-State: ACgBeo3Wy4BHIK34qNd3eGbAO4UBSteUu9Er6YbI3ZypCQoxvOaenbMo k3L3vSTKtTM9OKhKgxeV4oU= X-Google-Smtp-Source: AA6agR6QCA9+4Bko075VUcxzcWpnD8sT5vpX+A5w90c7zCcpJiX+et8wLiHrm8MkkdM4k/msSp62lQ== X-Received: by 2002:a17:902:e394:b0:171:3f46:1f13 with SMTP id g20-20020a170902e39400b001713f461f13mr7943530ple.174.1660393310634; Sat, 13 Aug 2022 05:21:50 -0700 (PDT) Original-Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id i18-20020a170902cf1200b0016c38eb1f3asm3527849plg.214.2022.08.13.05.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 05:21:50 -0700 (PDT) In-Reply-To: <87h72gjr3a.fsf@gnus.org> 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" Xref: news.gmane.io gmane.emacs.bugs:239524 Archived-At: Lars Ingebrigtsen writes: > This area is notoriously brittle and complicated. I worry that any > change in evaluation order is going to break lots of stuff for various > use cases. Agree. > So I'd really prefer a new way to specify "early variables", but I have > no idea how that'd look in practice. Perhaps just a new thing in > .dir-local.el, making that backwards-compatible is a challenge in > itself. Maybe something like 'early-local property instead of 'permanent-local? It will not break the existing cases, while allowing the major modes or users to mark the variables that are safe to load early. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92