]> code.delx.au - gnu-emacs/blob - admin/authors.el
Merge branch 'master' into cairo
[gnu-emacs] / admin / authors.el
1 ;;; authors.el --- utility for maintaining Emacs's AUTHORS file -*-coding: utf-8 -*-
2
3 ;; Copyright (C) 2000-2015 Free Software Foundation, Inc.
4
5 ;; Author: Gerd Moellmann <gerd@gnu.org>
6 ;; Maintainer: Kim F. Storm <storm@cua.dk>
7 ;; Keywords: maint
8 ;; Package: emacs
9
10 ;; This file is part of GNU Emacs.
11
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
16
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24
25 ;;; Commentary:
26
27 ;; Use M-x authors RET to create an *Authors* buffer that can used as
28 ;; or merged with Emacs's AUTHORS file.
29
30 ;;; Code:
31
32 (defvar authors-coding-system 'utf-8
33 "Coding system used in the AUTHORS file.")
34
35 (defconst authors-many-files 20
36 "Maximum number of files for which to print individual information.
37 If an author has modified more files, only the names of the most
38 frequently modified files are printed and a count of the additional
39 files.")
40
41 (defconst authors-aliases
42 '(
43 (nil "A\\. N\\. Other") ; unknown author 2014-12-03, later removed
44 ("Aaron S. Hawley" "Aaron Hawley")
45 ("Alexandru Harsanyi" "Alex Harsanyi")
46 ("Andrew Csillag" "Drew Csillag")
47 ("Anna M. Bigatti" "Anna Bigatti")
48 ("Barry A. Warsaw" "Barry A. Warsaw, Century Computing, Inc."
49 "Barry A. Warsaw, ITB" "Barry Warsaw")
50 ("Bill Carpenter" "WJ Carpenter")
51 ("Bill Mann" "William F. Mann")
52 ("Bill Rozas" "Guillermo J. Rozas")
53 ("Björn Torkelsson" "Bjorn Torkelsson")
54 ("Brian Fox" "Brian J. Fox")
55 ("Brian P Templeton" "BT Templeton")
56 ("Brian Sniffen" "Brian T. Sniffen")
57 ("David Abrahams" "Dave Abrahams")
58 ("David J. Biesack" "David Biesack")
59 ("David De La Harpe Golden" "David Golden")
60 ("David Gillespie" "Dave Gillespie")
61 ("David Kågedal" "David K..edal")
62 ("David M. Koppelman" "David Koppelman")
63 ("David M. Smith" "David Smith" "David M Smith")
64 ("David O'Toole" "David T. O'Toole")
65 ("Deepak Goel" "D. Goel")
66 ("Ed L. Cashin" "Ed L Cashin")
67 ("Edward M. Reingold" "Ed\\(ward\\( M\\)?\\)? Reingold" "Reingold Edward M")
68 ("Emilio C. Lopes" "Emilio Lopes")
69 ("Eric M. Ludlam" "Eric Ludlam")
70 ("Eric S. Raymond" "Eric Raymond")
71 ("Fabián Ezequiel Gallina" "Fabian Ezequiel Gallina" "Fabi.n E\\. Gallina")
72 ("Francis J. Wright" "Dr Francis J. Wright" "Francis Wright")
73 ("François Pinard" "Francois Pinard")
74 ("Francesco Potortì" "Francesco Potorti" "Francesco Potorti`")
75 ("Frederic Pierresteguy" "Fred Pierresteguy")
76 ("Gerd Möllmann" "Gerd Moellmann")
77 ("Hallvard B. Furuseth" "Hallvard B Furuseth" "Hallvard Furuseth")
78 ("Hrvoje Nikšić" "Hrvoje Niksic")
79 ;; lisp/org/ChangeLog 2010-11-11.
80 (nil "aaa bbb")
81 (nil "Code Extracted") ; lisp/newcomment.el's "Author:" header
82 ("Jaeyoun Chung" "Jae-youn Chung" "Jae-you Chung" "Chung Jae-youn")
83 ("Jan Djärv" "Jan D." "Jan Djarv")
84 ("Jay K. Adams" "Jay Adams")
85 ("Jérôme Marant" "Jérôme Marant" "Jerome Marant")
86 ("Jens-Ulrik Holger Petersen" "Jens-Ulrik Petersen")
87 ("Jeremy Bertram Maitin-Shepard" "Jeremy Maitin-Shepard")
88 ("Johan Bockgård" "Johan Bockgard")
89 ("John F. Carr" "John F Carr")
90 ("John J Foerch" "John Foerch")
91 ("John W. Eaton" "John Eaton")
92 ("Jonathan I. Kamens" "Jonathan Kamens")
93 ("Jorgen Schäfer" "Jorgen Schaefer")
94 ("Joseph Arceneaux" "Joe Arceneaux")
95 ("Joseph M. Kelsey" "Joe Kelsey") ; FIXME ?
96 ("Juan León Lahoz García" "Juan-Leon Lahoz Garcia")
97 ("Jürgen Hötzel" "Juergen Hoetzel")
98 ("K. Shane Hartman" "Shane Hartman")
99 ("Kai Großjohann" "Kai Grossjohann")
100 ("Karl Berry" "K. Berry")
101 ("Károly Lőrentey" "Károly Lőrentey" "Lőrentey Károly")
102 ("Kazushi Marukawa" "Kazushi (Jam) Marukawa")
103 ("Ken Manheimer" "Kenneth Manheimer")
104 ("Kenichi Handa" "Ken'ichi Handa" "Kenichi HANDA" "K\\. Handa")
105 ("Kevin Greiner" "Kevin J. Greiner")
106 ("Kim F. Storm" "Kim Storm")
107 ("Kyle Jones" "Kyle E. Jones")
108 ("Lars Magne Ingebrigtsen" "Lars Ingebrigtsen")
109 ("Marcus G. Daniels" "Marcus Daniels")
110 ("Mark D. Baushke" "Mark D Baushke")
111 ("Mark E. Shoulson" "Mark Shoulson")
112 ("Marko Kohtala" "Kohtala Marko")
113 ("Agustín Martín" "Agustin Martin" "Agustín Martín Domingo")
114 ("Martin Lorentzon" "Martin Lorentzson")
115 ("Matt Swift" "Matthew Swift")
116 ("Maxime Edouard Robert Froumentin" "Max Froumentin")
117 ("Michael R. Mauger" "Michael Mauger")
118 ("Michael D. Ernst" "Michael Ernst")
119 ("Michaël Cadilhac" "Michael Cadilhac")
120 ("Michael I. Bushnell" "Michael I Bushnell" "Michael I. Bushnell, p/BSG")
121 ("Michael R. Cook" "Michael Cook")
122 ("Michael Sperber" "Michael Sperber \\[Mr. Preprocessor\\]")
123 ("Mikio Nakajima" "Nakajima Mikio")
124 ("Nelson Jose dos Santos Ferreira" "Nelson Ferreira")
125 ("Noorul Islam" "Noorul Islam K M")
126 ;;; ("Tetsurou Okazaki" "OKAZAKI Tetsurou") ; FIXME?
127 ("Paul Eggert" "Paul R\\. Eggert")
128 ("Pavel Janík" "Pavel Janík Ml." "Pavel Janik Ml." "Pavel Janik")
129 ("Pavel Kobiakov" "Pavel Kobyakov")
130 ("Per Abrahamsen" "Per Abhiddenware")
131 ("Per Starbäck" "Per Starback")
132 ("Peter J. Weisberg" "PJ Weisberg")
133 ("Peter S. Galbraith" "Peter S Galbraith" "Peter Galbraith")
134 ("Peter Runestig" "Peter 'luna' Runestig")
135 ("Piotr Zieliński" "Piotr Zielinski")
136 ("Rainer Schöpf" "Rainer Schoepf")
137 ("Raja R. Harinath" "Raja R Harinath")
138 ("Richard G. Bielawski" "Richard G Bielawski" "Richard Bielawski")
139 ("Richard King" "Dick King")
140 ("Richard M. Stallman" "Richard Stallman" "rms@gnu.org")
141 ("Robert J. Chassell" "Bob Chassell")
142 ("Roberto Huelga Díaz" "Roberto Huelga")
143 ("Roland B. Roberts" "Roland B Roberts" "Roland Roberts")
144 ("Rui-Tao Dong" "Rui-Tao Dong ~{6-HpLN~}")
145 ("Sacha Chua" "Sandra Jean Chua")
146 ("Sam Steingold" "Sam Shteingold")
147 ("Satyaki Das" "Indexed search by Satyaki Das")
148 ("Sébastien Vauban" "Sebastien Vauban")
149 ("Sergey Litvinov" "Litvinov Sergey")
150 ;; There are other Stefans.
151 ;;; ("Stefan Monnier" "Stefan")
152 ("Steven L. Baur" "SL Baur" "Steven L Baur")
153 ("Stewart M. Clamen" "Stewart Clamen")
154 ("Stuart D. Herring" "Stuart Herring" "Davis Herring")
155 ("T.V. Raman" "T\\. V\\. Raman")
156 ("Taichi Kawabata" "KAWABATA,? Taichi")
157 ("Takaaki Ota" "Tak Ota")
158 ("Takahashi Naoto" "Naoto Takahashi")
159 ("Teodor Zlatanov" "Ted Zlatanov")
160 ("Thomas Dye" "Tom Dye")
161 ("Thomas Horsley" "Tom Horsley") ; FIXME ?
162 ("Thomas Wurgler" "Tom Wurgler")
163 ("Toby Cubitt" "Toby S\\. Cubitt")
164 ("Tomohiko Morioka" "MORIOKA Tomohiko")
165 ("Torbjörn Axelsson" "Torbjvrn Axelsson")
166 ("Torbjörn Einarsson" "Torbj.*rn Einarsson")
167 ("Toru Tomabechi" "Toru TOMABECHI")
168 ("Tsugutomo Enami" "enami tsugutomo")
169 ("Ulrich Müller" "Ulrich Mueller")
170 ("Vincent Del Vecchio" "Vince Del Vecchio")
171 ("William M. Perry" "Bill Perry")
172 ("Wlodzimierz Bzyl" "W.*dek Bzyl")
173 ("Yoni Rabkin" "Yoni Rabkin Katzenell")
174 ("Yoshinori Koseki" "KOSEKI Yoshinori" "小関 吉則")
175 ("Yutaka NIIBE" "NIIBE Yutaka")
176 )
177 "Alist of author aliases.
178
179 Each entry is of the form (REALNAME REGEXP...). If an author's name
180 matches one of the REGEXPs, use REALNAME instead.
181 If REALNAME is nil, ignore that author.")
182
183 ;; FIXME seems it would be less fragile to check for O', Mc, etc.
184 (defconst authors-fixed-case
185 '("Barry O'Reilly"
186 "Brian van den Broek"
187 "Bryan O'Sullivan"
188 "Christian von Roques"
189 "Christophe de Dinechin"
190 "Craig McDaniel"
191 "Daniel LaLiberte"
192 "David J. MacKenzie"
193 "David McCabe"
194 "David O'Toole"
195 "Devon Sean McCullough"
196 "Dominique de Waleffe"
197 "Edward O'Connor"
198 "Exal de Jesus Garcia Carrillo"
199 "George McNinch"
200 "Greg McGary"
201 "Hans de Graaff"
202 "Ivan Vilata i Balaguer"
203 "Jae-hyeon Park"
204 "James TD Smith"
205 "Jay McCarthy"
206 "Joel N. Weber II"
207 "Matt McClure"
208 "Mike McLean"
209 "Michael McNamara"
210 "Mike McEwan"
211 "Nelson Jose dos Santos Ferreira"
212 "Peter von der Ahe"
213 "Peter O'Gorman"
214 "Piet van Oostrum"
215 "Roland McGrath"
216 "Santiago Payà i Miralta"
217 "Sean O'Halpin"
218 "Sean O'Rourke"
219 "Shun-ichi Goto"
220 "Thomas DeWeese"
221 "Tijs van Bakel"
222 "Yu-ji Hosokawa")
223 "List of authors whose names cannot be simply capitalized.")
224
225 (defvar authors-public-domain-files
226 '("emerge\\.el"
227 "vi\\.el"
228 "feedmail\\.el"
229 "mailpost\\.el"
230 "hanoi\\.el"
231 "meese\\.el"
232 "studly\\.el"
233 "modula2\\.el"
234 "nnmaildir\\.el"
235 "nnil\\.el"
236 "b2m\\.c"
237 "unexhp9k800\\.c"
238 "emacsclient\\.1"
239 "check-doc-strings")
240 "List of regexps matching files for which the FSF doesn't need papers.")
241
242
243 (defvar authors-obsolete-files-regexps
244 '(".*loaddefs.el$" ; not obsolete, but auto-generated
245 "\\.\\(bzr\\|cvs\\|git\\)ignore$" ; obsolete or uninteresting
246 "\\.arch-inventory$"
247 "ChangeLog\\(\\.[0-9]+\\)?\\'"
248 "automated/data/" ; not interesting
249 ;; TODO lib/? Matches other things?
250 "build-aux/" "m4/" "Emacs.xcodeproj" "mapfiles" "\\.map\\'"
251 "preferences\\.\\(nib\\|gorm\\)"
252 ;; Generated files that have since been removed.
253 "\\(refcard\\(-de\\|-pl\\)?\\|calccard\\|dired-ref\\|orgcard\\|\
254 gnus-booklet\\|fr-drdref\\)\\.p\\(df\\|s\\)\\'")
255 "List of regexps matching obsolete files.
256 Changes to files matching one of the regexps in this list are not listed.")
257
258 (defconst authors-no-scan-regexps
259 '("etc/nxml/"
260 "automated/data/")
261 "Lists of regexps matching files not to scan for authorship.")
262
263 (defconst authors-ignored-files
264 '("external-lisp"
265 "lock" "share-lib" "local-lisp"
266 "noleim-Makefile.in"
267 "NEWS" "ORDERS" "PROBLEMS" "FAQ" "AUTHORS" "FOR-RELEASE" "TODO" "todo"
268 "MACHINES" "SERVICE"
269 "README.unicode" "README.multi-tty" "TUTORIAL.translators"
270 "NEWS.unicode" "COPYING.DJ" "Makefile.old" "Makefile.am"
271 "NEWS.1" "OOOOONEWS...OONEWS" "OOOONEWS" "etc/NEWS"
272 "NEWS.1-17" "NEWS.18" "NEWS.19" "NEWS.20" "NEWS.21" "NEWS.22"
273 "MAINTAINERS" "MH-E-NEWS"
274 "install.sh" "install-sh" "missing" "mkinstalldirs"
275 "termcap.dat" "termcap.src" "termcap.ucb" "termcap"
276 "ChangeLog.nextstep" "Emacs.clr" "spec.txt"
277 "gfdl.1"
278 "texi/Makefile.in"
279 "Imakefile" "icons/sink.ico" "aixcc.lex"
280 "nxml/char-name/unicode"
281 "spec.txt"
282 "js2-mode.el" ; only installed very briefly, replaced by js.el
283 ;; In the old imported lisp/url ChangeLog, but never in Emacs.
284 "mule-sysdp.el"
285 ;; Only briefly present.
286 "tests/gnustest-nntp.el" "tests/gnustest-registry.el"
287 "cedet/tests/testtemplates.cpp"
288 "cedet/tests/testusing.cpp"
289 "cedet/tests/scopetest.cpp"
290 "cedet/tests/scopetest.java"
291 "cedet/tests/test.cpp"
292 "cedet/tests/test.py"
293 "cedet/tests/teststruct.cpp"
294 "*.el"
295 ;; Autogen:
296 "cus-load.el" "finder-inf.el" "ldefs-boot.el" "loaddefs-boot.el"
297 "compile" "config.guess" "config.sub" "depcomp"
298 "autogen/compile" "autogen/config.guess" "autogen/config.in"
299 "autogen/config.sub" "autogen/depcomp" "autogen/install-sh"
300 "autogen/missing" "autogen"
301 "autogen/copy_autogen" ; not generated, but trivial and now removed
302 "dir_top"
303 ;; Only existed briefly, then renamed:
304 "images/icons/allout-widgets-dark-bg"
305 "images/icons/allout-widgets-light-bg"
306 ;; Never had any meaningful changes logged, now deleted:
307 "lib/stdarg.in.h" "lib/stdbool.in.h"
308 "unidata/bidimirror.awk" "unidata/biditype.awk"
309 "split-man" "Xkeymap.txt" "ms-7bkermit" "ulimit.hack"
310 "gnu-hp300" "refcard.bit" "ledit.l" "forms.README" "forms-d2.dat"
311 "CXTERM-DIC/PY.tit" "CXTERM-DIC/ZIRANMA.tit"
312 "CXTERM-DIC/CTLau.tit" "CXTERM-DIC/CTLauB.tit"
313 "copying.paper" "celibacy.1" "condom.1" "echo.msg" "sex.6"
314 "COOKIES" "INTERVIEW" "MAILINGLISTS" "MOTIVATION"
315 "NICKLES.WORTH" "INTERVAL.IDEAS" "RCP"
316 "3B-MAXMEM" "AIX.DUMP" "SUN-SUPPORT" "XENIX"
317 "CODINGS" "CHARSETS"
318 "calc/INSTALL" "calc/Makefile" "calc/README.prev"
319 "vms-pp.trans" "_emacs" "batcomp.com" "notes/cpp" ; admin/
320 "notes/BRANCH" "notes/exit-value"
321 "emacsver.texi.in"
322 "vpath.sed"
323 "Cocoa/Emacs.base/Contents/Info.plist"
324 "Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings"
325 "GNUstep/Emacs.base/Resources/Info-gnustep.plist"
326 "GNUstep/Emacs.base/Resources/Emacs.desktop"
327 "Cocoa/Emacs.base/Contents/Resources/English.lproj"
328 ;; Only existed briefly, then deleted:
329 "coccinelle/overlay.cocci" "coccinelle/symbol.cocci"
330 ;; MH-E stuff not in Emacs:
331 "import-emacs" "release-utils"
332 ;; Erc stuff not in Emacs:
333 "ChangeLog.2001" "ChangeLog.2002" "ChangeLog.2003" "ChangeLog.2004"
334 "ChangeLog.2005"
335 "README.extras" "dir-template" "mkChangeLog" "MkChangeLog" "erc-auto.in"
336 "CREDITS" "HACKING"
337 "debian/changelog"
338 "debian/control"
339 "debian/copyright"
340 "debian/maint/conffiles"
341 "debian/maint/conffiles.in"
342 "debian/maint/postinst"
343 "debian/maint/postinst.in"
344 "debian/maint/prerm"
345 "debian/maint/prerm.in"
346 "debian/README.Debian"
347 "debian/README.erc-speak"
348 "debian/rules"
349 "debian/scripts/install"
350 "debian/scripts/install.in"
351 "debian/scripts/remove"
352 "debian/scripts/remove.in"
353 "debian/scripts/startup"
354 "debian/scripts/startup.erc"
355 "debian/scripts/startup.erc-speak"
356 ;; Used to be in admin, not very interesting.
357 "emacs-pretesters" "make-announcement" "make-changelog-diff"
358 ;; Textual comments that are not files.
359 "All" "Version" "Everywhere" "Many" "Various" "files"
360 ;; Directories.
361 "vms" "mac" "url" "tree-widget"
362 "info/dir"
363 )
364 "List of files and directories to ignore.
365 Changes to files in this list are not listed.")
366
367 ;; List via: find . -name '*.el' | sed 's/.*\///g' | sort | uniq -d
368 ;; FIXME It would be better to discover these dynamically.
369 (defconst authors-ambiguous-files
370 '("Makefile.in"
371 "makefile.w32-in"
372 "chart.el"
373 "cl-lib.el"
374 "compile.el"
375 "complete.el"
376 "cpp.el"
377 "ctxt.el"
378 "custom.el"
379 "cyrillic.el"
380 "czech.el"
381 "debug.el"
382 "dired.el"
383 "el.el"
384 "eshell.el"
385 "ethiopic.el"
386 "f90.el"
387 "files.el"
388 "find.el"
389 "format.el"
390 "generic.el"
391 "georgian.el"
392 "grammar.el"
393 "greek.el"
394 "grep.el"
395 "hebrew.el"
396 "imenu.el"
397 "indian.el"
398 "info-xref.el"
399 "japanese.el"
400 "java.el"
401 "lao.el"
402 "linux.el"
403 "locate.el"
404 "make.el"
405 "mode.el"
406 "mule-util.el"
407 "python.el"
408 "rmailmm.el"
409 "semantic.el"
410 "shell.el"
411 "simple.el"
412 "slovak.el"
413 "sort.el"
414 "speedbar.el"
415 "srecode.el"
416 "table.el"
417 "texi.el"
418 "thai.el"
419 "thingatpt.el"
420 "tibetan.el"
421 "util.el"
422 "vc-bzr.el"
423 "wisent.el")
424 "List of basenames occurring more than once in the source.")
425
426 ;; FIXME :cowrote entries here can be overwritten by :wrote entries
427 ;; derived from a file's Author: header (eg mh-e). This really means
428 ;; the Author: header is erroneous.
429 (defconst authors-fixed-entries
430 '(("Richard M. Stallman" :wrote "[The original GNU Emacs and numerous files]")
431 ("Joseph Arceneaux" :wrote "xrdb.c")
432 ;; This refers to the obsolete Willisson (qv) version.
433 ;;; ("Blitz Product Development Corporation" :wrote "ispell.el")
434 ("Frank Bresz" :wrote "diff.el")
435 ("David M. Brown" :wrote "array.el")
436 ;; No longer distributed.
437 ;;; ("Gary Byers" :changed "xenix.h")
438 ;; No longer distributed: freebsd.h
439 ;; Only trivial pieces remain, merged into configure.ac.
440 ("Shawn M. Carey" :wrote "[some early FreeBSD support]")
441 ;; hp800.h renamed from hp9000s800.h, hpux.h merged into hpux10-20.h.
442 ;; FIXME overwritten by Author:.
443 ("Satyaki Das" :cowrote "mh-search.el")
444 ;; No longer distributed: hp800.h, hpux10-20.h.
445 ;; Only trivial pieces remain, merged into configure.ac.
446 ("Eric Decker" :changed "sysdep.c (and other files for HP-UX support)")
447 ("Lawrence R. Dodd" :cowrote "dired-x.el")
448 ;; No longer distributed.
449 ;;; ("Viktor Dukhovni" :wrote "unexsunos4.c")
450 ("Paul Eggert" :wrote "rcs2log") ; "vcdiff"
451 ("Fred Fish" :changed "unexcoff.c")
452 ;; No longer distributed.
453 ;;; ("Tim Fleehart" :wrote "makefile.nt")
454 ("Keith Gabryelski" :wrote "hexl.c")
455 ("Kevin Gallagher" :wrote "flow-ctrl.el")
456 ;; Also wrote an earlier version of disp-table.el, since replaced
457 ;; by Erik Naggum's version; also iso-syntax.el, later renamed to
458 ;; latin-1.el, since deleted.
459 ("Howard Gayle" :wrote "casetab.c")
460 ;; :wrote mh-pick.el, since merged into mh-search.el.
461 ;; Originally wrote mh-funcs.el, but it has been rewritten since.
462 ("Stephen Gildea" :wrote "refcard.tex"
463 :cowrote "mh-funcs.el" "mh-search.el")
464 ;; cl.texinfo renamed to cl.texi.
465 ("David Gillespie" :wrote "cl.texi")
466 ;; No longer distributed: emacsserver.c.
467 ("Hewlett-Packard" :changed "emacsclient.c" "server.el" "keyboard.c")
468 ;; No longer distributed.
469 ;;; ("Thomas Horsley" :wrote "cxux.h" "cxux7.h")
470 ("Indiana University Foundation" :changed "buffer.c" "buffer.h"
471 "indent.c" "search.c" "xdisp.c" "region-cache.c" "region-cache.h")
472 ;; ibmrt.h, ibmrt-aix.h no longer distributed.
473 ("International Business Machines" :changed "emacs.c" "fileio.c"
474 "process.c" "sysdep.c" "unexcoff.c")
475 ;; No longer distributed.
476 ;;; ("Ishikawa Chiaki" :changed "aviion.h" "dgux.h")
477 ;; No longer distributed: ymakefile, intel386.h, mem-limits.h, template.h,
478 ;; linux.h (was renamed to lignux.h, then to gnu-linux.h, then removed)
479 ("Michael K. Johnson" :changed "configure.ac" "emacs.c"
480 "process.c" "sysdep.c" "syssignal.h" "systty.h" "unexcoff.c")
481 ;; No longer distributed.
482 ;;; ("Kyle Jones" :wrote "mldrag.el")
483 ("Henry Kautz" :wrote "bib-mode.el")
484 ;; No longer distributed: vms-pwd.h, vmsfns.c, uaf.h,
485 ;; dir.h (was renamed to vmsdir.h, then removed)
486 ("Joseph M. Kelsey" :changed "fileio.c")
487 ("Sam Kendall" :changed "etags.c" "etags.el")
488 ;; ack.texi: "We're not using his backquote.el any more."
489 ("Richard King" :wrote "userlock.el" "filelock.c")
490 ("Sebastian Kremer" :changed "add-log.el")
491 ("Mark Lambert" :changed "process.c" "process.h")
492 ("Aaron Larson" :changed "bibtex.el")
493 ;; It was :wrote, but it has been rewritten since.
494 ("James R. Larus" :cowrote "mh-e.el")
495 ("Lars Lindberg" :changed "dabbrev.el" :cowrote "imenu.el")
496 ;; No longer distributed: lselect.el.
497 ("Lucid, Inc." :changed "bytecode.c" "byte-opt.el" "byte-run.el"
498 "bytecomp.el" "delsel.el" "disass.el" "faces.el" "font-lock.el"
499 "lmenu.el" "mailabbrev.el" "select.el" "xfaces.c" "xselect.c")
500 ;; MCC. No longer distributed: emacsserver.c.
501 ("Microelectronics and Computer Technology Corporation"
502 :changed "etags.c" "emacsclient.c" "movemail.c"
503 "rmail.el" "rmailedit.el" "rmailkwd.el"
504 "rmailmsc.el" "rmailout.el" "rmailsum.el" "scribe.el"
505 ;; It was :wrote for xmenu.c, but it has been rewritten since.
506 "server.el" "lisp.h" "sysdep.c" "unexcoff.c" "xmenu.c")
507 ("Niall Mansfield" :changed "etags.c")
508 ("Brian Marick" :cowrote "hideif.el")
509 ("Marko Kohtala" :changed "info.el")
510 ("Sidney Markowitz" :changed "doctor.el")
511 ;; No longer distributed: env.c.
512 ("Richard Mlynarik" :wrote "ehelp.el")
513 ("Mosur Mohan" :changed "etags.c")
514 ("Jeff Morgenthaler" :changed "flow-ctrl.el" "vt200.el" "vt201.el"
515 "vt220.el" "vt240.el")
516 ("Motorola" :changed "buff-menu.el")
517 ("Hiroshi Nakano" :changed "ralloc.c")
518 ;; File removed in Emacs 24.1.
519 ;;; ("Sundar Narasimhan" :changed "rnewspost.el")
520 ;; No longer distributed.
521 ;;; ("NeXT, Inc." :wrote "unexnext.c")
522 ("Mark Neale" :changed "fortran.el")
523 ;; Renamed from sc.el.
524 ("Martin Neitzel" :changed "supercite.el")
525 ("Andrew Oram" :changed "calendar.texi (and other doc files)")
526 ("Frederic Pierresteguy" :wrote "widget.c")
527 ("Michael D. Prange" :changed "tex-mode.el")
528 ;; No longer distributed (dgux5-4r3.h was renamed to dgux5-4-3.h).
529 ;;; ("Paul Reilly" :wrote "gux5-4r2.h" "dgux5-4-3.h")
530 ("Rob Riepel" :wrote "tpu-edt.doc")
531 ("Roland B. Roberts" :changed "files.el" "sort.el"
532 "buffer.h" "callproc.c" "dired.c" "process.c" "sysdep.c" "systty.h")
533 ;; No longer distributed.
534 ;;; "vmspaths.h" "build.com" "compile.com" "kepteditor.com" "precomp.com"
535 ;;; "vmsproc.el" :wrote "logout.com" "mailemacs.com")
536 ;;; ("Guillermo J. Rozas" :wrote "fakemail.c")
537 ("Wolfgang Rupprecht" :changed "lisp-mode.el" "loadup.el"
538 "sort.el" "alloc.c" "callint.c"
539 ;; config.in renamed from config.h.in, now a generated file.
540 ;; ecrt0.c renamed from crt0.c, then removed.
541 "data.c" "fns.c"
542 "lisp.h" "lread.c" ; "sun3.h" "ymakefile" - no longer distributed
543 "print.c" :wrote "float-sup.el" "floatfns.c")
544 ("Schlumberger Technology Corporation" :changed "gud.el")
545 ;; Replaced by tcl.el.
546 ;;; ("Gregor Schmid" :wrote "tcl-mode.el")
547 ;; No longer distributed since 24.1.
548 ;;; ("Rainer Schöpf" :wrote "alpha.h" "unexalpha.c")
549 ;; No longer distributed: emacsserver.c.
550 ("William Sommerfeld" :wrote "emacsclient.c" "scribe.el")
551 ;; No longer distributed: emacsserver.c.
552 ("Leigh Stoller" :changed "emacsclient.c" "server.el")
553 ("Steve Strassmann" :wrote "spook.el")
554 ("Shinichirou Sugou" :changed "etags.c")
555 ;; No longer distributed: emacsserver.c.
556 ("Sun Microsystems, Inc" :changed "emacsclient.c" "server.el"
557 :wrote "emacs.icon" "sun.el")
558 ;; No longer distributed.
559 ;;; "emacstool.1" "emacstool.c" "sun-curs.el"
560 ;;; "sun-fns.el" "sun-mouse.el" "sunfns.c")
561 ;; Renamed from sc.el.
562 ("Kayvan Sylvan" :changed "supercite.el")
563 ;; No longer distributed: emacsserver.c, tcp.c.
564 ("Spencer Thomas" :changed "emacsclient.c" "server.el"
565 "dabbrev.el" "unexcoff.c" "gnus.texi")
566 ("Jonathan Vail" :changed "vc.el")
567 ;; No longer distributed: usg5-4.h
568 ("James Van Artsdalen" :changed "unexcoff.c")
569 ;; No longer distributed: src/makefile.nt, lisp/makefile.nt
570 ;; winnt.el renamed to w32-fns.el; nt.[ch] to w32.[ch];
571 ;; ntheap.[ch] to w32heap.[ch]; ntinevt.c to w32inevt.c;
572 ;; ntproc.c to w32proc.c; ntterm.c to w32term.c;
573 ;; windowsnt.h to ms-w32.h.
574 ("Geoff Voelker" :wrote "w32-fns.el" "w32.c" "w32.h" "w32heap.c"
575 "w32heap.h" "w32inevt.c" "w32proc.c" "w32term.c" "ms-w32.h")
576 ("Morten Welinder" :wrote "dosfns.c" "[many MS-DOS files]" "msdos.h")
577 ("Eli Zaretskii" :wrote "bidi.c" "[bidirectional display in xdisp.c]"
578 "[tty menus in term.c]")
579 ;; Not using this version any more.
580 ;;; ("Pace Willisson" :wrote "ispell.el")
581 ;; FIXME overwritten by Author:.
582 ("Bill Wohler" :cowrote "mh-e.el")
583 ("Garrett Wollman" :changed "sendmail.el")
584 ("Dale R. Worley" :changed "mail-extr.el")
585 ("Jamie Zawinski" :changed "bytecode.c" :wrote "tar-mode.el"
586 :cowrote "disass.el"))
587 "Actions taken from the original, manually (un)maintained AUTHORS file.")
588
589
590 (defconst authors-valid-file-names
591 '("aclocal.m4"
592 "build-ins.in"
593 "Makefile"
594 "Makefile.noleim"
595 "makedist.bat"
596 "makefile.def"
597 "makefile.nt"
598 "ns.mk"
599 "README"
600 ;; There were a few of these, not just the generated top-level one.
601 "configure" "config.h"
602 "is_exec.c" "sigaction.c"
603 ;; nt/
604 "ebuild.bat" "install.bat" "fast-install.bat"
605 "debug.bat.in" "emacs.bat.in" "addsection.c"
606 "inc/sys/dir.h" "inc/gettext.h"
607 ".gdbinit-union"
608 "alloca.s"
609 "make-delta"
610 "config.w95"
611 "msysconfig.sh"
612 "emacstool.1"
613 "align.umax"
614 "cxux-crt0.s"
615 "gould-sigvec.s"
616 "getdate.y"
617 "ymakefile"
618 "permute-index" "index.perm"
619 "ibmrs6000.inp"
620 "b2m.c" "b2m.1" "b2m.pl" "rcs-checkin.1"
621 "emacs.bash" "emacs.csh" "ms-kermit"
622 "emacs.ico"
623 "emacs21.ico"
624 "emacs.py" "emacs2.py" "emacs3.py"
625 "BABYL" "LPF" "LEDIT" "OTHER.EMACSES"
626 "emacs16_mac.png" "emacs24_mac.png"
627 "emacs256_mac.png" "emacs32_mac.png"
628 "emacs48_mac.png" "emacs512_mac.png"
629 "ps-prin2.ps" "ps-prin3.ps"
630 "emacs.xbm" "gnu.xpm" "gnus-pointer.xbm" "gnus-pointer.xpm"
631 ;; Moved from etc/ to etc/images, and/or removed.
632 "gnus.pbm" "gnus.xbm" "gnus.xpm" "letter.pbm" "letter.xbm" "letter.xpm"
633 "splash.pbm" "splash.xbm" "splash.xpm" "splash8.xpm"
634 "images/execute.pbm" "images/execute.xpm" "images/fld-open.pbm"
635 "images/fld-open.xpm" "images/highlight.pbm" "images/highlight.xpm"
636 "images/mail.pbm" "images/mail.xpm" "images/mail/alias.pbm"
637 "images/mail/alias.xpm" "images/mail/refile.pbm"
638 "images/mail/refile.xpm" "images/page-down.pbm"
639 "images/page-down.xpm" "images/widen.pbm" "images/widen.xpm"
640 "images/gnus/bar.xbm" "images/gnus/bar.xpm"
641 "images/gnus/reverse-smile.xpm"
642 "notes/commits" "notes/changelogs"
643 "revdiff" ; admin/
644 "vcdiff" "rcs-checkin" "tindex.pl"
645 "mainmake" "sed1.inp" "sed2.inp" "sed3.inp" ; msdos/
646 "mac-fix-env.m"
647 ;; Deleted vms stuff:
648 "temacs.opt" "descrip.mms" "compile.com" "link.com"
649 "compact.el" "fadr.el"
650 "calc/calc-maint.el"
651 "emacs-lisp/cl-specs.el"
652 "emacs-lisp/eieio-comp.el"
653 "erc-hecomplete.el"
654 "eshell/esh-maint.el"
655 "language/persian.el"
656 "ledit.el" "meese.el" "iswitchb.el" "longlines.el"
657 "mh-exec.el" "mh-init.el" "mh-customize.el"
658 "net/zone-mode.el" "xesam.el"
659 "term/mac-win.el" "sup-mouse.el"
660 "term/vt102.el" "term/vt201.el" "term/vt220.el" "term/vt300.el"
661 "term/vt320.el" "term/vt400.el" "term/vt420.el"
662 "url-https.el"
663 "org-mac-message.el" "org-mew.el" "org-w3m.el" "org-vm.el" "org-wl.el"
664 "org-mks.el" "org-remember.el" "org-xoxo.el" "org-docbook.el"
665 "org-freemind.el" "ox-jsinfo.el"
666 "org-exp-blocks.el" ; maybe this is ob-exp now? dunno
667 "org-lparse.el"
668 "org-special-blocks.el" "org-taskjuggler.el"
669 "progmodes/cap-words.el"
670 "w32-common-fns.el"
671 ;; gnus
672 "nnwfm.el" "nnlistserv.el" "nnkiboze.el" "nndb.el" "nnsoup.el"
673 "netrc.el" "password.el" "sasl-cram.el" "sasl-digest.el" "sasl-ntlm.el"
674 "sasl.el" "dig.el" "dns.el" "hex-util.el" "sha1.el" "md4.el"
675 "hmac-def.el" "hmac-md5.el" "ntlm.el" "hashcash.el" "smime-ldap.el"
676 "assistant.el" "gnus-utils.el" "tls.el" "pgg-def.el" "pgg-gpg.el"
677 "gnus-compat.el" "pgg-parse.el" "pgg-pgp.el" "pgg-pgp5.el" "pgg.el"
678 "dns-mode.el" "run-at-time.el" "gnus-encrypt.el" "sha1-el.el"
679 "gnus-gl.el" "gnus.sum.el" "proto-stream.el" "color.el" "color-lab.el"
680 "eww.el" "shr-color.el" "shr.el" "earcon.el" "gnus-audio.el" "encrypt.el"
681 "format-spec.el" "gnus-move.el"
682 ;; doc
683 "getopt.c" "texindex.c" "news.texi" "vc.texi" "vc2-xtra.texi"
684 "back.texi" "vol1.texi" "vol2.texi" "elisp-covers.texi" "two.el"
685 "front-cover-1.texi" "locals.texi" "calendar.texi" "info-stnd.texi"
686 "tasks.texi"
687 "advice.texi" "picture.texi" "texinfo.tex"
688 ;; lwlib:
689 "dispatch.c" "dispatch.h" "xrdb-cpp.c" "xrdb.c"
690 "lwlib-Xol.c" "lwlib-Xol.h" "lwlib-Xolmb.c" "lwlib-Xolmb.h"
691 "lwlib-XolmbP.h"
692 ;; lib/
693 "lib/stdio.c" "lib/gl_openssl.h" "lib/sigprocmask.c"
694 "lib/pthread_sigprocmask.c" "lib/ldtoastr.c" "lib/dummy.c"
695 "lib/ignore-value.h"
696 ;; lib-src/
697 "cvtmail.c" "digest-doc.c" "emacsserver.c" "emacstool.c" "env.c"
698 "etags-vmslib.c" "fakemail.c" "getdate.c" "getopt.h" "getopt1.c"
699 "getopt_.h" "getopt_int.h" "gettext.h" "leditcfns.c" "loadst.c"
700 "make-path.c" "qsort.c" "sorted-doc.c" "tcp.c" "timer.c" "wakeup.c"
701 "yow.c" "grep-changelog" "grep-changelog.1"
702 ;; etc/
703 "emacsclient.c" "etags.c" "hexl.c" "make-docfile.c" "movemail.c"
704 "test-distrib.c" "testfile"
705 "tpu-edt.doc" ; see below
706 )
707 "File names which are valid, but no longer exist (or cannot be found)
708 in the repository.")
709
710 ;; Note that any directory part on the RHS is retained.
711 ;; Cf authors-renamed-files-regexps.
712 ;; NB So only add a directory if needed to disambiguate.
713 ;; FIXME?
714 ;; Although perhaps we could let authors-disambiguate-file-name do that?
715 (defconst authors-renamed-files-alist
716 '(("nt.c" . "w32.c") ("nt.h" . "w32.h")
717 ("ntheap.c" . "w32heap.c") ("ntheap.h" . "w32heap.h")
718 ("ntinevt.c" . "w32inevt.c") ("ntinevt.h" . "w32inevt.h")
719 ("ntproc.c" . "w32proc.c")
720 ("w32console.c" . "w32term.c")
721 ("unexnt.c" . "unexw32.c")
722 ("s/windowsnt.h" . "s/ms-w32.h")
723 ("s/ms-w32.h" . "inc/ms-w32.h")
724 ("src/config.h" . "config.h")
725 ("winnt.el" . "w32-fns.el")
726 ("linux.h" . "gnu-linux.h")
727 ("emacs.manifest" . "emacs-x86.manifest")
728 ("config.emacs" . "configure")
729 ("configure.in" . "configure.ac")
730 ("config.h.dist" . "config.in")
731 ("config.h-dist" . "config.in")
732 ("config.h.in" . "config.in")
733 ("debug.bat" . "debug.bat.in")
734 ("emacs.bat" . "emacs.bat.in")
735 ;; paths.h.dist -> paths.h-dist -> paths.h.in -> paths.in -> epaths.in.
736 ("paths.h.dist" . "epaths.in")
737 ("paths.h-dist" . "epaths.in")
738 ("paths.h.in" . "epaths.in")
739 ("paths.in" . "epaths.in")
740 ("emacs.rc" . "emacs.rc.in")
741 ("emacsclient.rc" . "emacsclient.rc.in")
742 ("patch1" . "sed1.inp")
743 ("INSTALL.MSYS" . "INSTALL")
744 ("server.c" . "emacsserver.c")
745 ("lib-src/etags.c" . "etags.c")
746 ;; msdos/
747 ("is-exec.c" . "is_exec.c")
748 ("enriched.doc" . "enriched.txt")
749 ("GETTING.GNU.SOFTWARE" . "FTP")
750 ("etc/MACHINES" . "MACHINES")
751 ("ONEWS" . "NEWS.19")
752 ("ONEWS.1" . "NEWS.1-17")
753 ("ONEWS.2" . "NEWS.1-17")
754 ("ONEWS.3" . "NEWS.18")
755 ("ONEWS.4" . "NEWS.18")
756 ("ORDERS.USA" . "ORDERS")
757 ("EUROPE" . "ORDERS")
758 ("DIFF" . "OTHER.EMACSES")
759 ("CCADIFF" . "OTHER.EMACSES")
760 ("GOSDIFF" . "OTHER.EMACSES")
761 ;; Moved from lisp/tpu-doc.el to etc/tpu-edt.doc in Emacs 19.29.
762 ;; Removed in Emacs 19.30, replaced by new file etc/edt-user.doc
763 ;; (no associated ChangeLog entry).
764 ("tpu-doc.el" . "tpu-edt.doc")
765 ("Makefile.in.in" . "Makefile.in")
766 ("leim-Makefile" . "leim/Makefile")
767 ("leim-Makefile.in" . "leim/Makefile.in")
768 ("emacs-lisp/testcover-ses.el" . "tcover-ses.el")
769 ("emacs-lisp/testcover-unsafep.el" . "tcover-unsafep.el")
770 ("progmodes/dos.el" . "bat-mode.el")
771 ;; index and pick merged into search.
772 ("mh-index.el" . "mh-search.el")
773 ("mh-pick.el" . "mh-search.el")
774 ("font-setting.el" . "dynamic-setting.el")
775 ("help-funs.el" . "help-fns.el")
776 ("erc-notifications.el" . "erc-desktop-notifications.el")
777 ("org-complete.el" . "org-pcomplete.el")
778 ("org-export.el" . "ox.el") ; ?
779 ;; Was definitely renamed to org-latex.el, then... ?
780 ("org-export-latex.el" . "ox-latex.el") ; ?
781 ("org-exp.el" . "ox.el") ; ?
782 ("progmodes/cfengine3.el" . "cfengine.el")
783 ("progmodes/delphi.el" . "opascal.el")
784 ("octave-inf.el" . "octave.el")
785 ("octave-mod.el" . "octave.el")
786 ("progmodes/octave-inf.el" . "octave.el")
787 ("progmodes/octave-mod.el" . "octave.el")
788 ;; Obsolete.
789 ("emacs-lisp/assoc.el" . "assoc.el")
790 ("emacs-lisp/cust-print.el" . "cust-print.el")
791 ("emacs-lisp/gulp.el" . "gulp.el")
792 ("emulation/crisp.el" . "crisp.el")
793 ("emulation/tpu-edt.el" . "tpu-edt.el")
794 ("emulation/tpu-extras.el" . "tpu-extras.el")
795 ("emulation/vi.el" . "vi.el")
796 ("emulation/vip.el" . "vip.el")
797 ("emulation/ws-mode.el" . "ws-mode.el")
798 ("mail/mailpost.el" . "mailpost.el")
799 ("play/bruce.el" . "bruce.el")
800 ("play/yow.el" . "yow.el")
801 ("patcomp.el" . "patcomp.el")
802 ("emulation/ws-mode.el" . "ws-mode.el")
803 ;; From lisp to etc/forms.
804 ("forms-d2.el" . "forms-d2.el")
805 ("forms-pass.el" . "forms-pass.el")
806 ;; From lisp/ to etc/nxml.
807 ("nxml/test.invalid.xml" . "test-invalid.xml")
808 ("nxml/test.valid.xml" . "test-valid.xml")
809 ;; The one in lisp is eshell/eshell.el.
810 ("eshell.el" . "automated/eshell.el")
811 ("eshell/esh-test.el" . "automated/eshell.el")
812 ("automated/cl-lib.el" . "automated/cl-lib-tests.el")
813 ("automated/package-x-test.el" . "automated/package-test.el")
814 ;; INSTALL-CVS -> .CVS -> .BZR -> .REPO
815 ("INSTALL-CVS" . "INSTALL.REPO")
816 ("INSTALL.CVS" . "INSTALL.REPO")
817 ("INSTALL.BZR" . "INSTALL.REPO")
818 ("gnus-logo.eps" . "gnus-logo.eps") ; moved to refcards/
819 ("build-install" . "build-ins.in")
820 ("build-install.in" . "build-ins.in")
821 ("unidata/Makefile" . "unidata/Makefile.in")
822 ("mac/uvs.el" . "unidata/uvs.el")
823 ;; Moved from top to etc/
824 ("CONTRIBUTE" . "CONTRIBUTE")
825 ("FTP" . "FTP")
826 ;; Moved from top to build-aux/
827 ("move-if-change" . "move-if-change")
828 ("update-subdirs" . "update-subdirs")
829 ("emacs.tex" . "emacs.texi")
830 ("faq.texi" . "efaq.texi")
831 ("major.texi" . "modes.texi")
832 ("msdog-xtra.texi" . "msdos-xtra.texi")
833 ("msdog.texi" . "msdos.texi")
834 ;; And from emacs/ to misc/ and back again.
835 ("ns-emacs.texi" . "macos.texi")
836 ("overrides.texi" . "gnus-overrides.texi")
837 ("xresmini.texi" . "xresources.texi")
838 ;; Not renamed, but we only have the latter in the Emacs repo.
839 ("trampver.texi.in" . "trampver.texi")
840 ;; Renamed with same directory.
841 ("e/eterm" . "eterm-color")
842 ("e/eterm.ti" . "eterm-color.ti")
843 ("README.txt" . "README")
844 ("emacs.names" . "JOKES")
845 ("ED.WORSHIP" . "JOKES")
846 ("GNU.JOKES" . "JOKES")
847 ("CHARACTERS" . "TODO")
848 ("images/gnus/mail_send.xpm" . "mail-send.xpm") ; still in images/gnus
849 ;; Renamed within same directory.
850 ("schema/xhtml-basic-form.rnc" . "xhtml-bform.rnc" )
851 ("schema/xhtml-basic-table.rnc" . "xhtml-btable.rnc")
852 ("schema/xhtml-list.rnc" . "xhtml-lst.rnc")
853 ("schema/xhtml-target.rnc" . "xhtml-tgt.rnc")
854 ("schema/xhtml-style.rnc" . "xhtml-xstyle.rnc")
855 ("schema/docbook-dyntbl.rnc" . "docbk-dyntbl.rnc")
856 ("schema/docbook-soextbl.rnc" . "docbk-soextbl.rn" )
857 ("edt-user.doc" . "edt.texi")
858 ("DEV-NOTES" . "nextstep")
859 ("org/COPYRIGHT-AND-LICENSE" . "org/README")
860 ;; Moved to different directories.
861 ("ctags.1" . "ctags.1")
862 ("etags.1" . "etags.1")
863 ("emacs.1" . "emacs.1")
864 ("emacsclient.1" . "emacsclient.1")
865 ("icons/emacs21.ico" . "emacs21.ico")
866 ("ja-dic" . "leim/ja-dic")
867 ("quail" . "leim/quail")
868 ;; Moved from autogen/ to admin/.
869 ("autogen/update_autogen" . "update_autogen")
870 ;; Moved from etc/ to admin/.
871 ("grammars" . "grammars")
872 ;; Moved from lisp/emacs-lisp/ to admin/.
873 ("emacs-lisp/authors.el" . "authors.el")
874 ;; From etc to lisp/cedet/semantic/.
875 ("grammars/bovine-grammar.el" . "bovine/grammar.el")
876 ("grammars/wisent-grammar.el" . "wisent/grammar.el")
877 ;; Moved from admin/nt/ to nt/.
878 ("nt/README.W32" . "README.W32")
879 ("notes/BRANCH" . "notes/repo")
880 ("notes/bzr" . "notes/repo")
881 )
882 "Alist of files which have been renamed during their lifetime.
883 Elements are (OLDNAME . NEWNAME).")
884
885 ;; Should still test that the renamed file exists. Does it?
886 ;; But it might be relative to a different ChangeLog...
887 ;;
888 ;; Note that only the basename of the RHS is used.
889 ;; Cf authors-renamed-files-alist.
890 (defconst authors-renamed-files-regexps
891 '(("\\`\\(arg-nonnull\\|c\\+\\+defs\\|warn-on-use\\)\\.h\\'"
892 "build-aux/snippet/\\&")
893 ("\\`\\(ebuild\\|emacs\\|install\\|fast-install\\)\\.cmd\\'" "\\1.bat")
894 ("\\`\\(book-spine\\|cl\\|forms\\|functions\\|gnus\\|sc\\|texinfo\\|vip\\)\
895 \\.texinfo\\'" "\\1.texi")
896 ("\\`\\(\\(calc\\|org\\|vip\\)card\\|viperCard\\|\
897 \\(\\(cs\\|fr\\|sk\\)-\\)?dired-ref\\|\
898 \\(\\(cs\\|de\\|fr\\|gnus\\|pl\\|pt-br\\|ru\\|sk\\)-\\)?refcard\\|\
899 \\(\\(cs\\|fr\\|sk\\)-\\)?survival\\)\\.tex\\'" "refcards/\\&")
900 ("\\`refcard-\\(de\\|pl\\)\\.tex\\'" "refcards/\\1-refcard.tex")
901 ("\\`\\(refcards/\\)?fr-drdref\\.tex\\'" "refcards/fr-dired-ref.tex")
902 ("^\\(TUTORIAL[^/]*\\)" "tutorials/\\1")
903 ("\\`themes/dev-\\(tsdh-\\(?:light\\|dark\\)-theme\\.el\\)\\'"
904 "themes/\\1")
905 ;; Moved from lisp/toolbar to etc/images.
906 ("\\`toolbar/\\(back\\|fwd\\|left\\|right\\|up\\)_arrow\
907 \\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/\\1-arrow\\2")
908 ("\\`toolbar/lc-\\(back\\|fwd\\|left\\|right\\|up\\)_arrow\
909 \\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/low-color/\\1-arrow\\2")
910 ("\\`toolbar/mail_\\(compose\\|send\\)\\(\\.[xp]bm\\)\\'"
911 "images/mail/\\1")
912 ("\\`toolbar/jump_to\\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/jump-to\\1")
913 ("\\`toolbar/lc-jump_to\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
914 "images/low-color/jump-to\\1")
915 ("\\`toolbar/\\(attach\\|cancel\\|close\\|copy\\|cut\\|\
916 diropen\\|exit\\|help\\|home\\|index\\|info\\|mail\\|new\\|open\\|\
917 paste\\|preferences\\|print\\|save\\|saveas\\|search\\|search-replace\\|\
918 spell\\|undo\\)\\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/\\1\\2")
919 ("\\`toolbar/gud-\\(break\\|cont\\|down\\|finish\\|print\\|pstar\\|\
920 remove\\|run\\|until\\|up\\|watch\\)\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
921 "images/gud/\\1\\2")
922 ("\\`\\(toolbar/gud-\\|images/gud/\\)n\\(i\\)?\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
923 "images/gud/next\\2\\3")
924 ("\\`\\(toolbar/gud-\\|images/gud/\\)s\\(i\\)?\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
925 "images/gud/step\\2\\3")
926 ("\\`toolbar/lc-\\([-a-z]+\\.xpm\\)\\'" "images/low-color/\\1")
927 ("^\\(tree-widget/\\(?:default\\|folder\\)/[-a-z]+\\.\\(png\\|xpm\\)\\)$"
928 "images/\\1")
929 ("^\\(images/icons/\\)mac\\(emacs\\)_\\([0-9]+\\)\\(\\.png\\)"
930 "\\1\\2\\3_mac\\4")
931 ("\\(images/icons/\\)emacs_\\([0-9][0-9]\\)\\.png"
932 "\\1hicolor/\\2x\\2/apps/emacs.png")
933 ;; Moved from leim/ to lisp/leim/.
934 ("\\`quail/[-a-z0-9]+\\.el\\'" "leim/\\&")
935 ("\\`ja-dic/ja-dic\\.el\\'" "leim/\\&")
936 ("\\`vc-\\(rcs\\|cvs\\|sccs\\)-hooks\\.el\\'" "vc/vc-\\1.el")
937 ("\\`vc-\\(annotate\\|arch\\|bzr\\|cvs\\|dav\\|dir\\|dispatcher\\|\
938 git\\|hg\\|hooks\\|mtn\\|rcs\\|sccs\\|svn\\)\\.el\\'" "vc/\\&")
939 ("\\`ediff-\\(diff\\|help\\|hook\\|init\\|merg\\|mult\\|ptch\\|util\\|\
940 vers\\|wind\\)\\.el\\'" "vc/\\&")
941 ("\\`pcvs-\\(defs\\|info\\|parse\\|util\\)\\.el\\'" "vc/\\&")
942 ("\\`\\(add-log\\|compare-w\\|cvs-status\\|diff-mode\\|diff\\|\
943 ediff\\|emerge\\|log-edit\\|log-view\\|pcvs\\|smerge-mode\\|vc\\)\\.el\\'"
944 "vc/\\&")
945 ("\\`\\(emacs-lisp/\\)?helpers\\.el\\'" "emacs-lisp/subr-x.el")
946 ;; I assume this is (essentially) what happened, org/ChangeLog is vague.
947 ("\\`org-\\(ascii\\|beamer\\|html\\|icalendar\\|jsinfo\\|latex\
948 \\|odt\\|publish\\)\\.el\\'" "ox-\\1.el")
949 ;; From test/ to test/automated/.
950 ("comint-testsuite.el" "automated/\\&")
951 ("\\`\\(bytecomp\\|font-parse\\|icalendar\\|occur\\|newsticker\\)\
952 -testsuite\\.el" "automated/\\1-tests.el")
953 ("automated/flymake/warnpred/\\(Makefile\\|test\\.\\(?:c\\|pl\\)\\)\\'"
954 "automated/data/flymake/\\1")
955 ;; NB lax rules should come last.
956 ("^m/m-\\(.*\\.h\\)$" "m/\\1" t)
957 ("^m-\\(.*\\.h\\)$" "\\1" t)
958 ("^s/s-\\(.*\\.h\\)$" "s/\\1" t)
959 ("^s-\\(.*\\.h\\)$" "\\1" t)
960 ("\\.\\(el\\|[ch]\\|x[pb]m\\|pbm\\)\\'" t t)
961 )
962 "List of regexps and rewriting rules for renamed files.
963 Elements are (REGEXP REPLACE [LAX]). If REPLACE is a string, the file
964 name matching REGEXP is replaced by REPLACE using `replace-string'.
965 Otherwise, the file name is accepted as is.
966 Elements with LAX non-nil are only used in `authors-lax-changelogs'.")
967
968 ;; It's really not worth trying to make these old logs fully valid.
969 ;; All the obvious real errors are gone.
970 ;; The main issue is _lots_ of moving around of files.
971 ;; Eg the progmodes/ (etc) directories did not exist before 1997.
972 ;; Also, lib-src/ did not exist, the files were in etc/.
973 ;; And various other things.
974 ;; Maybe this should just be any ChangeLog with a . extension,
975 ;; assuming we always fix logs fully before rotating them?
976 (defconst authors-lax-changelogs
977 '("erc/ChangeLog\\.0[1-8]\\'"
978 "gnus/ChangeLog\\.[1-2]\\'"
979 "lisp/ChangeLog\\.\\([1-9]\\|1[0-5]\\)\\'"
980 "mh-e/ChangeLog\\.1\\'"
981 "src/ChangeLog\\.\\([1-9]\\|1[0-2]\\)\\'")
982 "List of regexps matching ChangeLogs that we do not print errors from.
983 These are older ChangeLogs that have various issues.
984 Additionally, for these logs we apply the `lax' elements of
985 `authors-renamed-files-regexps'.")
986
987
988 (defvar authors-checked-files-alist)
989 (defvar authors-invalid-file-names)
990
991 ;; This has become rather yucky. :(
992 (defun authors-disambiguate-file-name (fullname)
993 "Convert FULLNAME to an unambiguous relative-name."
994 (let ((relname (file-name-nondirectory fullname))
995 dir parent)
996 (if (and (member relname authors-ambiguous-files)
997 ;; Try to identify the top-level directory.
998 ;; FIXME should really use ROOT from M-x authors.
999 (not (and (file-directory-p
1000 (expand-file-name
1001 "lib-src"
1002 (setq dir (file-name-directory fullname))))
1003 (file-directory-p (expand-file-name "etc" dir)))))
1004 ;; I think it looks weird to see eg "lisp/simple.el".
1005 ;; But for eg Makefile.in, we do want to say "lisp/Makefile.in".
1006 (if (and (string-equal "lisp"
1007 (setq parent (file-name-nondirectory
1008 (directory-file-name dir))))
1009 ;; TODO better to simply have hard-coded list?
1010 ;; Only really Makefile.in where this applies.
1011 (not (file-exists-p
1012 (expand-file-name (concat "../" relname) dir))))
1013 relname
1014 ;; In case of ambiguity, just prepend the parent directory.
1015 ;; FIXME obviously this is not a perfect solution.
1016 (format "%s/%s" (file-name-nondirectory (directory-file-name dir))
1017 relname))
1018 relname)))
1019
1020 (defun authors-lax-changelog-p (file)
1021 "Return non-nil if FILE matches `authors-lax-changelogs'."
1022 (let ((list authors-lax-changelogs)
1023 found)
1024 (while list
1025 (setq list (if (setq found (string-match-p (car list) file))
1026 nil
1027 (cdr list))))
1028 found))
1029
1030 (defun authors-canonical-file-name (file log-file pos author)
1031 "Return canonical file name for FILE found in LOG-FILE.
1032 Checks whether FILE is a valid (existing) file name, has been renamed,
1033 or is on the list of removed files. Returns the non-directory part of
1034 the file name. Only uses the LOG-FILE position POS and associated AUTHOR
1035 to print a message if FILE is not found."
1036 ;; FILE should be re-checked in every different directory associated
1037 ;; with a LOG-FILE. Eg configure.ac from src/ChangeLog is not the
1038 ;; same as that from top-level/ChangeLog.
1039 (let* ((fullname (expand-file-name file (file-name-directory log-file)))
1040 (entry (assoc fullname authors-checked-files-alist))
1041 laxlog relname valid)
1042 (if entry
1043 (cdr entry)
1044 (setq relname (file-name-nondirectory file))
1045 (if (or (member file authors-valid-file-names)
1046 (member relname authors-valid-file-names)
1047 (file-exists-p file)
1048 (file-exists-p relname) ; FIXME? appropriate?
1049 )
1050 (setq valid (authors-disambiguate-file-name fullname))
1051 (if (setq valid (assoc file authors-renamed-files-alist))
1052 (setq valid (cdr valid))
1053 (setq laxlog (authors-lax-changelog-p log-file))
1054 (let ((rules authors-renamed-files-regexps)
1055 rule)
1056 (while rules
1057 (setq rule (car rules))
1058 (if (and (or laxlog (not (nth 2 rule)))
1059 (string-match (car rule) file))
1060 (setq valid (if (stringp (nth 1 rule))
1061 (file-name-nondirectory
1062 (replace-match (nth 1 rule) t nil file))
1063 relname)
1064 rules nil)
1065 (setq rules (cdr rules)))))))
1066 (setq authors-checked-files-alist
1067 (cons (cons fullname valid) authors-checked-files-alist))
1068 (unless (or valid
1069 (member file authors-ignored-files)
1070 (authors-obsolete-file-p file)
1071 (string-match "[*]" file)
1072 (string-match "^[0-9.]+$" file)
1073 laxlog)
1074 (setq authors-invalid-file-names
1075 (cons (format "%s:%d: unrecognized `%s' for %s"
1076 log-file
1077 (1+ (count-lines (point-min) pos))
1078 file author)
1079 authors-invalid-file-names)))
1080 valid)))
1081
1082 (defun authors-add-fixed-entries (table)
1083 "Add actions from `authors-fixed-entries' to TABLE."
1084 (dolist (entry authors-fixed-entries)
1085 (let ((author (car entry))
1086 action)
1087 (dolist (item (cdr entry))
1088 (if (symbolp item)
1089 (setq action item)
1090 (authors-add author item action table))))))
1091
1092
1093 (defun authors-obsolete-file-p (file)
1094 "Return non-nil if FILE is obsolete.
1095 FILE is considered obsolete if it matches one of the regular expressions
1096 from `authors-obsolete-files-regexps'."
1097 (let (obsolete-p
1098 (regexps authors-obsolete-files-regexps))
1099 (while (and regexps (not obsolete-p))
1100 (setq obsolete-p (string-match (car regexps) file)
1101 regexps (cdr regexps)))
1102 obsolete-p))
1103
1104 (defun authors-no-scan-file-p (file)
1105 "Return non-nil if FILE should not be scanned.
1106 FILE is not scanned if it matches any of `authors-no-scan-regexps'."
1107 (let (no-scan-p
1108 (regexps authors-no-scan-regexps))
1109 (while (and regexps (not no-scan-p))
1110 (setq no-scan-p (string-match-p (car regexps) file)
1111 regexps (cdr regexps)))
1112 no-scan-p))
1113
1114 (defun authors-add (author file action table)
1115 "Record that AUTHOR worked on FILE.
1116 ACTION is a keyword symbol describing what he did. Record file,
1117 author and what he did in hash table TABLE. See the description of
1118 `authors-scan-change-log' for the structure of the hash table."
1119 (unless (or (member file authors-ignored-files)
1120 (authors-obsolete-file-p file)
1121 (equal author ""))
1122 (let* ((value (gethash author table))
1123 (entry (assoc file value))
1124 slot)
1125 (if (null entry)
1126 (puthash author (cons (list file (cons action 1)) value) table)
1127 (if (setq slot (assoc action (cdr entry)))
1128 (setcdr slot (1+ (cdr slot)))
1129 (nconc entry (list (cons action 1))))))))
1130
1131
1132 (defun authors-canonical-author-name (author)
1133 "Return a canonicalized form of AUTHOR, an author name.
1134 If AUTHOR has an entry in `authors-aliases', use that. Remove
1135 email addresses. Capitalize words in the author's name, unless
1136 it is found in `authors-fixed-case'."
1137 (let* ((aliases authors-aliases)
1138 regexps realname)
1139 (while aliases
1140 (setq realname (car (car aliases))
1141 regexps (cdr (car aliases))
1142 aliases (cdr aliases))
1143 (while regexps
1144 (if (string-match (car regexps) author)
1145 (setq author realname
1146 regexps nil
1147 aliases nil)
1148 (setq regexps (cdr regexps))))))
1149 (when author
1150 (setq author (replace-regexp-in-string "[ \t]*[(<].*$" "" author))
1151 (setq author (replace-regexp-in-string "\`[ \t]+" "" author))
1152 (setq author (replace-regexp-in-string "[ \t]+$" "" author))
1153 (setq author (replace-regexp-in-string "[ \t]+" " " author))
1154 (unless (string-match "[-, \t]" author)
1155 (setq author ""))
1156 (or (car (member author authors-fixed-case))
1157 (capitalize author))))
1158
1159 (defun authors-scan-change-log (log-file table)
1160 "Scan change log LOG-FILE for author information.
1161
1162 For each change mentioned in the log, add an entry to hash table TABLE
1163 under the author's canonical name.
1164
1165 Keys of TABLE are author names. Values are alists of entries (FILE
1166 \(ACTION . COUNT) ...). FILE is one file the author worked on. The
1167 rest of the entry is a list of keyword symbols describing what he did
1168 with the file and the number of each action:
1169
1170 :wrote means the author wrote the file
1171 :cowrote means he wrote the file in collaboration with others
1172 :changed means he changed the file COUNT times."
1173
1174 (let* ((enable-local-variables :safe) ; for find-file, hence let*
1175 (enable-local-eval nil)
1176 (existing-buffer (get-file-buffer log-file))
1177 (buffer (find-file-noselect log-file))
1178 authors pos)
1179 (with-current-buffer buffer
1180 (save-restriction
1181 (widen)
1182 (goto-char (point-min))
1183 (while (re-search-forward "^[0-9]\\|^[ \t]+\\* " nil t)
1184 (beginning-of-line)
1185 (setq pos (point))
1186 (cond ((looking-at "^[0-9]+-[0-9]+-[0-9]+")
1187 ;; Handle joint authorship of changes.
1188 ;; This can be a bit fragile, and is not too common.
1189 (setq authors nil)
1190 (while (progn
1191 (skip-chars-forward " \t+:0-9-")
1192 (not (looking-at "\\($\\|\\*\\|\
1193 Suggested\\|Trivial\\|Version\\|Originally\\|From:\\|Patch[ \t]+[Bb]y\\)")))
1194 (push (authors-canonical-author-name
1195 (buffer-substring-no-properties
1196 (point) (line-end-position))) authors)
1197 (forward-line 1)))
1198 ((looking-at "^[ \t]+\\*")
1199 (let ((line (buffer-substring-no-properties
1200 (match-end 0) (line-end-position))))
1201 (while (and (not (string-match ":" line))
1202 (forward-line 1)
1203 (not (looking-at ":\\|^[ \t]*$")))
1204 (setq line (concat line
1205 (buffer-substring-no-properties
1206 (line-beginning-position)
1207 (line-end-position)))))
1208 (when (string-match ":" line)
1209 (setq line (substring line 0 (match-beginning 0)))
1210 (setq line (replace-regexp-in-string "[[(<{].*$" "" line))
1211 (setq line (replace-regexp-in-string "," "" line))
1212 (dolist (file (split-string line))
1213 (when (setq file (authors-canonical-file-name file log-file pos (car authors)))
1214 (dolist (author authors)
1215 ;;(message "%s changed %s" author file)
1216 (authors-add author file :changed table)))))
1217 (forward-line 1)))))))
1218 (unless existing-buffer
1219 (kill-buffer buffer))))
1220
1221
1222 (defun authors-scan-el (file table)
1223 "Scan Lisp file FILE for author information.
1224 TABLE is a hash table to add author information to."
1225 (let* ((existing-buffer (get-file-buffer file))
1226 (enable-local-variables :safe) ; for find-file, hence let*
1227 (enable-local-eval nil)
1228 (buffer (find-file-noselect file)))
1229 (setq file (authors-disambiguate-file-name (expand-file-name file)))
1230 (with-current-buffer buffer
1231 (save-restriction
1232 (widen)
1233 (goto-char (point-min))
1234 (while (and (re-search-forward
1235 "^;+[ \t]*\\(Authors?\\|Commentary\\|Code\\):[ \t]*" nil t)
1236 (not (member (match-string 1) '("Commentary" "Code"))))
1237 (let ((continue t)
1238 (action :wrote)
1239 authors)
1240 (while continue
1241 ;; Some entries contain a year range in front of the
1242 ;; author's name.
1243 (skip-chars-forward "-0-9 \t")
1244 (push (authors-canonical-author-name
1245 (buffer-substring-no-properties
1246 (point) (line-end-position))) authors)
1247 ;; tips.texi says the continuation line should begin
1248 ;; with a tab, but often spaces are used.
1249 (setq continue
1250 (and (zerop (forward-line 1))
1251 (looking-at ";;;?\\(\t+ *\\| +\\)[[:alnum:]]")
1252 (goto-char (1- (match-end 0)))
1253 (not (looking-at "[[:upper:]][-[:alpha:]]+:[ \t]")))))
1254 (and (> (length authors) 1)
1255 (setq action :cowrote))
1256 (mapc (lambda (author)
1257 (authors-add author file action table))
1258 authors)))))
1259 (unless existing-buffer
1260 (kill-buffer buffer))))
1261
1262
1263 (defun authors-public-domain-p (file)
1264 "Return t if FILE is a file that was put in public domain."
1265 (let ((public-domain-p nil)
1266 (list authors-public-domain-files))
1267 (while (and list (not public-domain-p))
1268 (when (string-match (car list) file)
1269 (setq public-domain-p t))
1270 (setq list (cdr list)))
1271 public-domain-p))
1272
1273 (defvar authors-author-list)
1274
1275 (defun authors-add-to-author-list (author changes)
1276 "Insert information about AUTHOR's work on Emacs into `authors-author-list'.
1277 CHANGES is an alist of entries (FILE (ACTION . COUNT) ...), as produced by
1278 `authors-scan-change-log'.
1279 The element added to `authors-author-list' is (AUTHOR WROTE CO-WROTE CHANGED),
1280 where WROTE, CO-WROTE, and CHANGED are lists of the files written, co-written
1281 and changed by AUTHOR."
1282 (when author
1283 (let ((nchanged 0)
1284 wrote-list
1285 cowrote-list
1286 changed-list)
1287 (dolist (change changes)
1288 (let* ((actions (cdr change))
1289 (file (car change))
1290 (filestat (if (authors-public-domain-p file)
1291 (concat file " (public domain)")
1292 file)))
1293 (cond ((assq :wrote actions)
1294 (setq wrote-list (cons filestat wrote-list)))
1295 ((assq :cowrote actions)
1296 (setq cowrote-list (cons filestat cowrote-list)))
1297 (t
1298 (setq changed-list
1299 (cons (cons file (cdr (assq :changed actions)))
1300 changed-list))))))
1301 (if wrote-list
1302 (setq wrote-list (sort wrote-list 'string-lessp)))
1303 (if cowrote-list
1304 (setq cowrote-list (sort cowrote-list 'string-lessp)))
1305 (when changed-list
1306 (setq changed-list (sort changed-list
1307 (lambda (a b)
1308 (if (= (cdr a) (cdr b))
1309 (string-lessp (car a) (car b))
1310 (> (cdr a) (cdr b))))))
1311 (setq nchanged (length changed-list))
1312 (setq changed-list (mapcar 'car changed-list)))
1313 (if (> (- nchanged authors-many-files) 2)
1314 (setcdr (nthcdr authors-many-files changed-list)
1315 (list (format "and %d other files" (- nchanged authors-many-files)))))
1316 (setq authors-author-list
1317 (cons (list author wrote-list cowrote-list changed-list)
1318 authors-author-list)))))
1319
1320 (defun authors (root)
1321 "Extract author information from change logs and Lisp source files.
1322 ROOT is the root directory under which to find the files. If called
1323 interactively, ROOT is read from the minibuffer.
1324 Result is a buffer *Authors* containing authorship information, and a
1325 buffer *Authors Errors* containing references to unknown files."
1326 (interactive "DEmacs source directory: ")
1327 (setq root (expand-file-name root))
1328 (let ((logs (process-lines find-program root "-name" "ChangeLog*"))
1329 (table (make-hash-table :test 'equal))
1330 (buffer-name "*Authors*")
1331 authors-checked-files-alist
1332 authors-invalid-file-names)
1333 (authors-add-fixed-entries table)
1334 (unless (file-exists-p (expand-file-name "src/emacs.c" root))
1335 (unless (y-or-n-p
1336 (format "Not the root directory of Emacs: %s, continue? " root))
1337 (error "Not the root directory")))
1338 (dolist (log logs)
1339 (when (string-match "ChangeLog\\(.[0-9]+\\)?$" log)
1340 (message "Scanning %s..." log)
1341 (authors-scan-change-log log table)))
1342 (let ((els (process-lines find-program root "-name" "*.el")))
1343 (dolist (file els)
1344 (unless (authors-no-scan-file-p file)
1345 (message "Scanning %s..." file)
1346 (authors-scan-el file table))))
1347 (message "Generating buffer %s..." buffer-name)
1348 (set-buffer (get-buffer-create buffer-name))
1349 (erase-buffer)
1350 (set-buffer-file-coding-system authors-coding-system)
1351 (insert
1352 "Many people have contributed code included in the Free Software
1353 Foundation's distribution of GNU Emacs. To show our appreciation for
1354 their public spirit, we list here in alphabetical order a condensed
1355 list of their contributions.\n")
1356 (let (authors-author-list)
1357 (maphash #'authors-add-to-author-list table)
1358 (setq authors-author-list
1359 (sort authors-author-list
1360 (lambda (a b)
1361 (string-collate-lessp (car a) (car b)
1362 (if (eq system-type 'windows-nt)
1363 "enu_USA"
1364 "en_US.UTF-8")))))
1365 (dolist (a authors-author-list)
1366 (let ((author (car a))
1367 (wrote (nth 1 a))
1368 (cowrote (nth 2 a))
1369 (changed (nth 3 a)))
1370 (insert "\n" author ": ")
1371 (when wrote
1372 (insert "wrote")
1373 (dolist (file wrote)
1374 (if (> (+ (current-column) (length file)) 72)
1375 (insert "\n "))
1376 (insert " " file))
1377 (insert "\n"))
1378 (when cowrote
1379 (if wrote
1380 (insert "and "))
1381 (insert "co-wrote")
1382 (dolist (file cowrote)
1383 (if (> (+ (current-column) (length file)) 72)
1384 (insert "\n "))
1385 (insert " " file))
1386 (insert "\n"))
1387 (when changed
1388 (if (or wrote cowrote)
1389 (insert "and "))
1390 (insert "changed")
1391 (dolist (file changed)
1392 (if (> (+ (current-column) (length file)) 72)
1393 (insert "\n "))
1394 (insert " " file))
1395 (insert "\n")))))
1396 (insert "\nLocal" " Variables:\ncoding: "
1397 (symbol-name authors-coding-system) "\nEnd:\n")
1398 (message "Generating buffer %s... done" buffer-name)
1399 (unless noninteractive
1400 (when authors-invalid-file-names
1401 (with-current-buffer (get-buffer-create "*Authors Errors*")
1402 (setq buffer-read-only nil)
1403 (erase-buffer)
1404 (set-buffer-file-coding-system authors-coding-system)
1405 (insert "Unrecognized file entries found:\n\n")
1406 (mapc (lambda (f) (if (not (string-match "^[A-Za-z]+$" f)) (insert f "\n")))
1407 (sort authors-invalid-file-names 'string-lessp))
1408 (goto-char (point-min))
1409 (compilation-mode)
1410 (message "Errors were found. See buffer %s" (buffer-name))))
1411 (pop-to-buffer buffer-name))))
1412
1413
1414 (defun batch-update-authors ()
1415 "Produce an AUTHORS file.
1416 Call this function in batch mode with two command line arguments FILE
1417 and ROOT. FILE is the file to write, ROOT is the root directory of
1418 the Emacs source tree, from which to build the file."
1419 (unless noninteractive
1420 (error "`batch-update-authors' is to be used only with -batch"))
1421 (when (/= (length command-line-args-left) 2)
1422 (error "Call `batch-update-authors' with the name of the file to write"))
1423 (let* ((file (pop command-line-args-left))
1424 (root (pop command-line-args-left)))
1425 (authors root)
1426 (write-file file)))
1427
1428 (provide 'authors)
1429
1430 ;;; authors.el ends here