[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Risky local variable mechanism
From: |
Richard M. Stallman |
Subject: |
Re: Risky local variable mechanism |
Date: |
Thu, 09 Feb 2006 12:48:51 -0500 |
How about this patch? It implements a `safe-local-variables' custom
option. If a variable is not in this list, the user is prompted
before it is set. If the user agrees to set it, and the variable is
not explicitly marked as risky (as determined by the currently
existing `risky-local-variable-p' function), we ask if that variable
can be automatically set in the future. If the user agrees to this
too, `safe-local-variables' is updated and saved to the custom-file.
It's not enough to ask just about variable names--the question has
to be about a variable/value pair.
The best way to ask the question would be to highlight the text
in the buffer that specifies the variable and value, and make that
appear in a window. That way, the actual question can be simple.
- Re: Disabled commands, (continued)
- Re: Disabled commands, Bill Wohler, 2006/02/13
- Re: Disabled commands, Kim F. Storm, 2006/02/13
- Re: Disabled commands, Giorgos Keramidas, 2006/02/13
- Re: Disabled commands, Romain Francoise, 2006/02/13
- Re: Disabled commands, Kevin Rodgers, 2006/02/09
- RE: Risky local variable mechanism, Drew Adams, 2006/02/08
- Re: Risky local variable mechanism, Luc Teirlinck, 2006/02/08
- Re: Risky local variable mechanism,
Richard M. Stallman <=
- Re: Risky local variable mechanism, Chong Yidong, 2006/02/10
- Re: Risky local variable mechanism, Stefan Monnier, 2006/02/10
- Re: Risky local variable mechanism, Chong Yidong, 2006/02/10
- Re: Risky local variable mechanism, Luc Teirlinck, 2006/02/10
- Re: Risky local variable mechanism, Stefan Monnier, 2006/02/11
- Re: Risky local variable mechanism, Richard M. Stallman, 2006/02/11
- Re: Risky local variable mechanism, Luc Teirlinck, 2006/02/10
- Re: Risky local variable mechanism, Stefan Monnier, 2006/02/11
- Re: Risky local variable mechanism, Luc Teirlinck, 2006/02/11
- Re: Risky local variable mechanism, Richard M. Stallman, 2006/02/11