diff options
| author | Martin Stjernholm | 2003-07-08 23:28:35 +0000 |
|---|---|---|
| committer | Martin Stjernholm | 2003-07-08 23:28:35 +0000 |
| commit | 94b562dc87b34607a60d4f20e0fd7f100aa5590e (patch) | |
| tree | 70dbb9b36918534016bbee65cc9f5570146cdb28 | |
| parent | 7bfc3fdba3eaf4398daa9782ec85b9e5c8e42007 (diff) | |
| download | emacs-94b562dc87b34607a60d4f20e0fd7f100aa5590e.tar.gz emacs-94b562dc87b34607a60d4f20e0fd7f100aa5590e.zip | |
A bit more talk about an API change in CC Mode.
| -rw-r--r-- | etc/NEWS | 24 |
1 files changed, 19 insertions, 5 deletions
| @@ -1094,11 +1094,25 @@ per-mode basis through c-require-final-newline. The default is to set | |||
| 1094 | it to t only in languages that mandate a final newline in source files | 1094 | it to t only in languages that mandate a final newline in source files |
| 1095 | (C, C++ and Objective-C). | 1095 | (C, C++ and Objective-C). |
| 1096 | 1096 | ||
| 1097 | *** Slight API change for the syntactic context used by lineup functions. | 1097 | *** Format change for syntactic context elements. |
| 1098 | The syntactic context stored in c-syntactic-context has been changed | 1098 | The elements in the syntactic context returned by c-guess-basic-syntax |
| 1099 | to allow more information. This might affect custom lineup functions, | 1099 | and stored in c-syntactic-context has been changed somewhat to allow |
| 1100 | but only if they use that variable directly. See its docstring for | 1100 | attaching more information. They are now lists instead of single cons |
| 1101 | more details. | 1101 | cells. E.g. a line that previously had the syntactic analysis |
| 1102 | |||
| 1103 | ((inclass . 11) (topmost-intro . 13)) | ||
| 1104 | |||
| 1105 | is now analysed as | ||
| 1106 | |||
| 1107 | ((inclass 11) (topmost-intro 13)) | ||
| 1108 | |||
| 1109 | In some cases there are more than one position given for a syntactic | ||
| 1110 | symbol. | ||
| 1111 | |||
| 1112 | This change might affect code that call c-guess-basic-syntax directly, | ||
| 1113 | and custom lineup functions if they use c-syntactic-context. However, | ||
| 1114 | the argument given to lineup functions is still a single cons cell | ||
| 1115 | with nil or an integer in the cdr. | ||
| 1102 | 1116 | ||
| 1103 | *** API changes for derived modes. | 1117 | *** API changes for derived modes. |
| 1104 | There have been extensive changes "under the hood" which can affect | 1118 | There have been extensive changes "under the hood" which can affect |