-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
14199 lines (9834 loc) · 494 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2011-08-22 Alan Mackenzie <[email protected]>
* Release 5.32
Use `make-local-hook' only when it's needed.
* cc-defs.el (c-emacs-features): Add 'add-hook-local into c-emacs-features
when make-local-hook is required.
* cc-mode.el (c-basic-common-init, c-font-lock-init): Test c-emacs-features
for 'add-hook-local.
* cc-styles.el (c-make-styles-buffer-local): Test c-emacs-features for
'add-hook-local.
* cc-defs.el (c-search-forward-char-property): Streamline by using
c-next-single-property-change.
* cc-engine.el: Correct typos.
2011-08-20 Alan Mackenzie <[email protected]>
Resolve invalid use of a regexp in regexp-opt.
* cc-fonts.el (c-complex-decl-matchers): Add in special detection for a
java annotation.
* cc-engine.el (c-forward-decl-or-cast-1): Add in special detection for a
java annotation.
* cc-langs.el (c-prefix-spec-kwds-re): Remove the special handling for
java.
(c-modifier-kwds): Remove the regexp "@[A-za-z0-9]+".
* cc-fonts.el: Tidy up font locking of a long CPP construct.
* cc-fonts.el (c-guess-font-lock-context): eliminate this somewhat pompous
defun.
(c-font-lock-complex-decl-prepare): replace a call to the above with
inline code.
Fontify CPP expressions correctly when starting in the middle of such a
construct. Mainly for when jit-lock etc. starts a chunk here.
* cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare): Test for being in a CPP form which
takes an expression.
* cc-langs.el (c-cpp-expr-intro-re): New lang-variable.
2011-08-16 Alan Mackenzie <[email protected]>
* cc-cmds.el (c-electric-lt-gt): Remove an unused dynamic variable.
Reduce the number of compilation warnings:
* cc-awk.el (c-awk-get-NL-prop-cur-line): Replace `delete-backward-char' by
`delete-char'.
* cc-cmds.el (c-electric-lt-gt, c-beginning-of-defun): Remove unused
dynamic variables.
* cc-engine.el (top level): Add a cc-bytecomp-defun and a
cc-bytecomp-defvar.
(c-ssb-lit-begin, c-forward-<>-arglist-recur):
(c-just-after-func-arglist-p, c-looking-at-decl-block):
(c-append-to-state-cache): Remove unused dynamic variables.
* cc-fonts.el (c-font-lock-enum-tail): Remove an unused dynamic variable.
* cc-guess.el (top level): Add three cc-bytecomp-defvars.
* cc-menus.el (cc-imenu-objc-function): Remove an unused dynamic variable.
* cc-mode.el (top level): Add three cc-bytecomp-defvars.
* tests/macro-27.cc, tests/macro-27.face, tests/macro-27.res:
Test "macros with semicolons".
2011-08-15 Alan Mackenzie <[email protected]>
Adapt recent changes to work with XEmacs.
* cc-cmds.el (c-where-wrt-brace-construct): Replace a looking-at with
a call to c-looking-at-non-alphnumspace, because XEmacs doesn't have
\s!.
(c-defun-name): Adapt a regexp not to use \_>.
* cc-defs.el (c-next-single-property-change): new macro.
(c-<-as-paren-syntax, c->-as-paren-syntax: Adapt for use as a simple
value (as well as for category properties).
(c-put-property-fun, c-put-char-property): wrap in eval-and-compile.
(c-use-category): new compile-time constant.
(c-search-forward-char-property):
(c-clear-char-property-with-value-function):
(c-clear-char-property-with-value-function, c-mark-<-as-paren):
(c-mark->-as-paren, c-unmark-<->-as-paren): small changes.
(c-sc-scan-lists-no-category+1+1, c-sc-scan-lists-no-category+1-1):
(c-sc-scan-lists-no-category-1-1, c-sc-scan-lists-no-category-1-1):
(c-sc-scan-lists, c-sc-parse-partial-sexp-no-category):
(c-sc-parse-partial-sexp): new macrofications of scan-lists and
parse-partial-sexp, for use in c-parse-state.
(c-looking-at-non-alphnumspace): new macro.
(c-emacs-features): Introduce new component category-properties.
* cc-engine.el (several defuns): Replace next-single-property-change by
c-next-single-property-change.
(c-state-cache-non-literal-place): Correct, to avoid the inside of
macros.
(c-state-balance-parens-backwards):
(c-append-lower-brace-pair-to-state-cache, c-state-push-any-brace-pair):
(c-append-to-state-cache, c-remove-stale-state-cache):
(c-remove-stale-state-cache-backwards): Replace scan-lists by
c-sc-scan-lists and parse-partial-sexp by c-sc-parse-partial-sexp.
(c-invalidate-state-cache, c-parse-state): small changes.
(c-find-decl-spots): Enhance initialisation of cfd-prop-match to take
account of a possible c-decl-end c-type property on the last token before
the region.
(c-clear-<-pair-props, c-clear->-pair-props): use c-unmark-<->-as-paren.
(c-before-change-check-<>-operators): Search for syntax-table rather than
category property.
* cc-fonts.el (c-skip-comments-and-strings): Use
c-next-char-propery-change.
(c-cpp-matchers): Use c-unmark-<->-as-paren.
(c-font-lock-invalid-string): Use characterp rather than integerp in
XEmacs, since characters are not integers.
* cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Test for category
properties (i.e. GNU Emacs) before deleting them.
(c-before-change): replace next-single-property-change by
c-next-single-property-change.
(c-after-change): Make an Emacs dependent category property related
correction dependent on the existence of category properties.
2011-07-26 Alan Mackenzie <[email protected]>
* tests/bitfield-2.c, tests/bitfield-2.face, tests/bitfield-2.res:
bitfield-2.c: New file to test awkward fontification of bitfields.
Fontify bitfield declarations properly.
* cc-langs.el (c-has-bitfields): New lang variable.
(c-symbol-chars): Now exported as a lang variable.
(c-not-primitive-type-keywords): New lang variable.
* cc-fonts.el (c-font-lock-declarations): Jump over the QT keyword "more"
to prevent "more slots: ...." being spuriously parsed as a bitfield
declaraion.
* cc-engine.el (c-beginning-of-statement-1): Refactor and enhance to handle
bitfield declarations.
(c-punctuation-in): New function.
(c-forward-decl-or-cast-1): Enhance CASE 3 to handle bitfield
declarations properly.
2011-07-22 Alan Mackenzie <[email protected]>
Prevent cc-langs.elc being loaded at run time.
* cc-mode.el: Remove two autoload forms which loaded cc-langs.
* cc-langs.el (c-make-init-lang-vars-fun): Don't emit "(require 'cc-langs)".
Quote a form so it will evaluate at (cc-mode's) compilation time.
2011-07-21 Alan Mackenzie <[email protected]>
Fontify declarators properly when, e.g., a jit-lock chunk begins inside a
declaration.
* cc-langs.el (c-symbol-chars): Correct a typo.
* cc-fonts.el (c-font-lock-enclosing-decls): New function.
(c-complex-decl-matchers): Insert reference to
c-font-lock-enclosing-decls.
* cc-engine.el (c-backward-single-comment, c-backward-comments): Bind
open-paren-in-column-0-is-defun-start to nil around calls to
(forward-comment -1).
2011-07-15 Alan Mackenzie <[email protected]>
* cc-mode.texi, cc-styles.el, Makefile, cc-guess.el, cc-langs.el, cc-mode.el:
* cc-guess.el: Update this and Make it an integral part of CC Mode.
* cc-langs.el (c-mode-menu): Added "Style..." submenu.
* cc-styles.el (cc-choose-style-for-mode): New function derived from
`c-basic-common-init'.
* cc-mode.el (top-level): Require cc-guess. (c-basic-common-init): Use
`cc-choose-style-for-mode'.
* cc-mode.texi (Guessing the Style): New page. (Styles): Add a short
introduction to above.
Makefile: Change the position of cc-guess.el.
2011-06-27 Alan Mackenzie <[email protected]>
* cc-engine.el, tests/templates-19.cc:
cc-engine (c-guess-continued-construct): Correct the handling of
template-args-cont, particularly for when font lock is disabled. Name
this case as "CASE G".
templates-19.c: Reindent.
2011-06-15 Alan Mackenzie <[email protected]>
* cc-fonts.el (c-font-lock-declarations):
1: Whilst checking for declarators, disable
knr checking to speed up for normal files. 2: Refactor, replacing a
sequence of nested if forms by a cond form.
2011-03-06 Alan Mackenzie <[email protected]>
* cc-engine.el (c-guess-basic-syntax):
Move CASE 19 to a different place, correctly to
process template-args-cont lines.
2011-02-27 Alan Mackenzie <[email protected]>
* cc-engine.el (c-guess-continued-construct): In three places, replace
`lim' with 'containing-sexp'.
* cc-engine.el (c-guess-continued-construct):
In three places, replace `paren-state'
with 'containing-sexp'.
Fix an infinite loop which happens when a template construct straddles a
jit-lock boundary.
* cc-engine.el (c-forward-<>-arglist-recur): recast nested `if's as a
`cond' form.
* cc-fonts.el (c-font-lock-declarations): Remove a harmful narrowing to
region being fontified.
2011-02-20 Alan Mackenzie <[email protected]>
* cc-engine.el (c-state-literal-at):
Prevent positions in macros finding their way into
c-state-nonlit-pos-cache. Strengthen the comments.
(c-state-dump): New commented out diagnostic routine.
* cc-cmds.el: Eliminate some infinite loops:
(c-forward-over-illiterls): On encountering a bare '#' step forward over
it.
(c-end-of-statement): Set macro-end correctly at the end of a loop.
2010-12-28 Nathaniel Flath <[email protected]>
* cc-engine.el (c-guess-continued-construct):
used 'paren-state' instead of 'lim' to fix byte-compile warnings.
2010-12-12 Alan Mackenzie <[email protected]>
* cc-engine.el (c-forward-type):
Before scanning a template arglist, check that the
current language supports this.
2010-10-31 Alan Mackenzie <[email protected]>
* cc-cmds.el (c-mask-paragraph): Fix an off-by-1 error.
2010-10-30 Alan Mackenzie <[email protected]>
* cc-fonts.el (c-font-lock-declarations):
Cache the result of the call to
c-beginning-of-decl-1 inside the internal lambda. This is for speed.
(c-font-lock-enum-tail): New function which fontifies the tail of an enum.
(c-basic-matchers-after): Insert a call to the above new function.
2010-10-24 Nathaniel Flath <[email protected]>
* cc-engine.el: Patch to fix templates-19.cc test
2010-10-10 Alan Mackenzie <[email protected]>
* cc-mode.el (c-before-change, c-after-change):
Move the setting of c-new-BEG and
c-new-END from c-before-change to c-after-change.
2010-10-08 Alan Mackenzie <[email protected]>
Together with the previous patch, enhance fontification of declarators to
take account of the presence/absence of "typedef".
* cc-engine.el (c-forward-type): New &optional param "brace-block-too".
(c-forward-decl-or-cast-1): cdr of return value now indicates the
presence of either or both of a "struct"-like keyword and "typedef".
* cc-fonts.el (c-complex-decl-matchers): Remove the heuristic fontification
of declarators which follow a "}".
* cc-langs.el (c-typedef-kwds c-typedef-key): New lang variable for
"typedef".
(c-typedef-decl-key): New lang varaible built from c-typedef-decl-kwds.
* cc-mode.el (c-advise-fl-for-region): Don't restrict to AWK Mode any more.
2010-10-06 Alan Mackenzie <[email protected]>
* cc-fonts.el (c-font-lock-declarations):
Fontify declarators according to the
presence/absence of "typedef".
* tests/class-21.face, tests/decls-33.c, tests/decls-33.face, tests/decls-8.cc, tests/decls-8.face, tests/templates-4.face, tests/typedef-1.face:
CC Mode now correctly fontifies declarators according to the
presence/absence of "typedef". Adapt the test files accordingly.
2010-09-20 Nathaniel Flath <[email protected]>
* cc-engine.el: Moved case 19 out of case 7
2010-09-15 Alan Mackenzie <[email protected]>
* cc-engine.el (c-forward-<>-arglist-recur): Fix an infinite recursion.
* cc-engine.el (c-forward-<>-arglist-recur): Correct the indentation.
2010-08-06 Alan Mackenzie <[email protected]>
* cc-cmds.el (c-mask-paragraph, c-fill-paragraph):
Fix for the case that a C style
comment has its delimiters alone on their respective lines.
2010-08-01 Alan Mackenzie <[email protected]>
* cc-align.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-mode.el, cc-mode.texi, cc-vars.el:
Eliminate some warning messages when Emacs 23 is used to compile them.
2010-07-31 Alan Mackenzie <[email protected]>
* cc-cmds.el (c-mask-paragraph): Fix auto-fill bug.
2010-07-21 Alan Mackenzie <[email protected]>
* tests/000tests.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res, cc-engine.el, cc-fix.el, cc-fonts.el, cc-langs.el, cc-menus.el, cc-mode.el, cc-mode.texi, cc-vars.el, cc-defs.el:
Integrate java-0-1 branch: Enhance Java Mode to handle Java 5.0 (Tiger)
and Java 6 (Mustang). Contributed by Nathanial Flath.
2010-07-20 Alan Mackenzie <[email protected]>
* cc-defs.el, cc-engine.el, cc-fix.el, cc-fonts.el, cc-langs.el, cc-menus.el, cc-mode.el, cc-mode.texi, cc-vars.el, tests/000tests.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res:
Integrate java-0-1 branch: Enhance Java Mode to handle Java 5.0 (Tiger)
and Java 6 (Mustang). Contributed by Nathanial Flath.
2010-07-18 Alan Mackenzie <[email protected]>
* tests/comments-6.c, cc-mode.el:
Enhance `c-file-style' in file/directory local variables.
* cc-mode.el (c-count-cfss): New function.
(c-before-hack-hook): Call `c-set-style' differently according to whether
c-file-style was set in file or directory local variables.
tests/comments-6.c. Enter Emacs-24 as a version in which to ignore this
test.
2010-07-13 Nathaniel Flath <[email protected]>
* cc-mode.texi: Fixed chaotic braces in 'Java Symbols'.
2010-06-30 Nathaniel Flath <[email protected]>
* cc-mode.texi: Added more detail on new syntactic constructs
2010-06-20 Alan Mackenzie <[email protected]>
Fix an indentation bug with templates.
* cc-mode.el (c-common-init): Initialise c-new-BEG/END.
(c-neutralize-syntax-in-and-mark-CPP): c-new-BEG/END: Take account of
existing values.
* cc-engine.el (c-clear-<-pair-props-if-match-after)
(c-clear->-pair-props-if-match-before): now return t when they've cleared
properties, nil otherwise.
(c-before-change-check-<>-operators): Set c-new-beg/end correctly by
taking account of the existing value.
* cc-defs.el (c-clear-char-property-with-value-function): Fix this
to clear the property rather than overwriting it with nil.
* cc-mode.el (c-before-hack-hook):
When the mode is set in file local variables, set it
first.
2010-05-28 Alan Mackenzie <[email protected]>
* cc-engine.el, cc-langs.el, cc-mode.texi, cc-vars.el, cc-cmds.el:
Amend the handling of c-beginning/end-of-defun in nested declaration
scopes.
* cc-vars.el (c-defun-tactic): Move here from cc-langs.el. Change it to a
defcustom.
* cc-mode.texi (Movement Commands): Document `c-defun-tactic'. Document
the new handling of nested scopes for movement by defuns.
* cc-langs.el (c-defun-tactic): Move this variable to cc-vars.el.
(c-nonlabel-token-2-key): New variable for change in cc-engine.el.
* cc-engine.el (c-beginning-of-statement-1): Prevent "class foo : bar"
being spuriously recognized as a label.
* cc-cmds.el (c-narrow-to-most-enclosing-decl-block): Add parameter
`inclusive' (to include enclosing braces in the region).
(c-widen-to-enclosing-decl-scope): New function.
(c-while-widening-to-decl-block): New macro.
(c-beginning-of-defun, c-end-of-defun): Change algorithm to keep going
outward for defun boundaries, and correspondingly change symbol
`respect-enclosure' to `go-outward'.
(c-declaration-limits): Change algorithm to report only the "innermost"
defun's boundaries.
2010-05-25 Nathaniel Flath <[email protected]>
* cc-mode.texi:
Added descriptions of annotation-top-cont and annotation-var-cont into the manual.
2010-05-22 Nathaniel Flath <[email protected]>
* cc-fonts.el, cc-mode.el:
Moved annotation highlighting from java-mode to c-basic-matchers-after.
2010-05-21 Alan Mackenzie <[email protected]>
* cc-engine.el (c-parse-state-get-strategy): Replace parameter `here' with
`here-' and `here-+', which sandwich any pertinent CPP construct.
(c-remove-stale-state-cache-backwards): Fix a bug which happens when
doing (c-parse-state) in a CPP construct: Exclude any "new" CPP construct
from taking part in the scanning.
2010-05-21 Nathaniel Flath <[email protected]>
* cc-langs.el, tests/generics-1.face, cc-engine.el:
Fixed problem where Java Generics were not always fontified.
2010-05-19 Nathaniel Flath <[email protected]>
* cc-langs.el, tests/generics-1.face, tests/generics-1.java, cc-engine.el:
Fixed unit tests for template expressions and declarations. Still a few broken ones in the new unit tests for Java generics.
2010-05-18 Nathaniel Flath <[email protected]>
* cc-langs.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, cc-engine.el:
Fixed the bugs in annotation highlighting; annotation unit tests are now passing.
Also reindented c-forward-<>-arglist-recur and made a few changes that fixed some bugs in generic handline, but those unit tests are not entirely passing.
2010-05-17 Alan Mackenzie <[email protected]>
* tests/annotations-1.face:
file annotations-1.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/annotations-1.java:
file annotations-1.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/annotations-1.res:
file annotations-1.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/enum-6.face:
file enum-6.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/enum-6.java:
file enum-6.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/enum-6.res:
file enum-6.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/foreach.face:
file foreach.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/foreach.java:
file foreach.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/foreach.res:
file foreach.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/generics-1.face:
file generics-1.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/generics-1.java:
file generics-1.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/java-varargs.face:
file java-varargs.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/java-varargs.java:
file java-varargs.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
* tests/java-varargs.res:
file java-varargs.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000
2010-05-17 Nathaniel Flath <[email protected]>
* cc-engine.el, cc-fonts.el, cc-langs.el, cc-vars.el, tests/000tests.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res:
Added unit tests for new Java 1.5 constructs, as well as a few bug and formatting fixes.
Most of the issues brought up by Alan's CR have been fixed, with the
exception of annotations being font-locked in java-mode.
Additionally, most of the broken tests were fixed, at the cost of the
a few of the new unit tests not passing.
* tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res:
New file.
2010-04-29 Alan Mackenzie <[email protected]>
* cc-mode.el (c-extend-region-for-CPP):
Fix an off-by-one error (EO-macro position).
2010-04-28 Nathaniel Flath <[email protected]>
* cc-engine.el:
Improved c-forward-annotation to handle annotations with arglists properly.
* cc-vars.el, cc-engine.el:
Added two syntactic contexts to support annotations in java.
The first, annotation-top-cont, represents a topmost continuation where the only items preceding the current line are annotations. An example is:
@Test
_ public void testFoo() {}
The second is annotation-var-cont, representing a statement continuation where the only preceding items are annotations, such as:
class Test {
public static void main() {
@SuppressWarnings
_int i;
}
}
2010-04-27 Nathaniel Flath <[email protected]>
* cc-engine.el: Fixed indentation.
* cc-engine.el:
Added support for for:each loops and fixed a few bugs this uncovered in generic highlighting.
2010-04-26 Alan Mackenzie <[email protected]>
* cc-align.el, cc-awk.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-fix.el, cc-langs.el, cc-lobotomy.el, cc-menus.el, cc-styles.el, cc-vars.el:
Replace leading spaces by <TAB> characters throughout the source.
* cc-awk.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-fix.el, cc-fonts.el, cc-langs.el, cc-lobotomy.el, cc-menus.el, cc-styles.el, cc-vars.el, cc-align.el:
Replace leading spaces by <TAB>s, synched with java-0-1-merge-3.
* cc-awk.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-fix.el, cc-langs.el, cc-lobotomy.el, cc-menus.el, cc-styles.el, cc-vars.el, cc-align.el:
Replace leading spaces by <TAB> characters throughout source.
* cc-mode.texi, cc-mode.el, cc-engine.el:
Merge from Branch_5_31, tag java-0-1-merge-2.
2010-04-24 Nathaniel Flath <[email protected]>
* cc-engine.el, cc-fonts.el, cc-langs.el:
Added correct fontification for Java generics and varargs.
2010-03-25 Alan Mackenzie <[email protected]>
* cc-mode.texi (Other Indentation):
State that functions on c-special-indent-hook are
called with no parameters and with point on the current line.
2010-03-23 Nathaniel Flath <[email protected]>
* cc-fonts.el, cc-mode.el, cc-vars.el:
Renamed java-annotation-face to c-annotation-face and moved it to cc-fonts.el
2010-03-22 Alan Mackenzie <[email protected]>
* cc-engine.el: *** empty log message ***
* cc-engine.el (c-remove-stale-state-cache): Fix an off-by-one error.
2010-03-12 Alan Mackenzie <[email protected]>
* cc-mode.el: *** empty log message ***
* cc-mode.el:
Guard against the Emacs core spuriously calling before-change-functions
twice in succession.
(c-just-done-before-change): New flag
(c-before-change): Test and set the new flag before executing anything.
(c-after-change): Clear the flag.
2010-03-11 Alan Mackenzie <[email protected]>
* cc-fonts.el, cc-langs.el, cc-mode.el, tests/inher-5.res, tests/inher-6.res, tests/templates-16.res, tests/templates-5.res, tests/templates-7.res, tests/templates-8.res, cc-cmds.el, cc-defs.el, cc-engine.el:
Merge from BRANCH_5_31, tag java-0-1-merge-1.
2010-03-01 Alan Mackenzie <[email protected]>
* cc-engine.el: *** empty log message ***
* cc-engine.el (c-remove-stale-state-cache):
Correct the previous patch.
* cc-engine.el: *** empty log message ***
* cc-engine.el (c-remove-stale-state-cache):
Take account of when `good-pos' is in the same
macro as `here'.
* cc-engine.el, cc-mode.el: *** empty log message ***
* cc-mode.el (c-common-init): In the funcall, replace the erroneous `beg',
`end' with (point-min), (point-max).
(c-after-change): After (e.g.) C-y, remove the 'syntax-table text props
that Emacs has converted from 'category text props.
* cc-engine.el (c-clear-<-pair-props, c-clear->-pair-props): Clear the
'category text property, not the 'syntax-table one.
2010-02-19 Nathaniel Flath <[email protected]>
* cc-engine.el, cc-fonts.el, cc-langs.el, cc-mode.el, cc-vars.el:
Removed trailing whitespace from cc-vars and cc-engine, and fixed typo (xJava -> Java)
2010-02-04 Alan Mackenzie <[email protected]>
* cc-engine.el, cc-mode.el: *** empty log message ***
* cc-mode.el (c-common-init): Use c-get-state-before-change-functions in
place of c-get-state-before-change-function. Update some comments about
this.
* cc-engine.el: Update some comments about
c-get-state-before-change-function.
* cc-cmds.el, cc-defs.el, cc-engine.el, cc-langs.el, cc-mode.el:
*** empty log message ***
Change strategy for marking < and > as template delimiters: mark them
strictly in matching pairs.
* cc-mode.el (c-before-change): Use c-get-state-before-change-functions.
* cc-langs.el (c-no-parens-syntax-table): New syntax table, used for
searching syntactically for matching <s and >s.
(c-get-state-before-change-functions): New language variable (note the
plural) which supersedes c-get-state-before-change-function.
* cc-engine.el (c-clear-<-pair-props, c-clear->-pair-props)
(c-clear-<>-pair-props, c-clear-<-pair-props-if-match-after)
(c-clear->-pair-props-if-match-before)
(c-before-change-check-<>-operators): new functions.
(c-after-change-check-<>-operators): Use macro c-unmark-<->-as-paren.
* cc-defs.el (c-search-backward-char-property): New macro.
* cc-cmds.el (c-electric-lt-gt): Do not set text properties on < and > any
more. (These will be handled by font locking.)
2010-01-25 Nathaniel Flath <[email protected]>
* cc-mode.el, cc-vars.el: Highlighting for Java annotation usage
2010-01-21 Alan Mackenzie <[email protected]>
* cc-engine.el: *** empty log message ***
* cc-engine.el:
Fix a situation where deletion of a cpp construct throws an error.
(c-invalidate-state-cache): Before invoking
c-with-all-but-one-cpps-commented-out, check that the special cpp
construct is still in the buffer.
(c-parse-state): Record the special cpp with markers, not numbers.
* cc-defs.el: *** empty log message ***
* cc-defs.el:
typing '#' in an empty C buffer throws "args out of range".
(c-set-cpp-delimiters, c-clear-cpp-delimiters): Check for EOB playing the
role of delimiter.
2010-01-19 Nathaniel Flath <[email protected]>
* cc-langs.el: Highlight annotations as types
* cc-mode.el, cc-langs.el: highlighting of @interface in java-mode
2010-01-06 Nathaniel Flath <[email protected]>
* cc-menus.el:
Fixed issue with cc-imenu-java-generic-expression not handling array arguments properly
2009-12-31 Nathaniel Flath <[email protected]>
* cc-langs.el:
Fix for enum indentation in Java. Aligns all enum options on the same column.
* cc-langs.el: Added proper highlighting for java enums
2009-12-10 Alan Mackenzie <[email protected]>
* tests/templates-19.cc, tests/templates-19.res:
Test template use in statements when the templates span line breaks.
* tests/inher-5.res, tests/inher-6.res, tests/templates-16.res, tests/templates-5.res, tests/templates-7.res, tests/templates-8.res:
Amend for the second anchor point just added to template-args-cont.
Handle templates continued over line breaks in statements. Refactor
c-syntactic-skip-backward. Make text property `category' rear
non-sticky.
* cc-mode.el (c-basic-common-init): make text property `category' rear
non-sticky.
* cc-engine.el (c-ssb-lit-begin): New defsubst, extracted from ....
(c-syntactic-skip-backward): Refactor, extracting the above.
(c-guess-basic-syntax CASEs 5D.3, 5L): Add extra anchor point;
(c-guess-basic-syntax CASE 19): New CASE to handle template
construct continued over line boundary.
(c-guess-basic-syntax CASE 7): don't trigger on '<'.
2009-12-03 Alan Mackenzie <[email protected]>
Enhance `c-parse-state' to run efficiently in "brace desserts".
cc-mode.el (c-basic-common-init): Call c-state-cache-init.
(c-neutralize-syntax-in-and-mark-CPP): Renamed from
c-extend-and-neutralize-syntax-in-CPP. Mark each CPP construct by
placing `category' properties value 'c-cpp-delimiter at its
boundaries.
* cc-langs.el (c-before-font-lock-function):
c-extend-and-neutralize-syntax-in-CPP has been renamed
c-neutralize-syntax-in-and-mark-CPP.
* cc-fonts.el (c-cpp-matchers): Mark template brackets with
`category' properties now, not `syntax-table' ones.
* cc-engine.el (c-syntactic-end-of-macro): A new enhanced (but
slower) version of c-end-of-macro that won't land inside a literal
or on another awkward character.
(c-state-cache-too-far, c-state-cache-start)
(c-state-nonlit-pos-interval, c-state-nonlit-pos-cache)
(c-state-nonlit-pos-cache-limit, c-state-point-min)
(c-state-point-min-lit-type, c-state-point-min-lit-start)
(c-state-min-scan-pos, c-state-brace-pair-desert)
(c-state-old-cpp-beg, c-state-old-cpp-end): New constants and
buffer local variables.
(c-state-literal-at, c-state-lit-beg)
(c-state-cache-non-literal-place, c-state-get-min-scan-pos)
(c-state-mark-point-min-literal, c-state-cache-top-lparen)
(c-state-cache-top-paren, c-state-cache-after-top-paren)
(c-get-cache-scan-pos, c-get-fallback-scan-pos)
(c-state-balance-parens-backwards, c-parse-state-get-strategy)
(c-renarrow-state-cache)
(c-append-lower-brace-pair-to-state-cache)
(c-state-push-any-brace-pair, c-append-to-state-cache)
(c-remove-stale-state-cache)
(c-remove-stale-state-cache-backwards, c-state-cache-init)
(c-invalidate-state-cache-1, c-parse-state-1)
(c-invalidate-state-cache): New defuns/defmacros/defsubsts.
(c-parse-state): Enhanced and refactored.
(c-debug-parse-state): Amended to deal with all the new
variables.
* cc-defs.el (c-<-as-paren-syntax, c-mark-<-as-paren)
(c->-as-paren-syntax, c-mark->-as-paren, c-unmark-<->-as-paren):
modify to use category text properties rather than syntax-table
ones.
(c-suppress-<->-as-parens, c-restore-<->-as-parens): new defsubsts
to switch off/on the syntactic paren property of C++ template
delimiters using the category property.
(c-with-<->-as-parens-suppressed): Macro to invoke code with
template delims suppressed.
(c-cpp-delimiter, c-set-cpp-delimiters, c-clear-cpp-delimiters):
New constant/macros which apply category properties to the start
and end of preprocessor constructs.
(c-comment-out-cpps, c-uncomment-out-cpps): defsubsts which
"comment out" the syntactic value of characters in preprocessor
constructs.
(c-with-cpps-commented-out)
(c-with-all-but-one-cpps-commented-out): Macros to invoke code
with characters in all or all but one preprocessor constructs
"commented out".
2009-11-23 Nathaniel Flath <[email protected]>
* cc-menus.el:
Updating cc-imenu-java-generic-expression in order to match Java1.6 methods with generics and annotations.
2009-09-25 Alan Mackenzie <[email protected]>
* cc-langs.el (c-nonlabel-token-key): Allow quoted character constants (as
case labels).
* cc-engine.el (c-beginning-of-statement-1): Correct buggy bracketing.
2009-09-24 Alan Mackenzie <[email protected]>
* cc-cmds.el (c-scan-conditionals):
A new function like c-forward-conditionals, but it
doesn't move point and doesn't set the mark.
(c-up-conditional, c-up-conditional-with-else, c-down-conditional)
(c-down-conditional-with-else, c-backward-conditional)
(c-forward-conditional): Refactor to use c-scan-conditionals.
* cc-bytecomp.el (cc-bytecomp-ignore-obsolete):
In Emacs 23, byte-compile-warnings isn't
always a list any more. Use new function byte-compile-disable-warning
here.
2009-08-26 Alan Mackenzie <[email protected]>
* admin/release.php:
Update and clarify the current status of the 5.31.n releases.
* cc-defs.el (c-version):
increment the version number to 5.31.8.prerelease.
2009-07-24 Alan Mackenzie <[email protected]>
* cc-mode.el, cc-mode.texi:
Whilst initialising a mode, make any explicit setting of a variable take
precedence over one done via c-file-style/c-file-offsets.
* cc-mode.el (c-before-hack-hook, c-postprocess-file-styles): give
c-set-style a DONT-OVERRIDE parameter of t in each function.
* cc-mode.texi (Config Basics, File Styles): Amend documentation.
2009-06-29 Alan Mackenzie <[email protected]>
* cc-cmds.el (c-mask-paragraph):
Remove a spurious correction between the visible
width of TABs and their number of bytes, so that point is undisturbed
after typing a space, when there are tabs just before "*/".
2009-06-10 Alan Mackenzie <[email protected]>
Introduce "font lock contexts", to enable (in particular) jit-lock to fontify
correctly when starting in the middle of a construct. Implement this for CPP
expressions.
* cc-langs.el (c-cpp-expr-intro-re): New variable.
* cc-fonts.el (c-guess-font-lock-context): New function.
(c-font-lock-context): New buffer local variable.
(c-make-font-lock-search-form): New function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case as above.
(c-font-lock-complex-decl-prepare): Call c-guess-font-lock-context.
2009-05-21 Alan Mackenzie <[email protected]>
* cc-langs.el (c-before-font-lock-function): Change the name of an entry
to c-extend-and-neutralize-syntax-in-CPP.
* cc-mode.el (c-basic-common-init): Set
font-lock-extend-after-change-region-function to
c-extend-after-change-region for Emacs 22 and later.
(c-before-hack-hook): Correct "hack-local-variables-alist" to
"file-local-variables-alist".
(c-extend-and-neutralize-syntax-in-CPP): Renamed from
c-neutralize-syntax-in-CPP; it now extends the font lock region by
setting c-new-BEG and c-new-END.
(c-font-lock-init): Remove initialization of obsolete variable
font-lock-lines-before.
(c-extend-after-change-region): New function.
(c-advise-fl-for-region): Generated code now extends f-l region for any
CC Mode, not just AWK Mode.
* cc-fonts.el, cc-engine.el:
Undo the last change, which was ill thought out, apart from the macro
c-search-forward-char-property and some enhancements to comments.
2009-05-18 Alan Mackenzie <[email protected]>
* cc-fonts.el (c-font-lock-invalid-cpp-string-matcher): New function.
(c-basic-matchers-before): New clause to fontify invalid strings in a CPP
construct.
* cc-engine.el: Update some commenting.
* cc-defs.el (c-search-forward-char-property): new macro.
2009-04-30 Alan Mackenzie <[email protected]>
Enhancements for Objective-C:
* cc-vars.el: (c-objc-method-arg-min-delta-to-bracket,
c-objc-method-arg-unfinished-offset, c-objc-method-parameter-offset): New
variables.
(c-offsets-alist): Use c-lineup-ObjC-method-call-colons in entry for
objc-method-call-cont.
* cc-langs.el: (c-constant-kwds): New ObjC keywords "YES", "NO",
"NS_DURING", "NS_HANDLER", "NS_ENDHANDLER".
* cc-align.el: (c-lineup-ObjC-method-call-colons): New function.
* cc-menus.el: (cc-imenu-objc-function): Remove calls of
imenu-progress-message.
2009-03-06 Alan Mackenzie <[email protected]>
* cc-defs.el, cc-engine.el, cc-fonts.el, cc-langs.el, cc-mode.texi, cc-vars.el:
Amend to indent and fontify macros "which include their own semicolon"
correctly, using the "virtual semicolon" mechanism.
* cc-defs.el: Update "virtual semicolon" comments.
* cc-engine.el (c-crosses-statement-barrier-p): Recoded to scan one line at
at time rather than having \n and \r explicitly in c-stmt-delim-chars
(for some modes, e.g. AWK).
(c-forward-label): Amend for virtual semicolons.
(c-at-macro-vsemi-p, c-macro-vsemi-status-unknown-p): New functions
* cc-fonts.el (c-font-lock-declarations): Take account of the new C macros.
* cc-langs.el (c-at-vsemi-p-fn, c-vsemi-status-unknown-p-fn): move to
earlier in the file.
(c-opt-cpp-symbol, c-line-comment-start-regexp): New language variables.
(c-opt-cpp-macro-define): Make into a full language variable.
(c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for
AWK Mode (including \n, \r) removed, no longer needed.
* cc-mode.el (c-mode, c++-mode, objc-mode): Invoke
c-make-macro-with-semi-re. (Erroneously committed early, in previous
version, 5.259.)
* cc-vars.el (c-macro-with-semi-re, c-macro-names-with-semicolon): New
variables.
(c-make-macro-with-semi-re): New function
* cc-mode.texi (Indentation Commands): Mention "macros with semicolons".
(Other Special Indentations): Add an xref to "Macros with ;".
(Customizing Macros): Add stuff about syntax in macros. Add an xref to
"Macros with ;".
(Macros with ;): New page.
2009-02-21 Alan Mackenzie <[email protected]>
* cc-engine.el, cc-langs.el:
Allow (compile time) expressions in case clauses.
* tests/switch-16.c, tests/switch-16.res: New file.
* tests/switch-16.c, tests/switch-16.res:
Test files for "case <expression>:".
2009-02-13 Alan Mackenzie <[email protected]>
* cc-cmds.el (c-defun-name): Widen, so it works on a narrowed region.
2009-02-08 Alan Mackenzie <[email protected]>
* cc-defs.el (c-emacs-features):
Check the working of beginning/end-of-defun-function
more rigorously before setting argumentative-bod-function.
2009-01-05 Alan Mackenzie <[email protected]>
* cc-styles.el (c-setup-paragraph-variables):
Ensure paragraph-\(start\|separate\) match
blank lines. For AWK Mode.
2008-11-07 Alan Mackenzie <[email protected]>
* tests/000tests.el (cc-test-extend-faces):
When two faces aren't distinct, display a
`message' rather than throwing an `error', a barely understood kludge to
allow interactive use of 000tests.el.