unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* mention risky local variables "!" choice
@ 2007-08-30 17:17 jidanni
  2007-08-31  7:35 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: jidanni @ 2007-08-30 17:17 UTC (permalink / raw)
  To: emacs-devel

Info says:
   Otherwise, you can tell Emacs to record all the variable/value pairs in
   this file as safe, by typing `!' at the confirmation prompt.  When
   Emacs encounters these variable/value pairs subsequently, in the same
   file or others, it will assume they are safe.

OK, then the message

   The local variables list in .procmailrc
   contains variables that are risky (**).

   Do you want to apply it?  You can type
   y  -- to apply the local variables list.
   n  -- to ignore the local variables list.

    ** compile-command : (concat "proclint " buffer-file-name)

should mention "!", else one is sure there is no way to stop day in
and day out interrogation.

But wait. Info also says:
       Some variables, such as `load-path', are considered particularly
    "risky": there is seldom any reason to specify them as local variables,
    and changing them can be dangerous.  Even if you enter `!' at the
    confirmation prompt, Emacs will not record any values as safe for these
    variables.  If you really want to record safe values for these
    variables...

So maybe the message should instead just have a "link" to the Info page for
more details.

Also say if "**" means "particularly risky" vs. "*" if any.

Anyway, no fair not telling them about the existence of "!".

By the way, here is a patch about something else, different than the
above problem. I hope I got the link syntax correct.

*** /tmp/emacs-5	2007-07-07 11:55:03.000000000 +0800
--- /tmp/emacs-5.jidanni	2007-08-31 01:09:15.714237156 +0800
***************
*** 4458,4463 ****
--- 4458,4469 ----
       #   -Dmumble=blaah"
       # End:
  
+ You can even mix elisp expressions in:
+ 
+      # compile-command: (concat "proclint " buffer-file-name)
+ 
+ (which will trigger alarms. See *Note Safety of File Variables::.)
+ 
     Some "variable names" have special meanings in a local variables
  list.  Specifying the "variable" `mode' really sets the major mode,
  while any value specified for the "variable" `eval' is simply evaluated

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

end of thread, other threads:[~2007-09-04 22:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30 17:17 mention risky local variables "!" choice jidanni
2007-08-31  7:35 ` Richard Stallman
2007-08-31  8:21   ` Glenn Morris
2007-08-31 22:57     ` jidanni
2007-08-31 23:47       ` Glenn Morris
2007-09-04 22:35         ` Davis Herring
2007-09-01  4:06     ` Richard Stallman

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