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