comparison lisp/ChangeLog @ 36921:f02b8089b062

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Wed, 21 Mar 2001 12:59:36 +0000
parents c7548b39717f
children 903add724d2a
comparison
equal deleted inserted replaced
36920:32a4317c6aa5 36921:f02b8089b062
3 * Makefile.in, makefile.w32-in (COMPILE_FIRST): Add cc-mode.el 3 * Makefile.in, makefile.w32-in (COMPILE_FIRST): Add cc-mode.el
4 and cc-vars.el. 4 and cc-vars.el.
5 5
6 * mail/sendmail.el (sendmail-send-it): Don't parse Resent-* 6 * mail/sendmail.el (sendmail-send-it): Don't parse Resent-*
7 headers. Always invoke sendmail with option -t. 7 headers. Always invoke sendmail with option -t.
8
9 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
10
11 * Release of cc-mode 5.28.
12
13 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
14
15 * cc-mode.el, cc-vars.el (c-common-init, c-default-style):
16 Removed the hardcoded switch to "java" style in Java mode.
17 It's instead taken care of by the default value for
18 c-default-style.
19
20 * cc-mode.texi: Updated the mentions of the "java" style
21 special case for Java mode.
22
23 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
24
25 * cc-align.el (c-lineup-math): Fix bug where lineup was
26 triggered by equal signs in string literals.
27
28 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
29
30 * cc-cmds.el (c-fill-paragraph): Fixed bug in the paragraph
31 limit detection when at the ends of the buffer.
32
33 * cc-engine.el (c-guess-basic-syntax): Removed bogus check for
34 "for" statement clause in case 7F; a better one is done
35 earlier in case 7D anyway.
36
37 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
38
39 * cc-cmds.el (c-guess-fill-prefix): Improved the heuristics
40 somewhat more and did a small optimization.
41
42 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
43
44 * cc-cmds.el (c-beginning-of-statement, c-end-of-statement):
45 Use the limit argument only to limit the syntactic context
46 search, not to limit the actual movement.
47
48 * cc-cmds.el (c-beginning-of-statement): Move by sentence
49 inside multiline strings, just like in comments. Also various
50 fixes to the paragraph and comment prefix recognition, block
51 comment ender handling etc.
52
53 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
54
55 * cc-cmds.el (c-fill-paragraph): Take more care to preserve
56 the relative position of the point.
57
58 * cc-cmds.el (c-electric-continued-statement): New function to
59 use as abbrev hook to reindent for keywords such as "else"
60 that continues an earlier statement.
61
62 * cc-menus.el (cc-imenu-c++-generic-expression): Treat structs
63 like classes.
64
65 * cc-mode.el (c-mode, c++-mode, java-mode, objc-mode)
66 (pike-mode): Populate the default abbrev tables to reindent for
67 keywords such as "else" that can continue earlier statements.
68 Abbrev mode is therefore turned on by default now. (Note that
69 this doesn't apply to idl-mode, since IDL afaik doesn't have
70 statements at all.)
71
72 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
73
74 * cc-engine.el (c-inside-bracelist-p): Fix for handling
75 bracelists where the declaration contains template arguments.
76
77 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
78
79 * cc-cmds.el (c-comment-indent): Use
80 `c-get-syntactic-indentation' to correctly calculate the
81 syntactic indentation. Fixes bug with lineup functions that
82 return vectors.
83
84 * cc-engine.el (c-get-syntactic-indentation): Split the
85 indentation sum calculation from `c-indent-line' to a separate
86 function.
87
88 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
89
90 * cc-cmds.el (c-beginning-of-statement, c-comment-indent):
91 Fixed places where it was assumed that preprocessor directives
92 have to start in column zero.
93
94 * cc-engine.el (c-beginning-of-member-init-list): Handle C++
95 template arguments after a class identifier properly.
96
97 * cc-engine.el (c-guess-basic-syntax): Treat initializer brace
98 lists for `new Foo[]' constructs in Java as expressions and
99 not top level definition brace lists on the top level, so that
100 they'll get indented consistently with the same type of
101 expression in a normal block.
102
103 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
104
105 * cc-cmds.el (c-fill-paragraph): The kludge that checks
106 whether the adaptive filling package fails to keep the comment
107 prefix is now kludged further to check for filladapt-mode
108 which doesn't have that problem. This is really icky, but it's
109 the only way that works with the current misfeatures/bugs in
110 both adaptive-fill-mode and filladapt-mode.
111
112 * cc-cmds.el (c-fill-paragraph): Made the way the paragraph
113 around point is recognized more robust.
114
115 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
116
117 * cc-cmds.el, cc-engine.el, cc-lobotomy.el (c-state-cache)
118 (c-in-literal-cache, c-auto-fill-prefix, c-lit-limits)
119 (c-lit-type): Fixed all internal variables used dynamically so
120 that they are always bound.
121
122 * cc-cmds.el, cc-engine.el: Improved recovery of syntactic
123 errors:
124
125 (c-indent-region): Fixed reporting of syntactic errors so that
126 the region is fully reindented even when an error occurs. The
127 last syntactic error is printed afterwards. Also cleanup up a
128 whole lot of code that tried to optimize indentation of whole
129 sexps but in reality accomplishes nothing.
130
131 (c-indent-sexp): Use c-indent-region.
132
133 (c-parsing-error): Changed this variable to hold the message
134 for any syntactic error that is discovered.
135
136 (c-parse-state): Search backward from point instead of the bod
137 position when the latter is invalid. This makes CC Mode
138 recover faster when there are unbalanced close braces.
139
140 (c-backward-to-start-of-if): Use c-parsing-error to report
141 dangling "else" clauses instead of throwing an error, and fall
142 back to a reasonable position.
143
144 (c-indent-line): Added argument to avoid reporting syntactic
145 errors.
146
147 (c-show-syntactic-information): Don't report any syntactic
148 errors.
149
150 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
151
152 * cc-cmds.el (c-beginning-of-statement): Fixed bugs with
153 paragraph recognition when moving by sentence in literals.
154
155 * cc-langs.el (c-Java-javadoc-paragraph-start): Modified
156 paragraph start regexp for javadoc to recognize javadoc markup
157 in general instead of a specific set of keywords, to be more
158 future-safe.
159
160 (c-Pike-pikedoc-paragraph-start)
161 (c-Pike-pikedoc-paragraph-separate): New regexps to recognize
162 pikedoc markup.
163
164 * cc-mode.el: Fixed initialization and use of
165 c-current-comment-prefix.
166
167 (pike-mode): Initialize paragraph settings pikedoc
168 recognition.
169
170 * cc-vars.el (c-default-style): Made a nicer Customize widget.
171
172 (c-comment-prefix-regexp): Made it possible to use an
173 association list on this to specify mode specific regexps.
174 The default value now use a special regexp in Pike mode to
175 recognize pikedoc markup.
176
177 (c-current-comment-prefix): New variable containing the actual
178 regexp from c-comment-prefix-regexp for the current buffer.
179
180 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
181
182 * cc-cmds.el (c-electric-brace): Fixed check for special brace
183 lists: We can't look at the syntax, since a brace list can get
184 recognized as a plain statement-cont.
185
186 * cc-engine.el (c-guess-basic-syntax): Fixed bug where a
187 special brace list opener broken over two lines got recognized
188 as a statement on the second line. Case 9A changed.
189
190 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
191
192 * cc-cmds.el (c-electric-brace): Fixed bug in c-state-cache
193 adjustment after line is reindented.
194
195 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
196
197 * cc-defs.el (c-point): Added optional argument for position
198 to use instead of the current point.
199
200 * cc-defs.el, cc-engine.el (c-add-class-syntax): Do not add
201 the in-expression block symbols when the construct starts at
202 boi, to avoid the extra level of indentation in that case.
203 Cases 4, 16A and 17E affected.
204
205 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
206
207 * cc-cmds.el: Use `indent-according-to-mode' instead of direct
208 calls to `c-indent-line', to adhere better to Emacs
209 conventions.
210
211 * cc-engine.el (c-indent-line): Use the syntax already bound
212 to `c-syntactic-context', if there is any.
213
214 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
215
216 * cc-engine.el (c-get-offset): Fixed bug where the indentation
217 wasn't added up correctly when a lineup function returned nil.
218
219 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
220
221 * cc-engine.el (c-collect-line-comments): Fixed bug where
222 empty lines were ignored when collecting line comments
223 backwards.
224
225 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
226
227 * cc-align.el (c-lineup-dont-change): Return an absolute
228 indentation column to work correctly in the case when several
229 syntactic elements are processed for the same line.
230
231 * cc-engine.el, cc-styles.el, cc-vars.el (c-evaluate-offset)
232 (c-get-offset, c-indent-line, c-valid-offset, c-read-offset)
233 (c-set-offset): Added absolute indentation column settings by
234 using the vector type.
235
236 * cc-mode.texi: Documented the new vector setting for offsets.
237
238 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
239
240 * cc-cmds.el, cc-vars.el (c-electric-paren, c-cleanup-list):
241 Implemented two new cleanups `space-before-funcall' and
242 `compact-empty-funcall'.
243
244 * cc-mode.texi: Documented the two new cleanups
245 space-before-funcall and compact-empty-funcall on
246 c-cleanup-list.
247
248 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
249
250 * cc-defs.el (c-paren-re, c-identifier-re): Two new macros for
251 helping building regexps.
252
253 * cc-engine.el (c-on-identifier): New function for detecting
254 identifiers. It takes keywords into account.
255
256 * cc-langs.el, cc-mode.el: Added regexps for complete keyword
257 lists. `c-keywords' is set to a regexp matching all keywords
258 in the current language.
259
260 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
261
262 * cc-engine.el (c-beginning-of-statement-1): Added '#' to the
263 list of characters to skip backwards over at the beginning of
264 a statement, since it can precede string literals in Pike.
265
266 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
267
268 * cc-cmds.el (c-guess-fill-prefix): Fixed bug with prefix
269 recognition when standing on the last line in a C++ comment
270 with nothing but whitespace after the prefix.
271
272 * cc-engine.el (c-backward-to-start-of-if): Fixed bug when
273 given no limit argument.
274
275 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
276
277 * cc-engine.el (c-inside-bracelist-p): Fixed brace list
278 recognition for the `[]= operator symbol in Pike.
279
280 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
281
282 * cc-bytecomp.el (cc-eval-when-compile): New macro that works
283 around a bug in `eval-when-compile' in the byte compiler.
284
285 * cc-engine.el (c-forward-token-1): Fixed bug with return
286 value when count is zero and there's no token start within the
287 limit.
288
289 (c-guess-basic-syntax): Don't add 'comment-intro to lines with
290 "prefix comments", i.e. comments which are followed by code on
291 the same line.
292
293 * cc-mode-19.el: Fixes so that checks that must be done at
294 compile time also are done then.
295
296 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
297
298 * cc-defs.el: Make sure cc-mode-19 is loaded both at compile
299 time and at runtime, and only when it's needed.
300
301 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
302
303 Major cleanup for less error prone and more warning free
304 compilation, including some fixes for bugs due to different
305 compilation orders. Thanks to Martin Buchholz for providing
306 the basis for all this.
307
308 * cc-bytecomp.el: New file that provides some byte compilation
309 features: It ensures that files always are loaded from the
310 current source directory during compilation, and it provides a
311 set of macros to turn off specific compiler warnings for
312 specific symbols. (It's not CC Mode specific in any way.)
313
314 Fixed a nearly acyclic dependency tree (both runtime and
315 compile-time) between all files.
316
317 * cc-defs.el: Separated all macros before the inline functions,
318 to ensure correct compilation.
319
320 * cc-defs.el, cc-engine.el: Moved c-beginning-of-macro to from
321 cc-defs.el to cc-engine.el and made it a function instead.
322
323 * cc-mode-19.el: Patch the byte compiler in Emacs 19 not to warn
324 about char-after.
325
326 * cc-vars.el: Cope even when there isn't a custom package
327 containing defcustom available.
328
329 * cc-make.el: Removed since it's no longer necessary.
330
331 README: Updated installation instructions.
332
333 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
334
335 * cc-cmds.el, cc-langs.el, cc-mode.el: Moved around things to
336 improve the modularity: Moved all mode init stuff from
337 cc-langs.el to cc-mode.el, including the keymap
338 initialization; cc-langs now only contains the various
339 variables for configuring the language syntax.
340
341 * cc-engine.el, cc-styles.el (c-evaluate-offset,
342 c-get-offset): Moved from cc-styles to cc-engine since file
343 dependency analysis suggests they belong there (which also
344 makes more sense). Thanks to Martin Buchholz for doing the
345 analysis.
346
347 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
348
349 * cc-cmds.el (c-fn-region-is-active-p): New function that
350 wraps the corresponding macro, for use in places that aren't
351 compiled. Thanks to Martin Buchholz for pointing out this.
352
353 * cc-langs.el (c-mode-menu): Use c-fn-region-is-active-p.
354
355 * cc-mode.el (c-prepare-bug-report-hooks): Hook variable to
356 add things to the bug report.
357
358 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
359
360 * cc-cmds.el (c-guess-fill-prefix): Fixed bug where the
361 returned prefix could contain a newline when the search for a
362 good prefix line failed.
363
364 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
365
366 * cc-cmds.el (c-toggle-auto-state, c-toggle-hungry-state)
367 (c-toggle-auto-hungry-state): Made the argument optional, as
368 the documentation says it is.
369
370 2000-03-21 Martin Stjernholm <bug-cc-mode@gnu.org>
371
372 * cc-engine.el (c-guess-basic-syntax): Don't treat the Pike
373 multiline string syntax, #"...", as a cpp macro.
8 374
9 2001-03-21 Paul Eggert <eggert@twinsun.com> 375 2001-03-21 Paul Eggert <eggert@twinsun.com>
10 376
11 * international/mule-cmds.el (set-locale-environment): Set 377 * international/mule-cmds.el (set-locale-environment): Set
12 system-messages-locale and system-time-locale, but only if the 378 system-messages-locale and system-time-locale, but only if the