# HG changeset patch # User Richard M. Stallman # Date 1147225096 0 # Node ID c1933d4241b2c964612b7fa017d23ed0c5a2cdcf # Parent 289021558ff61b12d0e95cbe68c871ca11dcc48d Combine items about local variables lists. diff -r 289021558ff6 -r c1933d4241b2 etc/NEWS --- a/etc/NEWS Wed May 10 00:34:02 2006 +0000 +++ b/etc/NEWS Wed May 10 01:38:16 2006 +0000 @@ -571,6 +571,57 @@ *** The current match in query-replace is highlighted in new face `query-replace' which by default inherits from isearch face. +** Local variables lists: + ++++ +*** In processing a local variables list, Emacs strips the prefix and +suffix from every line before processing all the lines. + ++++ +*** Text properties in local variables. + +A file local variables list cannot specify a string with text +properties--any specified text properties are discarded. + ++++ +*** If the local variables list contains any variable-value pairs that +are not known to be safe, Emacs shows a prompt asking whether to apply +the local variables list as a whole. In earlier versions, a prompt +was only issued for variables explicitly marked as risky (for the +definition of risky variables, see `risky-local-variable-p'). + +At the prompt, you can choose to save the contents of this local +variables list to `safe-local-variable-values'. This new customizable +option is a list of variable-value pairs that are known to be safe. +Variables can also be marked as safe with the existing +`safe-local-variable' property (see `safe-local-variable-p'). +However, risky variables will not be added to +`safe-local-variable-values' in this way. + ++++ +*** The variable `enable-local-variables' controls how local variable +lists are handled. t, the default, specifies the standard querying +behavior. :safe means use only safe values, and ignore the rest. +nil means ignore them all. Anything else means always query. + ++++ +*** The variable `safe-local-eval-forms' specifies a list of forms that +are ok to evaluate when they appear in an `eval' local variables +specification. Normally Emacs asks for confirmation before evaluating +such a form, but if the form appears in this list, no confirmation is +needed. + ++++ +*** If a function has a non-nil `safe-local-eval-function' property, +that means it is ok to evaluate some calls to that function when it +appears in an `eval' local variables specification. If the property +is t, then any form calling that function with constant arguments is +ok. If the property is a function or list of functions, they are called +with the form as argument, and if any returns t, the form is ok to call. + +If the form is not "ok to call", that means Emacs asks for +confirmation as before. + ** File operation changes: +++ @@ -580,25 +631,6 @@ is only rarely needed. +++ -*** In processing a local variables list, Emacs strips the prefix and -suffix from every line before processing all the lines. - -+++ -*** If the local variables list contains any variable-value pairs that -are not known to be safe, Emacs shows a prompt asking whether to apply -the local variables list as a whole. In earlier versions, a prompt -was only issued for variables explicitly marked as risky (for the -definition of risky variables, see `risky-local-variable-p'). - -At the prompt, the user can choose to save the contents of this local -variables list to `safe-local-variable-values'. This new customizable -option is a list of variable-value pairs that are known to be safe. -Variables can also be marked as safe with the existing -`safe-local-variable' property (see `safe-local-variable-p'). -However, risky variables will not be added to -`safe-local-variable-values' in this way. - -+++ *** find-file-read-only visits multiple files in read-only mode, when the file name contains wildcard characters. @@ -4003,38 +4035,6 @@ prompt provided in PROMPT is edited to show the default value provided in DEF before the terminal colon and space. -** Local variables lists: - -+++ -*** Text properties in local variables. - -A file local variables list cannot specify a string with text -properties--any specified text properties are discarded. - -+++ -*** The variable `enable-local-variables' controls how local variable -lists are handled. t, the default, specifies the standard querying -behavior. :safe means use only safe values, and ignore the rest. -nil means ignore them all. Anything else means always query. - -+++ -*** The variable `safe-local-eval-forms' specifies a list of forms that -are ok to evaluate when they appear in an `eval' local variables -specification. Normally Emacs asks for confirmation before evaluating -such a form, but if the form appears in this list, no confirmation is -needed. - ---- -*** If a function has a non-nil `safe-local-eval-function' property, -that means it is ok to evaluate some calls to that function when it -appears in an `eval' local variables specification. If the property -is t, then any form calling that function with constant arguments is -ok. If the property is a function or list of functions, they are called -with the form as argument, and if any returns t, the form is ok to call. - -If the form is not "ok to call", that means Emacs asks for -confirmation as before. - ** Searching and matching changes: +++