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