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