From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Can we expand the valid location of "Local Variables" ? Date: Sat, 14 Mar 2020 03:07:30 -0400 Message-ID: References: <87r1y0apzm.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/x-markdown; coding=UTF-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129840"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Richard Stallman , Dima Kogan To: Steve Youngs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 14 08:08:09 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jD0u0-000XfS-4L for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Mar 2020 08:08:08 +0100 Original-Received: from localhost ([::1]:41720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jD0tz-00039Z-6l for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Mar 2020 03:08:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40587) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jD0tT-0002eI-OR for emacs-devel@gnu.org; Sat, 14 Mar 2020 03:07:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jD0tS-0000ml-69 for emacs-devel@gnu.org; Sat, 14 Mar 2020 03:07:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:13789) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jD0tR-0000dJ-V1; Sat, 14 Mar 2020 03:07:34 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 767A044F38F; Sat, 14 Mar 2020 03:07:32 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 404B544F366; Sat, 14 Mar 2020 03:07:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1584169651; bh=sWbB3N192WvDbQIoHwzZrEIOWShx1cEQ4kFlxooL/Ck=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=XlJ2ZwdjN1du5xre774odKc2at+0SbRe0e/+7SpYb96xxLAjnYpZqqg5dmHdixD45 8rKfU6qAEsgzWYnAqECfF6Mhoq8yzGkfDbqaV61nit11Zl6nX8HmnfZZfyTyGRa6/L iEjj6hagKIQhgezVItpE7IE7ax5buzlCEZ1gPWVJhBvrskYlSd/X8Jy95mOcgQLfmR UENu2OEOCEHibfUPW2J4rYRv9Mb7DYe67q6hCSkjkN6DdVdPvHQuLoQa0J8c09a6/I FhO2ryWWlDRm25cMpOQkkX0h+nS/wzc7OUD9IoqkfwtRGq2oJFwvO8bdg28SUUxpcO gepG7oS8zmNRw== Original-Received: from pastel (unknown [216.154.50.221]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0559C1205E0; Sat, 14 Mar 2020 03:07:30 -0400 (EDT) In-Reply-To: (Steve Youngs's message of "Sat, 14 Mar 2020 15:54:04 +1000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245509 Archived-At: > How about some form of "include" mechanism: > > Local Variables: > @include: FILENAME > End: Sounds OK, yes. > I would suggest implementing that with the same care, considerations, > and restrictions as has `eval' for Locals Indeed. There be dragons. > Mind you, if your Local Vars sections are getting so out of hand that > they warrant having a whole extra file to store them, you should probably > re-think what you're doing. :-) I think such an @include directive can be useful not just for large sections but also to avoid duplicating settings (i.e. a kind of alternative to .dir-locals.el, not tied to the directory hierarchy). Stefan