diff options
| author | Richard M. Stallman | 2006-05-10 01:38:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-05-10 01:38:16 +0000 |
| commit | 7d3a082e89af6576c76628c6fa02b7b173653ecd (patch) | |
| tree | c401bcd85217ef1a9f9743722b5b918622fe0e27 | |
| parent | 8c74ff69835635197047bb9602271559b7472cee (diff) | |
| download | emacs-7d3a082e89af6576c76628c6fa02b7b173653ecd.tar.gz emacs-7d3a082e89af6576c76628c6fa02b7b173653ecd.zip | |
Combine items about local variables lists.
| -rw-r--r-- | etc/NEWS | 80 |
1 files changed, 40 insertions, 40 deletions
| @@ -571,26 +571,26 @@ can be edited for each replacement. | |||
| 571 | *** The current match in query-replace is highlighted in new face | 571 | *** The current match in query-replace is highlighted in new face |
| 572 | `query-replace' which by default inherits from isearch face. | 572 | `query-replace' which by default inherits from isearch face. |
| 573 | 573 | ||
| 574 | ** File operation changes: | 574 | ** Local variables lists: |
| 575 | |||
| 576 | +++ | ||
| 577 | *** Unquoted `$' in file names do not signal an error any more when | ||
| 578 | the corresponding environment variable does not exist. | ||
| 579 | Instead, the `$ENVVAR' text is left as is, so that `$$' quoting | ||
| 580 | is only rarely needed. | ||
| 581 | 575 | ||
| 582 | +++ | 576 | +++ |
| 583 | *** In processing a local variables list, Emacs strips the prefix and | 577 | *** In processing a local variables list, Emacs strips the prefix and |
| 584 | suffix from every line before processing all the lines. | 578 | suffix from every line before processing all the lines. |
| 585 | 579 | ||
| 586 | +++ | 580 | +++ |
| 581 | *** Text properties in local variables. | ||
| 582 | |||
| 583 | A file local variables list cannot specify a string with text | ||
| 584 | properties--any specified text properties are discarded. | ||
| 585 | |||
| 586 | +++ | ||
| 587 | *** If the local variables list contains any variable-value pairs that | 587 | *** If the local variables list contains any variable-value pairs that |
| 588 | are not known to be safe, Emacs shows a prompt asking whether to apply | 588 | are not known to be safe, Emacs shows a prompt asking whether to apply |
| 589 | the local variables list as a whole. In earlier versions, a prompt | 589 | the local variables list as a whole. In earlier versions, a prompt |
| 590 | was only issued for variables explicitly marked as risky (for the | 590 | was only issued for variables explicitly marked as risky (for the |
| 591 | definition of risky variables, see `risky-local-variable-p'). | 591 | definition of risky variables, see `risky-local-variable-p'). |
| 592 | 592 | ||
| 593 | At the prompt, the user can choose to save the contents of this local | 593 | At the prompt, you can choose to save the contents of this local |
| 594 | variables list to `safe-local-variable-values'. This new customizable | 594 | variables list to `safe-local-variable-values'. This new customizable |
| 595 | option is a list of variable-value pairs that are known to be safe. | 595 | option is a list of variable-value pairs that are known to be safe. |
| 596 | Variables can also be marked as safe with the existing | 596 | Variables can also be marked as safe with the existing |
| @@ -599,6 +599,38 @@ However, risky variables will not be added to | |||
| 599 | `safe-local-variable-values' in this way. | 599 | `safe-local-variable-values' in this way. |
| 600 | 600 | ||
| 601 | +++ | 601 | +++ |
| 602 | *** The variable `enable-local-variables' controls how local variable | ||
| 603 | lists are handled. t, the default, specifies the standard querying | ||
| 604 | behavior. :safe means use only safe values, and ignore the rest. | ||
| 605 | nil means ignore them all. Anything else means always query. | ||
| 606 | |||
| 607 | +++ | ||
| 608 | *** The variable `safe-local-eval-forms' specifies a list of forms that | ||
| 609 | are ok to evaluate when they appear in an `eval' local variables | ||
| 610 | specification. Normally Emacs asks for confirmation before evaluating | ||
| 611 | such a form, but if the form appears in this list, no confirmation is | ||
| 612 | needed. | ||
| 613 | |||
| 614 | +++ | ||
| 615 | *** If a function has a non-nil `safe-local-eval-function' property, | ||
| 616 | that means it is ok to evaluate some calls to that function when it | ||
| 617 | appears in an `eval' local variables specification. If the property | ||
| 618 | is t, then any form calling that function with constant arguments is | ||
| 619 | ok. If the property is a function or list of functions, they are called | ||
| 620 | with the form as argument, and if any returns t, the form is ok to call. | ||
| 621 | |||
| 622 | If the form is not "ok to call", that means Emacs asks for | ||
| 623 | confirmation as before. | ||
| 624 | |||
| 625 | ** File operation changes: | ||
| 626 | |||
| 627 | +++ | ||
| 628 | *** Unquoted `$' in file names do not signal an error any more when | ||
| 629 | the corresponding environment variable does not exist. | ||
| 630 | Instead, the `$ENVVAR' text is left as is, so that `$$' quoting | ||
| 631 | is only rarely needed. | ||
| 632 | |||
| 633 | +++ | ||
| 602 | *** find-file-read-only visits multiple files in read-only mode, | 634 | *** find-file-read-only visits multiple files in read-only mode, |
| 603 | when the file name contains wildcard characters. | 635 | when the file name contains wildcard characters. |
| 604 | 636 | ||
| @@ -4003,38 +4035,6 @@ the minibuffer with a default value: if DEF is non-nil, the minibuffer | |||
| 4003 | prompt provided in PROMPT is edited to show the default value provided | 4035 | prompt provided in PROMPT is edited to show the default value provided |
| 4004 | in DEF before the terminal colon and space. | 4036 | in DEF before the terminal colon and space. |
| 4005 | 4037 | ||
| 4006 | ** Local variables lists: | ||
| 4007 | |||
| 4008 | +++ | ||
| 4009 | *** Text properties in local variables. | ||
| 4010 | |||
| 4011 | A file local variables list cannot specify a string with text | ||
| 4012 | properties--any specified text properties are discarded. | ||
| 4013 | |||
| 4014 | +++ | ||
| 4015 | *** The variable `enable-local-variables' controls how local variable | ||
| 4016 | lists are handled. t, the default, specifies the standard querying | ||
| 4017 | behavior. :safe means use only safe values, and ignore the rest. | ||
| 4018 | nil means ignore them all. Anything else means always query. | ||
| 4019 | |||
| 4020 | +++ | ||
| 4021 | *** The variable `safe-local-eval-forms' specifies a list of forms that | ||
| 4022 | are ok to evaluate when they appear in an `eval' local variables | ||
| 4023 | specification. Normally Emacs asks for confirmation before evaluating | ||
| 4024 | such a form, but if the form appears in this list, no confirmation is | ||
| 4025 | needed. | ||
| 4026 | |||
| 4027 | --- | ||
| 4028 | *** If a function has a non-nil `safe-local-eval-function' property, | ||
| 4029 | that means it is ok to evaluate some calls to that function when it | ||
| 4030 | appears in an `eval' local variables specification. If the property | ||
| 4031 | is t, then any form calling that function with constant arguments is | ||
| 4032 | ok. If the property is a function or list of functions, they are called | ||
| 4033 | with the form as argument, and if any returns t, the form is ok to call. | ||
| 4034 | |||
| 4035 | If the form is not "ok to call", that means Emacs asks for | ||
| 4036 | confirmation as before. | ||
| 4037 | |||
| 4038 | ** Searching and matching changes: | 4038 | ** Searching and matching changes: |
| 4039 | 4039 | ||
| 4040 | +++ | 4040 | +++ |