From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Can we expand the valid location of "Local Variables" ? Date: Sun, 15 Mar 2020 23:36:09 -0400 Message-ID: References: <87r1y0apzm.fsf@secretsauce.net> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17441"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dima@secretsauce.net, emacs-devel@gnu.org To: Steve Youngs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 16 04:41:04 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 1jDgcg-0004Nw-Ts for ged-emacs-devel@m.gmane-mx.org; Mon, 16 Mar 2020 04:41:02 +0100 Original-Received: from localhost ([::1]:33780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDgcf-0006nu-Gk for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Mar 2020 23:41:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59239) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDgXy-0005u2-Vg for emacs-devel@gnu.org; Sun, 15 Mar 2020 23:36:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jDgXy-0007rd-0p; Sun, 15 Mar 2020 23:36:10 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jDgXx-0005jA-74; Sun, 15 Mar 2020 23:36:09 -0400 In-Reply-To: (message from Steve Youngs on Sun, 15 Mar 2020 16:41:45 +1000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:245549 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > Specifying another file has a serious problem: you can't be sure > > which file will get included. > It'd be no more problematic than any other facility that supports including > sub-files, for example texinfo. It is problematic because this inclusion would take place in the mere act of visiting a file. That is more sensitive than things that get included when you _compile_ the file. > Wait, here's another idea from the crazy-dept. Use a hash, like a md5 > or sha1 or some such of the file to be included. Before the inclusion, > check the hash, error out if there's a mismatch. > Local variables: > @include-hash: f31785c629584f30116ff45aa681fa5318613fd9 > @include: FILENAME > End: That would make it safer, but you'd have to edit the file whenever you change what you include. I think it is better to achieve the desired safety by putting those settings in the file itself, with something to say "search further back". -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)