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: Mon, 15 Aug 2022 11:15:01 +0800 Message-ID: <87k07ayz7u.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> <87ilmw5o4j.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="4128"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 57003@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 15 05:15:11 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 1oNQZL-0000vo-0w for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 05:15:11 +0200 Original-Received: from localhost ([::1]:36982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNQZJ-000337-OA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 23:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNQZC-00032z-3i for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 23:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNQZB-0006wO-Qi for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 23:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNQZB-0005EJ-Mj for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 23:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2022 03:15:01 +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.166053324620027 (code B ref 57003); Mon, 15 Aug 2022 03:15:01 +0000 Original-Received: (at 57003) by debbugs.gnu.org; 15 Aug 2022 03:14:06 +0000 Original-Received: from localhost ([127.0.0.1]:40227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNQYH-0005Cx-T7 for submit@debbugs.gnu.org; Sun, 14 Aug 2022 23:14:06 -0400 Original-Received: from mail-pg1-f181.google.com ([209.85.215.181]:45032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNQYG-0005CM-1n for 57003@debbugs.gnu.org; Sun, 14 Aug 2022 23:14:05 -0400 Original-Received: by mail-pg1-f181.google.com with SMTP id c24so5546653pgg.11 for <57003@debbugs.gnu.org>; Sun, 14 Aug 2022 20:14:04 -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=+y5yBgJtqwcd5tzgw6Milth9dzbBLtp2PZkqcesDQuI=; b=INIbTPwCh4Yye1tPfzoA7k2FBFqONee7XVmobW6ywAXqx609ugDnsmkhwO0sWgOXaH xf1vwIROvzs/7TK4m3dEaiRTgscOWoZiBiNmNfmew6EDpfCo9Yw7A/dhpo+MqIkZSeCg /rSvrlKQUWn/0iZhPFAsHRWqOJ1M02Kc/0ps9B968xKL5dyVxCco2PQWaZvtXxE1qKHS ecWdAmH9dPotnx/o6MCqmD1Kwei4L9zjuSl4B1pi6um+AfvAgSfcLnSivWIdgJ0RZKfz 8S1cHcYrbX7RKiZFB0L18BdkvdB19RNG3514pW/dhBroU+UQFfF0NV0Aeewqktfif7hc 4jIA== 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=+y5yBgJtqwcd5tzgw6Milth9dzbBLtp2PZkqcesDQuI=; b=7+csUd5kJ/SwoH60w/RxfjIpDk2qltMRIqy4RyZlt5Quh6lFWuS2cJWdVPMLLt8fCg jzATrFNg9xDpHvcAZVyAbSU3FNrotYoCCXycLX9Khddabyysg4Vebkadq6QdpwGFDrsK PKLdeU29fDUHjC35GjzWPnGbS5btx3twlxi9nOQji7lJJ6qJ47hfrF+JBCGBVBYfIDXP Jh78OYO5z6rS08gaLI5M0nyh9KLGg5114llpaHNYplsuk9UqO/78YTDKEwBLcvbW+msT q9B9+Y4NZiaGHD2TI4lvZluvBg0mVCavzFuotpLov/Bp8W9nTJjPI9i0D7FHT/peujMB geYQ== X-Gm-Message-State: ACgBeo0wCUvFyxo8ud4+GQ1HpE04/MXyFxi6QleqxGYOkhyCUxJY8wkt ZgWLLEHqh5BceObCCUUh9K6tIORtNKBE6PFH X-Google-Smtp-Source: AA6agR7FJY6bZOLy/FsNk6rOZB7hTk+1dOksUAce/k70rFVQlg31uVZry9ZJDFOO0WV1k6z4MjyL3g== X-Received: by 2002:a63:e901:0:b0:422:4d27:5814 with SMTP id i1-20020a63e901000000b004224d275814mr10908410pgh.317.1660533238432; Sun, 14 Aug 2022 20:13:58 -0700 (PDT) Original-Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id z6-20020a1709027e8600b0016d7afee272sm6048296pla.153.2022.08.14.20.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 20:13:57 -0700 (PDT) In-Reply-To: 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:239721 Archived-At: Richard Stallman writes: > > 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. > > Could you spell out the behavior you propose `early-local' to have? > From those three lines, I am not sure what it would do. 'early-local will apply file/directory-local variables _before_ executing the major-mode body. In contrast, the variables without this property are applied _after_ executing the major-mode body. Currently, all the file/directory-locals are applied after executing the major-mode body. -- 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