emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mention risky local variables "!" choice


From: jidanni
Subject: mention risky local variables "!" choice
Date: Fri, 31 Aug 2007 01:17:55 +0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]