-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
2735 lines (1876 loc) · 89.9 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
2025-02-17 Ulrich Müller <ulm@gentoo.org>
* Version 1.78 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2025-01-28 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-find-s): Restrict scope of the inner
let-binding.
* ebuild-mode.el (ebuild-commands-list): Remove "depend" command.
2025-01-08 Ulrich Müller <ulm@gentoo.org>
* test/ebuild-mode-tests.el (ebuild-mode-test-get-builddir):
* test/devbook-mode-tests.el (devbook-mode-test-set-schema):
Replace anonymous no-op functions with stringp.
* test/ebuild-mode-tests.el (ebuild-mode-test-find-s): New test.
2024-12-26 Ulrich Müller <ulm@gentoo.org>
* Makefile (%.info): Call makeinfo with --no-split option.
* ebuild-mode.texi: Drop handwritten node pointers.
* ebuild-mode.el (ebuild-mode-unescape-string): Support \x.
(ebuild-mode-find-s): Use unibyte buffer for the environment file.
* test/ebuild-mode-tests.el (ebuild-mode-test-unescape-string):
Update.
2024-12-21 Ulrich Müller <ulm@gentoo.org>
* Version 1.77 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2024-12-16 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-arch-list)
(ebuild-mode-arch-stable-list, ebuild-mode-use-flags):
Call insert-file-contents with explicit coding-system-for-read
instead of insert-file-contents-literally.
* ebuild-mode.el (ebuild-repo-mode): Unconditionally set
buffer-file-coding-system to utf-8-unix.
(ebuild-mode-find-s): Allow in-place decoding of filename.
2024-12-13 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-repo-mode): Do not enable
bug-reference-prog-mode when bug-reference-bug-regexp or
bug-reference-url-format already exists as a local variable.
2024-12-07 Ulrich Müller <ulm@gentoo.org>
* devbook-mode.el (devbook-fill-tag-nobreak-p): New function.
(devbook-mode): Add it to fill-nobreak-predicate hook.
* test/devbook-mode-tests.el (devbook-mode-test-fill-nobreak-p):
New test.
2024-11-15 Ulrich Müller <ulm@gentoo.org>
* test/ebuild-mode-tests.el (ebuild-mode-test-skeleton):
* test/gentoo-newsitem-mode-tests.el
(gentoo-newsitem-test-skeleton): Override pos-visible-in-window-p
unconditionally.
2024-11-12 Ulrich Müller <ulm@gentoo.org>
* Version 1.76 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* devbook-mode.el (devbook-set-schema, devbook-insert-skeleton):
The document element has been renamed from guide to devbook.
* test/devbook-mode-tests.el (devbook-mode-test-skeleton): Update.
2024-11-11 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-bug-regexp): Allow a fragment
identifier, in order to refer to a specific comment.
* test/ebuild-mode-tests.el (ebuild-mode-test-bug-url): Update.
2024-11-06 Ulrich Müller <ulm@gentoo.org>
* devbook-mode.el (devbook-set-schema): Renamed from
devbook-locate-schema-file. Call rng-locate-schema-file first,
then fall back to parent directories.
(devbook-mode): Update caller.
* test/devbook-mode-tests.el (devbook-mode-test-set-schema):
Renamed from devbook-mode-test-locate-schema and updated.
* test/ebuild-mode-tests.el (ebuild-mode-test-skeleton):
* test/glep-mode-tests.el (glep-mode-test-skeleton):
* test/gentoo-newsitem-mode-tests.el
(gentoo-newsitem-test-skeleton):
* test/devbook-mode-tests.el (devbook-mode-test-skeleton):
Move variable and function for test input into the cl-letf* form
and delete them from global scope.
2024-11-03 Ulrich Müller <ulm@gentoo.org>
* test/xemacs-test-wrapper.el (ert-deftest): Silence info-level
warnings in XEmacs 21.5.
* ebuild-mode.el (ebuild-run-command-*): Doc fix.
* ebuild-mode.el (ebuild-mode-get-completion-function):
(ebuild-mode-get-keywords, ebuild-mode-unescape-string):
* test/ebuild-mode-tests.el (ebuild-mode-test-unescape-string):
Delete XEmacs 21.4 compatibility code.
* ebuild-mode.el (ebuild-mode-time-string): Delete compatibility
function for XEmacs 21.4.
(ebuild-mode-update-copyright, ebuild-mode-insert-skeleton)
(ebuild-mode-insert-tag-line): Update all callers.
* gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton):
* glep-mode.el (glep-mode-update-last-modified)
(glep-mode-insert-skeleton): Update all callers.
* test/ebuild-mode-tests.el
(ebuild-mode-test-run-with-fixed-time): Update macro.
(ebuild-mode-test-time-string): Delete test.
2024-10-23 Ulrich Müller <ulm@gentoo.org>
* devbook-mode.el (devbook-locate-schema-file): Be less verbose
if noninteractive.
* test/devbook-mode-tests.el (devbook-mode-test-locate-schema):
New test.
2024-10-14 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el:
* test/ebuild-mode-tests.el: Avoid e as variable name because some
Emacs versions define it as a global constant for Euler's number.
2024-10-12 Ulrich Müller <ulm@gentoo.org>
* devbook-mode.el (rng-loc): Require.
(devbook-schema-file-name): New variable.
(devbook-locate-schema-file): New function.
(devbook-mode): Call it unless we already have a schema.
* ebuild-mode.el (ebuild-mode-tabify): Do not let-bind
tabify-regexp because it is a special variable.
(ebuild-run-command): Ditto for shell-command.
* ebuild-mode.el:
* glep-mode.el:
* test/ebuild-mode-tests.el: Use unhyphenated names for lexical
variables throughout, in order not to accidentally override any
special variables.
2024-10-08 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-arch-stable-list): Don't fall back
to profiles.desc to determine whether an arch has stable keywords.
* Makefile (EMACSFLAGS): Use single hyphen for compatibility.
* ebuild-mode.el (ebuild-mode-collect-and-split): Preserve order.
(ebuild-mode-font-lock-keywords): Add docstring.
* test/ebuild-mode-tests.el (ebuild-mode-test-collect-and-split):
Update.
(ebuild-mode-test-font-lock-keywords): New test.
2024-10-05 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.texi (ebuild-repo-mode): Document the bug-reference
feature.
(devbook-mode): Add cross reference to the nXML Mode manual.
* ebuild-mode.el (ebuild-repo-mode): Don't set the bug-reference-*
variables if ebuild-mode-enable-bug-reference is nil. Test for
bug-reference-prog-mode at run time instead of compile time.
2024-09-30 Ulrich Müller <ulm@gentoo.org>
* gentoo-newsitem-mode.el (gentoo-newsitem-mode): Don't set
font-lock-defaults.
(gentoo-newsitem-add-font-lock): New function.
(gentoo-newsitem-mode-hook): Add it to the mode hook.
* test/gentoo-newsitem-mode-tests.el (gentoo-newsitem-test-input)
(gentoo-newsitem-test-font-lock, gentoo-newsitem-test-skeleton)
(gentoo-newsitem-test-keybindings): Shorten names.
* test/ebuild-mode-tests.el (ebuild-mode-test-run-with-fixed-time):
* test/glep-mode-tests.el (glep-mode-test-run-with-fixed-time):
Use func-arity to detect the calling convention for encode-time.
* test/ebuild-mode-tests.el (cl-letf, cl-letf*): Enclose their
definition in eval-when-compile.
(ebuild-mode-test-font-lock): Call font-lock-fontify-region
instead of font-lock-fontify-buffer. This is silent and also
avoids the noninteractive trickery.
* test/gentoo-newsitem-mode-tests.el (cl-letf, cl-letf*)
(gentoo-newsitem-mode-test-font-lock): Ditto.
(gentoo-newsitem-mode-test-run-silently): Remove.
* test/ebuild-mode-tests.el (ebuild-mode-test-skeleton):
Remove unnecessary ebuild-mode-test-run-silently.
* test/gentoo-newsitem-mode-tests.el
(gentoo-newsitem-mode-test-skeleton): Remove unnecessary
gentoo-newsitem-mode-test-run-silently.
2024-09-28 Ulrich Müller <ulm@gentoo.org>
* test/ebuild-mode-tests.el:
* test/gentoo-newsitem-mode-tests.el: Drop redundant XEmacs
conditionals.
* test/xemacs-test-wrapper.el (skip-unless): New function.
(test-skipped): New error symbol.
(ert-deftest): Handle it.
* ebuild-mode.el (ebuild-mode-enable-bug-reference):
New custom variable.
(ebuild-mode-bug-regexp, ebuild-mode-bug-url-format):
New variables.
(ebuild-repo-mode): Conditionally enable bug-reference-prog-mode.
* test/ebuild-mode-tests.el (ebuild-mode-test-bug-url): New test.
* ebuild-mode.el (ebuild-repo-mode): Define the nxml-* variables
instead of requiring nxml-mode at compile time.
2024-09-25 Ulrich Müller <ulm@gentoo.org>
* keyword-generation.sh (OBSOLETE): Update.
* test/ebuild-mode-tests.el (ebuild-mode-test-time-string):
Run with fixed time.
* ebuild-mode.el (ebuild-mode-arch-list): Remove ia64.
2024-09-10 Ulrich Müller <ulm@gentoo.org>
* test/ebuild-mode-tests.el (ebuild-mode-test-update-copyright):
Actually run ebuild-mode-update-copyright.
2024-08-29 Ulrich Müller <ulm@gentoo.org>
* Version 1.75 released.
* test/ebuild-mode-tests.el (ebuild-mode-test-run-with-fixed-time):
* test/glep-mode-tests.el (glep-mode-test-run-with-fixed-time):
Use encode-time instead of date-to-time. Bug 938666.
2024-08-28 Ulrich Müller <ulm@gentoo.org>
* Version 1.74 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2024-08-26 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-eapi-list): Drop 6 from list of
supported EAPIs.
* test/ebuild-mode-tests.el (ebuild-mode-test-input): New variable
and function.
(ebuild-mode-test-skeleton, ebuild-mode-test-keybindings):
New tests.
* test/glep-mode-tests.el (glep-mode-test-input): New variable and
function.
(glep-mode-test-skeleton, glep-mode-test-keybindings): New tests.
* test/gentoo-newsitem-mode-tests.el:
* test/devbook-mode-tests.el: New files.
* Makefile (DISTFILES, TESTS): Add them.
* test/xemacs-test-wrapper.el (kill-emacs): Return a useful exit
status.
2024-08-22 Ulrich Müller <ulm@gentoo.org>
* test/ebuild-mode-tests.el (cl-letf, cl-letf*)
(ebuild-mode-test-run-with-fixed-time)
(ebuild-mode-test-run-silently, ebuild-mode-test-font-lock)
(ebuild-mode-test-unescape-string): Portability fixes for XEmacs.
* test/glep-mode-tests.el (glep-mode-test-run-with-fixed-time):
Sync from ebuild-mode-test-run-with-fixed-time.
* test/xemacs-test-wrapper.el: New file.
* Makefile (DISTFILES): Add xemacs-test-wrapper.el.
(ELCS, TESTS): Include only files that are actually supported by
the Emacs version.
(check): Make it work with XEmacs.
* ebuild-mode.el (ebuild-repo-mode): Activate the menu in XEmacs.
Use positive condition for feature.
* ebuild-mode.el (ebuild-mode-menu): Drop :active keyword because
the three-element vector form of menu items is more portable.
(ebuild-repo-mode-menu): Rename menu bar item to "Ebuild-Repo".
Replace :visible keyword by :included; XEmacs 21.4 doesn't know
the former.
* ebuild-mode.el (ebuild-mode-update-copyright): Save match data,
replace-match in XEmacs 21.4 clobbers it.
2024-08-20 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-arch-stable-list): Use push.
* ebuild-mode.el (ebuild-mode-collect-and-split): Don't copy the
element when creating a cons cell is enough.
* test/ebuild-mode-tests.el (ebuild-mode-test-collect-and-split):
Update.
2024-08-19 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el:
* ebuild-mode-keywords.el:
* gentoo-newsitem-mode.el:
* glep-mode.el:
* devbook-mode.el: Doc fixes.
* ebuild-mode.el (ebuild-run-command-*): Run the "clean" command
when a prefix argument is given.
* ebuild-mode.texi (ebuild-mode): Document it.
* ebuild-mode.el (ebuild-mode-find-image-dir): New function.
(ebuild-mode-prefix-map, ebuild-mode-menu): Keybinding and
menu entry.
* ebuild-mode.texi (ebuild-mode): Document it.
2024-08-16 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-run-command-*): Define functions
for ebuild subcommands.
(ebuild-mode-prefix-map): New variable, keymap for ebuild-mode
commands. Define C-c C-e <letter> keys for the most common ebuild
subcommands.
(ebuild-mode-map): Use the new keymap.
(ebuild-mode-menu): Use ebuild-run-command-* functions in menu
items; for the previously used expressions, easy-menu-define would
create internal functions anyway. Don't sort ebuild-commands-list
because it already is in alphabetical order.
* ebuild-mode.texi (ebuild-mode): Update.
* ebuild-mode.el (ebuild-commands-list): Add "instprep" and
"nofetch" commands.
2024-08-15 Ulrich Müller <ulm@gentoo.org>
* Version 1.73 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* keyword-generation.sh (OBSOLETE): Update.
* Makefile (DISTFILES): Add Makefile.
2024-08-10 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-find-build-log): New function.
(ebuild-mode-map, ebuild-mode-menu): Keybinding and menu entry.
* ebuild-mode.texi (ebuild-mode): Document it.
* test/ebuild-mode-tests.el
(ebuild-mode-test-run-with-fixed-time): New macro.
(ebuild-mode-test-update-copyright)
(ebuild-mode-test-insert-tag-line): Use it.
* test/glep-mode-tests.el
(glep-mode-test-run-with-fixed-time): New macro.
(glep-mode-test-update-last-modified): Use it.
* ebuild-mode.el (find-file-hook): Use 'if' because 'static-if'
breaks autoloads.
2024-08-08 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-insert-tag-line): Don't insert
another space when comment-start ends with a space or tab.
* test/ebuild-mode-tests.el:
* test/glep-mode-tests.el: New files, introducing tests.
* ebuild-mode.el (ebuild-mode-collect-and-split): Make it visible
at load time for tests.
* Makefile (TESTS, BYTECOMPFLAGS): New variables.
(check): New target.
2024-08-07 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-unescape-string): New function,
decodes backslash and ANSI-C escape sequences in strings.
(ebuild-mode-find-s): Call it.
* ebuild-mode.el (ebuild-mode-get-builddir): New function, split
off from ebuild-mode-find-workdir.
(ebuild-mode-find-s): New function.
(ebuild-mode-map, ebuild-mode-menu): Keybinding and menu entry.
* ebuild-mode.texi (ebuild-mode): Document ebuild-mode-find-s.
* ebuild-mode.el (ebuild-mode-find-workdir): Let-bind
find-file-run-dired to t.
2024-08-05 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-map): Keybindings now use C-c C-e
as their prefix.
* ebuild-mode.texi (ebuild-mode): Document the new keybindings.
* ebuild-mode.el (ebuild-mode, ebuild-run-command)
(ebuild-mode-get-completion-function, ebuild-mode-run-pkgdev)
(ebuild-mode-run-pkgcheck, ebuild-repo-mode, find-file-hook):
Use static-if.
2024-07-03 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-time-string): Use static-if.
* ebuild-mode.el (ebuild-mode-update-copyright): Replace nested
ifs with cond.
2024-06-29 Ulrich Müller <ulm@gentoo.org>
* Version 1.72 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* glep-mode.el (glep-mode-insert-skeleton): Update from GLEP 2,
specify that all dates must be in UTC.
2024-06-26 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-find-workdir): Display a separate
error message when the file is not an ebuild.
* ebuild-mode.el (ebuild-mode-menu): Deactivate entries that are
not useful in ebuild-eclass-mode.
* ebuild-mode.el (ebuild-mode-fix-whitespace): Default to ebuild.
2024-06-25 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-fix-whitespace): Add new choice
'ebuild'.
(ebuild-repo-mode-before-save): Make fixing of whitespace in
eclasses conditional on it.
* ebuild-mode.el (ebuild-eclass-mode): New major mode for editing
of eclasses, split off from ebuild-mode.
(auto-mode-alist): Add ebuild-eclass-mode.
* ebuild-mode.texi (ebuild-eclass-mode): Chapter renamed from
eclass-mode and updated.
2024-06-09 Ulrich Müller <ulm@gentoo.org>
* Version 1.71 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2024-01-08 Ulrich Müller <ulm@gentoo.org>
* Version 1.70 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* keyword-generation.sh: Create only the bare list of keywords,
without the variable definition.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Move the begin and end marker comments into the defvar.
2023-11-29 Ulrich Müller <ulm@gentoo.org>
* glep-mode.el (glep-mode-add-font-lock): Specify faces directly
instead of using variables.
* ebuild-mode-keywords.el (ebuild-mode-keywords-0):
Use font-lock-builtin-face for package manager commands.
2023-11-05 Ulrich Müller <ulm@gentoo.org>
* Version 1.69 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* glep-mode.el: Doc fixes.
2023-10-15 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el:
* gentoo-newsitem-mode.el:
* glep-mode.el:
* devbook-mode.el: Sharp-quote all function names.
* ebuild-mode.el (ebuild-repo-mode-menu):
* gentoo-newsitem-mode.el (gentoo-newsitem-mode-menu):
* glep-mode.el (glep-mode-menu):
* devbook-mode.el (devbook-mode-menu): Backquote is not needed.
* ebuild-mode.el (ebuild-mode-time-string): Move setting of TZ
into the unwind-protect form.
* ebuild-mode.el (static-if): New macro, taken from APEL.
(sh-must-be-shell-mode): Use it. This should finally fix the
byte-compile warning for defadvice in Emacs 30.
* glep-mode.el (glep): Change parent group to text, because the wp
group is deprecated since Emacs 26.
* gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton):
* glep-mode.el (glep-mode-insert-skeleton): Drop local require
for ebuild-mode, as it is required globally.
2023-10-06 Ulrich Müller <ulm@gentoo.org>
* Version 1.68 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* ebuild-mode.el (ebuild-mode-add-font-lock): New function.
(ebuild-mode-hook): Add it, instead of an anonymous function.
* glep-mode.el (glep-mode-add-font-lock, glep-mode-hook): Ditto.
2023-09-25 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.texi (ebuild-mode): Document the
ebuild-mode-find-workdir command and its keybinding.
(ebuild-repo-mode): Document ebuild-mode-xml-indent-tabs.
2023-09-20 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-tag-line-regexp): New variable.
(ebuild-repo-mode): Set paragraph-separate when in conf-unix-mode.
2023-09-16 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-time-string): Test if
format-time-string can accept three arguments.
* ebuild-mode.el (sh-must-be-shell-mode): Test if the function is
defined at compile time. This should only be the case for Emacs
versions where defadvice is unobsolete.
* glep-mode.el (rst-classify-adornment)
(glep-mode-ignore-preamble): Use :before-while instead of :around
as advice combinator.
2023-09-12 Ulrich Müller <ulm@gentoo.org>
* Version 1.67 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2023-09-04 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-insert-tag-line): Make it work when
comment-start is nil or empty.
2023-09-01 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-insert-skeleton): Add S and BDEPEND.
Bug 729280.
2023-08-29 Ulrich Müller <ulm@gentoo.org>
* Version 1.66 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2023-08-26 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode): Set paragraph-separate for
eclasses, in order to prevent rewrapping of paragraphs into a
preceding eclass documentation token.
2023-08-24 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el:
* ebuild-mode-keywords.el:
* gentoo-newsitem-mode.el:
* glep-mode.el:
* devbook-mode.el: Enable lexical binding.
* ebuild-mode.el (ebuild-run-command, ebuild-mode-run-pkgdev)
(ebuild-mode-run-pkgcheck): Add underscore to name of unused
function argument.
* ebuild-mode.el (ebuild-mode-process-environment): No longer set
NOCOLOR, because NO_COLOR is supported by stable Portage.
* ebuild-mode.el (ebuild-mode): Refer to sh-mode directly,
instead of shell-script-mode which is its alias.
(sh-must-be-shell-mode): Test for its existence, rather than
testing emacs-major-version. Simply redefine the function,
in order to avoid obsolete defadvice and non-portable advice-add.
This fixes a byte-compile warning in Emacs 30 while keeping
compatibility with XEmacs.
* glep-mode.el (rst-classify-adornment, glep-ignore-preamble):
Port from defadvice to advice-add.
* glep-mode.el (glep-mode-format-html): Move docstring to the top.
2023-08-20 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-delete-trailing-whitespace):
New function. This avoids redefining delete-trailing-whitespace.
(ebuild-repo-mode-before-save): Update caller.
2023-08-01 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2023-07-06 Ulrich Müller <ulm@gentoo.org>
* Version 1.65 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2023-07-05 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-repo-mode): local-variable-p has two
required arguments in XEmacs, bug 903273.
2023-06-17 Ulrich Müller <ulm@gentoo.org>
* Version 1.64 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* Makefile (ELCS, INFOFILES, EMACS, EMACSFLAGS): New variables.
(.PHONY): Add keywords target.
(all): Build ELCS and INFOFILES by default.
(%.elc, %.info): New rules.
(clean): Add *.elc.
2023-06-15 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-put-keywords): Do not modify the
buffer unless there is an actual change.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclassdoc):
Renamed from ebuild-mode-keywords-eclass-documentation.
* ebuild-mode.el (ebuild-mode-font-lock-keywords): Update.
2023-05-13 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode-keywords.el (ebuild-mode-keywords-eapi-deprecated):
Add remaining prep* commands and portageq.
2023-03-28 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-squash-empty-lines): New function.
(ebuild-repo-mode-before-save): Call it.
2023-03-26 Ulrich Müller <ulm@gentoo.org>
* Version 1.63 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2023-03-24 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-repo-mode): Don't override variables if
they already have a buffer-local binding.
2023-03-20 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-find-workdir): New function.
Thanks to Pascal Jäger for the idea.
(ebuild-mode-portage-tmpdir): New custom variable.
(ebuild-mode-map, ebuild-mode-menu): Keybinding and menu entry.
2023-02-28 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-process-environment): Set NO_COLOR
in addition, see https://no-color.org/. Drop redundant test for
XEmacs.
2023-02-27 Ulrich Müller <ulm@gentoo.org>
* Version 1.62 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
2023-02-21 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-update-copyright): Call lwarn with
nil as second argument, which works for both GNU Emacs and XEmacs.
* ebuild-mode.el (ebuild-repo-mode): Check if coding system
utf-8-unix exists; it doesn't in XEmacs 21.4.
* gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton): Call
ebuild-mode-time-string, so that the date is in the UTC time zone.
* glep-mode.el (glep-mode-update-last-modified)
(glep-mode-insert-skeleton): Ditto.
* ebuild-mode.el (ebuild-mode-time-string): New compatibility
function for format-time-string, where XEmacs doesn't support the
time zone argument. Bug 890933.
(ebuild-mode-update-copyright, ebuild-mode-insert-skeleton)
(ebuild-mode-insert-tag-line): Call it.
(ebuild-mode-update-copyright): Save match data, because setenv
clobbers it.
2022-12-01 Ulrich Müller <ulm@gentoo.org>
* Version 1.61 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* ebuild-mode.el: Add documentation to some functions and
variables.
(ebuild-compilation-mode): Reword docstring to avoid an open paren
at the beginning of a line, which confuses some Emacs versions.
* ebuild-mode.el (ebuild-mode-restrict-list): Update.
2022-11-30 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.texi (ebuild-mode): Document ebuild-mode-run-pkgdev
and ebuild-mode-run-pkgcheck.
* ebuild-mode.el (ebuild-compilation-mode): New mode for
compilation buffers, filters SGR control sequences.
(ebuild-log-buffer-mode): Default to it.
(ebuild-mode-run-pkgdev, ebuild-mode-run-pkgcheck): Call compile
with ebuild-log-buffer-mode.
(ebuild-mode-process-environment): Don't set NOCOLOR if ansi-color
is available.
2022-11-28 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-ebuild-history)
(ebuild-mode-pkgdev-history, ebuild-mode-pkgcheck-history):
New variables.
(ebuild-run-command, ebuild-mode-run-pkgdev)
(ebuild-mode-run-pkgcheck): Use them.
* ebuild-mode.el (ebuild-mode-process-environment): New custom
variable. Bug 882055.
(ebuild-run-command, ebuild-mode-run-pkgdev)
(ebuild-mode-run-pkgcheck): Use it.
* ebuild-mode.el (ebuild-mode-ebuild-cmd-complete): New function,
completes multiple ebuild commands. Bug 882053.
(ebuild-run-command): Call it.
(ebuild-mode-menu): Add ebuild-run-command without argument.
2022-11-19 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-run-pkgdev)
(ebuild-mode-run-pkgcheck): New commands. Bug 881449.
(ebuild-mode-map, ebuild-mode-menu): Keybindings and menu entries
for them.
(ebuild-mode-pkgdev-commands, ebuild-mode-pkgcheck-commands):
New variables.
(ebuild-mode-get-completion-function): New function, split off
from ebuild-mode-ekeyword-complete.
(ebuild-mode-ekeyword-complete): Call it.
(ebuild-mode-command-complete): New function.
2022-11-18 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-repo-mode): Fix byte-compile warning
in XEmacs.
* ebuild-mode.el (ebuild-mode-collect-and-split): Renamed from
ebuild-mode-collect-equal-cdrs. Split the car of an element if its
length is above the limit.
(ebuild-mode-font-lock-keywords): Split the list of eclass
keywords here, rather than in keyword-generation.sh.
* keyword-generation.sh: Don't split the list into parts.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass): Updated.
2022-07-31 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-insert-skeleton): Drop unnecessary
backslash escapes.
* ebuild-mode.el (ebuild-repo-mode): Set nxml-attribute-indent.
2022-06-05 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-repo-mode): Indent XML with tabs or two
spaces. Set indent-tabs-mode accordingly.
(ebuild-mode-xml-indent-tabs): New custom variable.
2022-06-03 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-arch-list): Add loong to default.
* ebuild-mode.el (ebuild-mode-modify-keywords): Use cons rather
than append when adding a new keyword.
2022-05-21 Ulrich Müller <ulm@gentoo.org>
* Version 1.60 released.
* devbook-mode.el (devbook-insert-skeleton): Rework logic for
guide element.
* ebuild-mode.el (ebuild-run-command): Signal an error when not
visiting a file.
* glep-mode.el (glep-mode-format-html): Ditto.
2022-05-20 Ulrich Müller <ulm@gentoo.org>
* Version 1.59 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
* ebuild-mode.el (ebuild-mode, ebuild-repo-mode-maybe-enable):
Protect against buffer-file-name being nil. Bug 846569.
2022-05-10 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclassdoc-warn):
New variable.
(ebuild-mode-keywords-eclass-documentation): Move @DEAD and
@DEPRECATED keywords to it.
* ebuild-mode.el (ebuild-mode-font-lock-keywords): Use it.
2022-05-08 Ulrich Müller <ulm@gentoo.org>
* devbook-mode.el: Drop unknown package keyword "XML".
(devbook-mode-menu): Quote lisp symbol in docstring.
* gentoo-newsitem-mode.el (gentoo-newsitem-mode-menu): Ditto.
* glep-mode.el (rst-classify-adornment, glep-mode-menu): Ditto.
2022-05-07 Ulrich Müller <ulm@gentoo.org>
* Version 1.58 released.
* glep-mode.el (glep-mode-insert-skeleton): Update URL in comment.
* ebuild-mode.el (ebuild-mode-get-keywords): Restore trivial
compatibility code, allowing continued support for XEmacs 21.4.
This reverts the change of 2022-04-28.
* ebuild-mode-keywords.el (ebuild-mode-keywords): Provide feature.
* ebuild-mode.el (ebuild-mode-keywords): Require it.
* ebuild-mode.el (ebuild-mode-collect-equal-cdrs): Evaluate with
eval-when-compile instead of eval-and-compile.
2022-05-03 Ulrich Müller <ulm@gentoo.org>
* keyword-generation.sh: Use ebuild-mode-keywords-eclass as a
single variable for all eclass keywords.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass):
Regenerated.
(ebuild-mode-keywords-eapi4, ebuild-mode-keywords-eapi5)
(ebuild-mode-keywords-eapi6, ebuild-mode-keywords-eapi7)
(ebuild-mode-keywords-functions-default): Remove variables.
(ebuild-mode-keywords-0): Include their keywords here.
(ebuild-mode-keywords-functions-eapi2)
(ebuild-mode-keywords-functions-eapi4): Remove variables.
(ebuild-mode-keywords-functions): Include their keywords here.
* ebuild-mode.el (ebuild-mode-font-lock-keywords): List variables
explicitly, instead of collecting their names from the obarray.
* ebuild-mode-keywords.el (ebuild-mode-keywords-0):
Add EXPORT_FUNCTIONS which was missing.
* ebuild-mode-keywords.el (ebuild-mode-keywords-warn): Drop some
obsolete keywords. Update URL in comment.
(ebuild-mode-keywords-eclass-deprecated): Remove variable.
All these functions are long gone.
2022-05-01 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-make-keywords-list): Remove.
(ebuild-mode-font-lock-keywords): Inline its code.
* ebuild-mode.el (ebuild-repo-mode, find-file-hook): Use ' rather
than #' for quoting of function names.
* glep-mode.el (glep-mode): Ditto.
2022-04-30 Ulrich Müller <ulm@gentoo.org>
* Version 1.57 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-*): Regenerated.
* ebuild-mode.el (ebuild-mode-make-keywords-list): Drop more
compatibility code. regexp-opt of recent Emacs versions deletes
duplicates and increases the max-specpdl-size limit by itself.
2022-04-28 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-make-keywords-list): Use prefix and
suffix to override the defaults, instead of concatenating to them.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass-documentation):
Override comment highlighting. Match only at the beginning of a
comment line.
* ebuild-mode.el (ebuild-mode-make-keywords-list)
(ebuild-mode-get-keywords): Remove XEmacs 21.4 compatibility code.
2022-04-27 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode): Set sentence-end-double-space to t
when editing eclasses.
2022-03-18 Ulrich Müller <ulm@gentoo.org>
* Version 1.56 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-*): Regenerated.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass-documentation):
Keyword @ECLASS-VARIABLE renamed to @ECLASS_VARIABLE.
2022-01-26 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-menu, ebuild-repo-mode-menu):
Add entry for customize-group.
2022-01-16 Ulrich Müller <ulm@gentoo.org>
* Version 1.55 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-*): Regenerated.
* ebuild-mode.el (ebuild-mode-eapi-list): Drop EAPI 5.
* gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton):
Use ebuild-mode-full-name and ebuild-mode-mail-address as default
author information.
* glep-mode.el (glep-mode-insert-skeleton): Ditto.
* ebuild-mode.texi (ebuild-repo-mode): Document it.
* ebuild-mode.texi (ebuild-mode): No longer mention the C-c C-a
keybinding which was used for echangelog.
2022-01-09 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-insert-tag-line): New function,
inserts a tag line with user's name and date stamp, for use in
package.mask and similar configuration files. Bug 830796.
(ebuild-mode-full-name, ebuild-mode-mail-address): New custom
variables.
(ebuild-repo-mode): Add :keymap argument.
(ebuild-repo-mode-map): New keymap.
(ebuild-repo-mode-menu): New menu.
* ebuild-mode.el (ebuild-repo-mode-maybe-enable)
(ebuild-mode-menu): Quote lisp symbols in docstrings.
2021-12-28 Ulrich Müller <ulm@gentoo.org>
* Version 1.54 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-*): Regenerated.
2021-12-20 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-repo-mode): Use same fill-column and
tab-width as ebuild-mode.
2021-09-01 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass-documentation):
New keyword @PROVIDES.
2021-07-12 Ulrich Müller <ulm@gentoo.org>
* Version 1.53 released.
* ebuild-mode-keywords.el (ebuild-mode-keywords-*): Regenerated.
2021-07-08 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-log-buffer-mode): New variable.
(ebuild-run-command): Use it.
2021-07-05 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-eapi-list): Add EAPI 8.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eapi-deprecated)
(ebuild-mode-keywords-0): hasv is banned.
* ebuild-mode-keywords.el (ebuild-mode-keywords-eclass-documentation):
New keywords @DEPRECATED and @SUBSECTION.
2021-04-07 Ulrich Müller <ulm@gentoo.org>