unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Unsafe file variables...
@ 2004-04-03 19:06 David Kastrup
  2004-04-04 16:25 ` Richard Stallman
  2004-04-05  0:44 ` Kim F. Storm
  0 siblings, 2 replies; 18+ messages in thread
From: David Kastrup @ 2004-04-03 19:06 UTC (permalink / raw)



Ok, I have had an idea which might be stupid or not.  And it might
also have political implications which I am too stupid to see.  I just
want to put it out.

Emacs warns about potentially unsafe file variables and stuff, like

;;; Local variables:
;;; eval: (put 'preview-defmacro 'lisp-indent-function 'defun)
;;; end:

Now it is a nuisance to get this question each time, and it is not
feasible to disable the question permanently due to security reasons.

How about the following then?

;;; Local variables:
;;; eval: (put 'preview-defmacro 'lisp-indent-function 'defun)
;;; end:
;;; gpg-signed: iD8DBQFAbwnJBo350SLJfmgRAhf9AKCFvutpMNxc4oGK/vh2fdVV0MT/dgCeJn66
;;; Qc8BXtn2zlGbofY2YMLIAg8=
;;; =s5sr

Something like that.  I would then customize a variable that tells
whose signatures I trust enough not to get the stupid question again
and again.

Obviously, this also makes it possible for me to look at the local
variable block once, decide that it is good enough for me, and sign
it.

Any change in local variables will render the signature invalid, of
course.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-04-07 17:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-03 19:06 Unsafe file variables David Kastrup
2004-04-04 16:25 ` Richard Stallman
2004-04-04 20:04   ` Stefan Monnier
2004-04-04 20:11   ` Stefan Monnier
2004-04-04 20:28     ` David Kastrup
2004-04-04 20:49       ` Stefan Monnier
2004-04-05  2:14         ` David Kastrup
2004-04-05  3:13           ` Stefan Monnier
2004-04-05 10:34             ` David Kastrup
2004-04-05  6:36     ` Richard Stallman
2004-04-05 11:56       ` Kim F. Storm
2004-04-05 12:06       ` Kim F. Storm
2004-04-07  0:09         ` Richard Stallman
2004-04-07 17:37           ` Kevin Rodgers
2004-04-05  0:44 ` Kim F. Storm
2004-04-05  2:25   ` Kim F. Storm
2004-04-05  9:08     ` Eli Zaretskii
2004-04-05 12:08       ` Kim F. Storm

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).