all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Steve Youngs <steve@sxemacs.org>
Cc: dima@secretsauce.net, emacs-devel@gnu.org
Subject: Re: Can we expand the valid location of "Local Variables" ?
Date: Sun, 15 Mar 2020 23:36:09 -0400	[thread overview]
Message-ID: <E1jDgXx-0005jA-74@fencepost.gnu.org> (raw)
In-Reply-To: <microsoft-free.87r1xup1au.fsf@steveyoungs.com> (message from Steve Youngs on Sun, 15 Mar 2020 16:41:45 +1000)

[[[ 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)





  reply	other threads:[~2020-03-16  3:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10 20:56 Can we expand the valid location of "Local Variables" ? Dima Kogan
2020-03-10 21:39 ` Stefan Monnier
2020-03-10 23:44   ` Dima Kogan
2020-03-11  2:01     ` Stefan Monnier
2020-03-22 23:08   ` Dima Kogan
2020-03-23  8:25     ` Robert Pluim
2020-03-23 14:17       ` Eli Zaretskii
2020-03-23 15:28         ` Robert Pluim
2020-03-23 15:54           ` Eli Zaretskii
2020-03-23 17:03             ` Dima Kogan
2020-03-23 17:24             ` Stefan Monnier
2020-03-24  2:20           ` Richard Stallman
2020-03-12  2:26 ` Richard Stallman
2020-03-14  5:54   ` Steve Youngs
2020-03-14  7:07     ` Stefan Monnier
2020-03-15  3:08     ` Richard Stallman
2020-03-15  6:41       ` Steve Youngs
2020-03-16  3:36         ` Richard Stallman [this message]
2020-03-23 15:56 ` Yuri Khan
2020-03-23 16:55   ` Dima Kogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1jDgXx-0005jA-74@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=dima@secretsauce.net \
    --cc=emacs-devel@gnu.org \
    --cc=steve@sxemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.