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