From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57003: 28.1.90; Can local variables be loaded before loading major mode? Date: Sat, 13 Aug 2022 13:55:05 +0200 Message-ID: <87h72gjr3a.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57003@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 13:56:12 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 1oMpkQ-00081H-TW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 13:56:10 +0200 Original-Received: from localhost ([::1]:51598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMpkQ-0000jy-0y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 07:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMpkI-0000jn-DU for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:56:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMpkI-0006Tq-4d for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMpkI-00020r-1a for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 11:56: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.16603917167680 (code B ref 57003); Sat, 13 Aug 2022 11:56:02 +0000 Original-Received: (at 57003) by debbugs.gnu.org; 13 Aug 2022 11:55:16 +0000 Original-Received: from localhost ([127.0.0.1]:59867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMpjX-0001zo-PC for submit@debbugs.gnu.org; Sat, 13 Aug 2022 07:55:16 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:36002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMpjV-0001zX-VF for 57003@debbugs.gnu.org; Sat, 13 Aug 2022 07:55:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vclDtIXo9HDZu58lfqqhQ9KOaySHTKMT9ppOJKSCjc8=; b=nqjk1Z+d8eRLBed51wSqd95ksq ZjiYLbmP4SPmEyieh5M9a5j9c+m/yvgfG1ds+ZFXHjBT6078jTepWCznnsc68/oZepcfKifFs2snD kk6gSy+w17CGkomX77JXp4GZzjzHvKNuW4N3fb6qm+cjdWLQ6OublGtgZz6p2/A71huk=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMpjN-0007HX-Rq; Sat, 13 Aug 2022 13:55:07 +0200 In-Reply-To: <877d3c7by7.fsf@localhost> (Ihor Radchenko's message of "Sat, 13 Aug 2022 17:02:56 +0800") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEU7MjeVWmXe1cr/ //9HfuA7AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YIDQssKM4C7ZYAAAFLSURBVCjPTZFBbsIwEEX/ WEmksjJSsiBHyClsqek6SDYL1kUqOUXgBHRB11RKKuJTdmzHgBfWPM/4j/0H4FVc/I467KvhBWr1 Ao0CGS6IAFQ2wREwunsA/cwGRQAH9PNBRWiGvJktdlFzoH5usY9Nod2cUwQg70fSHwvg8wtbSsCZ LsWoL0/IAVIJysxzggLZEmYw4pbAwtC0xNSiFFOq05BikktKE8SYlCmHuD3atCh+8VRY3RJU76jH cMrvq9iMeyjvQNZCzB7eFBtocQovaBU4xjkMQimybLX+jpOoGHK6RG3qWmyyboxftp08Bvd9xpbZ vVI9SxCDovnI1kusQVvF7sLxLGSwyd2Fc4MHRTyExjkvXknQ/to7LpUw/Pv+unJ8SYOHjkPLd/7Y M7/MTvuMiePxMC2ZcqO9GreHQlacQsas2fms2DL8A0kSVvj+DBcIAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIyLTA4LTEzVDExOjQ0OjQwKzAwOjAw+OIotwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0w OC0xM1QxMTo0NDo0MCswMDowMIm/kAsAAAAASUVORK5CYII= X-Now-Playing: Joni Mitchell's _Dog Eat Dog_: "The Three Great Stimulants" 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:239513 Archived-At: Ihor Radchenko writes: > What can be probably done is a call to `hack-local-variables' inside > `kill-all-local-variables', but setting only the variables marked > 'permanent-local. The later call to `hack-local-variables' inside > `run-mode-hooks' may then only go through the remaining variables. 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. 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.