diff options
| author | Chong Yidong | 2009-08-17 23:50:26 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-08-17 23:50:26 +0000 |
| commit | 34481ea1f80687cf121dbc5cc11927b090c256a8 (patch) | |
| tree | 0a15718e9b87f666f741cd71e6e1442d64035783 | |
| parent | 645b9326771220c10a7e33e18704f5668bece100 (diff) | |
| download | emacs-34481ea1f80687cf121dbc5cc11927b090c256a8.tar.gz emacs-34481ea1f80687cf121dbc5cc11927b090c256a8.zip | |
Note that specifying a minor mode as a local variables enables that
mode.
| -rw-r--r-- | etc/NEWS | 26 |
1 files changed, 15 insertions, 11 deletions
| @@ -73,17 +73,21 @@ source while in the midst of loading another file (e.g., with | |||
| 73 | to be corrupted once the outer load completed. Most code doesn't care | 73 | to be corrupted once the outer load completed. Most code doesn't care |
| 74 | about this, but some (like c-mode) may check it. | 74 | about this, but some (like c-mode) may check it. |
| 75 | 75 | ||
| 76 | ** New command to add a file-local variable to the "Local Variables" list | 76 | ** File-local variable changes |
| 77 | in the current buffer is `add-file-local-variable'. New command to remove | 77 | |
| 78 | a file-local variable from the "Local Variables" list is | 78 | *** Specifying a minor mode as a local variables enables that mode, |
| 79 | `delete-file-local-variable'. New commands to add/remove a file-local | 79 | unconditionally. The previous behavior, toggling the mode, was |
| 80 | variable to/from the -*- line at the beginning of the buffer are | 80 | neither reliable nor generally desirable. |
| 81 | `add-file-local-variable-prop-line' and `delete-file-local-variable-prop-line'. | 81 | |
| 82 | New commands to add/remove a directory-local variable to/from the | 82 | *** New commands for adding and removing file-local variables: |
| 83 | .dir-locals.el file are `add-dir-local-variable' and | 83 | `add-file-local-variable', `delete-file-local-variable', |
| 84 | `delete-dir-local-variable'. New commands to copy directory-local | 84 | `add-file-local-variable-prop-line', and |
| 85 | variables to file-local variables in the "Local Variables" list or the | 85 | `delete-file-local-variable-prop-line'. |
| 86 | -*- line and vice versa are `copy-dir-locals-to-file-locals', | 86 | |
| 87 | *** New commands for adding and removing directory-local variables, | ||
| 88 | and copying them to and from file-local variable lists: | ||
| 89 | `add-dir-local-variable', `delete-dir-local-variable', | ||
| 90 | `copy-dir-locals-to-file-locals', | ||
| 87 | `copy-dir-locals-to-file-locals-prop-line' and | 91 | `copy-dir-locals-to-file-locals-prop-line' and |
| 88 | `copy-file-locals-to-dir-locals'. | 92 | `copy-file-locals-to-dir-locals'. |
| 89 | 93 | ||