* 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
* Re: mention risky local variables "!" choice
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
0 siblings, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2007-08-31 7:35 UTC (permalink / raw)
To: emacs-devel; +Cc: jidanni
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)
Would someone please do that?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mention risky local variables "!" choice
2007-08-31 7:35 ` Richard Stallman
@ 2007-08-31 8:21 ` Glenn Morris
2007-08-31 22:57 ` jidanni
2007-09-01 4:06 ` Richard Stallman
0 siblings, 2 replies; 7+ messages in thread
From: Glenn Morris @ 2007-08-31 8:21 UTC (permalink / raw)
To: rms; +Cc: jidanni, emacs-devel
Richard Stallman wrote:
> 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)
>
> Would someone please do that?
Do what, exactly?
The `!' option is mentioned only when it has an effect.
compile-command is risky, so `!' has no effect in this particular
case and is not mentioned.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mention risky local variables "!" choice
2007-08-31 8:21 ` Glenn Morris
@ 2007-08-31 22:57 ` jidanni
2007-08-31 23:47 ` Glenn Morris
2007-09-01 4:06 ` Richard Stallman
1 sibling, 1 reply; 7+ messages in thread
From: jidanni @ 2007-08-31 22:57 UTC (permalink / raw)
To: emacs-devel
GM> The `!' option is mentioned only when it has an effect.
GM> compile-command is risky, so `!' has no effect in this particular
GM> case and is not mentioned.
OK, then please document the **** changes stuff below:
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. ****> Emacs will not
prompt with "!" in this case, and even if you enter it, <**** Emacs
will not record any values as safe for these variables.
And don't forget the other important points of my original important
post. Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mention risky local variables "!" choice
2007-08-31 22:57 ` jidanni
@ 2007-08-31 23:47 ` Glenn Morris
2007-09-04 22:35 ` Davis Herring
0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-08-31 23:47 UTC (permalink / raw)
To: jidanni; +Cc: emacs-devel
jidanni@jidanni.org wrote:
> OK, then please document the **** changes stuff below:
>
> 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. ****> Emacs will not
> prompt with "!" in this case, and even if you enter it, <**** Emacs
> will not record any values as safe for these variables.
When Emacs does not prompt with !, you can't enter it. This is so
self-explanatory as to not be worth documenting.
If there are both risky and unsafe variables, it does prompt with !,
but that only applies to the unsafe variables. This non-trivial case
is what the current manual refers to, quite clearly I think.
> And don't forget the other important points of my original important
> post.
I must have missed them.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mention risky local variables "!" choice
2007-08-31 23:47 ` Glenn Morris
@ 2007-09-04 22:35 ` Davis Herring
0 siblings, 0 replies; 7+ messages in thread
From: Davis Herring @ 2007-09-04 22:35 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel, jidanni
>> 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. ****> Emacs will not
>> prompt with "!" in this case, and even if you enter it, <**** Emacs
>> will not record any values as safe for these variables.
>
> When Emacs does not prompt with !, you can't enter it. This is so
> self-explanatory as to not be worth documenting.
>
> If there are both risky and unsafe variables, it does prompt with !,
> but that only applies to the unsafe variables. This non-trivial case
> is what the current manual refers to, quite clearly I think.
It seems that the manual should instead say that ! does not apply to such
variables, and that if those variables are the only ones under
consideration (that is, there are no _unsafe_ variables), that ! isn't
even an input option (as it would be, perhaps unexpectedly, equivalent to
"y"). The bit about "even if you enter it" seems to imply that ! is an
undocumented option there, which I don't think is the intent.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mention risky local variables "!" choice
2007-08-31 8:21 ` Glenn Morris
2007-08-31 22:57 ` jidanni
@ 2007-09-01 4:06 ` Richard Stallman
1 sibling, 0 replies; 7+ messages in thread
From: Richard Stallman @ 2007-09-01 4:06 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel, jidanni
The `!' option is mentioned only when it has an effect.
compile-command is risky, so `!' has no effect in this particular
case and is not mentioned.
Ok.
^ 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 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.