emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Unsafe variable in a saved *compilation* buffer


From: Juri Linkov
Subject: Re: Unsafe variable in a saved *compilation* buffer
Date: Sun, 11 Mar 2007 21:47:59 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

> When I try to open a previously saved *compilation* buffer, GNU Emacs
> complains about an unsafe variable, default-directory. Is this needed?
>
>       The local variables list in Kompilation-doc
>       contains values that may not be safe (*).
>
>       Do you want to apply it?  You can type
>       y  -- to apply the local variables list.
>       n  -- to ignore the local variables list.
>       !  -- to apply the local variables list, and permanently mark these
>             values (*) as safe (in the future, they will be
> set  automatically.)
>
>         * default-directory : "~/Quellen/X11R7.1/"

Yes, indeed, this is very annoying.  There are many other local variables
(including numbers!) for which Emacs asks this question.  Look, for example,
at this section:

## Local_Variables:
## perl-indent-level: 2
## perl-continued-statement-offset: 2
## perl-continued-brace-offset: 0
## perl-brace-offset: 0
## perl-brace-imaginary-offset: 0
## perl-label-offset: -2
## cperl-indent-level: 2
## cperl-brace-offset: 0
## cperl-continued-brace-offset: 0
## cperl-label-offset: -2
## cperl-extra-newline-before-brace: t
## cperl-merge-trailing-else: nil
## cperl-continued-statement-offset: 2

It seems all these variables are safe, isn't?

Perhaps Emacs shouldn't be released without marking all safe variables in
packages distributed with Emacs.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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