Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
[emacs.git] / admin / authors.el
blob3e9e005e222edfb7a7cbef1cd38167f4c9d91fdd
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 ("Morten Welinder" :wrote "dosfns.c" "[many MS-DOS files]" "msdos.h")
625 ("Eli Zaretskii" :wrote "bidi.c" "[bidirectional display in xdisp.c]"
626 "[tty menus in term.c]")
627 ;; Not using this version any more.
628 ;;; ("Pace Willisson" :wrote "ispell.el")
629 ;; FIXME overwritten by Author:.
630 ("Bill Wohler" :cowrote "mh-e.el")
631 ("Garrett Wollman" :changed "sendmail.el")
632 ("Dale R. Worley" :changed "mail-extr.el")
633 ("Jamie Zawinski" :changed "bytecode.c" :wrote "tar-mode.el"
634 :cowrote "disass.el"))
635 "Actions taken from the original, manually (un)maintained AUTHORS file.")
638 (defconst authors-valid-file-names
639 '("aclocal.m4"
640 "build-ins.in"
641 "Makefile"
642 "Makefile.noleim"
643 "makedist.bat"
644 "makefile.def"
645 "makefile.nt"
646 "ns.mk"
647 "README"
648 ;; There were a few of these, not just the generated top-level one.
649 "configure" "config.h"
650 "is_exec.c" "sigaction.c"
651 ;; nt/
652 "ebuild.bat" "install.bat" "fast-install.bat"
653 "debug.bat.in" "emacs.bat.in" "addsection.c"
654 "inc/sys/dir.h" "inc/gettext.h"
655 "time.h"
656 ".gdbinit-union"
657 "alloca.s"
658 "make-delta"
659 "config.w95"
660 "msysconfig.sh"
661 "emacstool.1"
662 "align.umax"
663 "cxux-crt0.s"
664 "gould-sigvec.s"
665 "getdate.y"
666 "ymakefile"
667 "permute-index" "index.perm"
668 "ibmrs6000.inp"
669 "b2m.c" "b2m.1" "b2m.pl" "rcs-checkin.1"
670 "emacs.bash" "emacs.csh" "ms-kermit"
671 "emacs.ico"
672 "emacs21.ico"
673 "emacs.py" "emacs2.py" "emacs3.py"
674 "BABYL" "LPF" "LEDIT" "OTHER.EMACSES"
675 "emacs16_mac.png" "emacs24_mac.png"
676 "emacs256_mac.png" "emacs32_mac.png"
677 "emacs48_mac.png" "emacs512_mac.png"
678 "ps-prin2.ps" "ps-prin3.ps"
679 "emacs.xbm" "gnu.xpm" "gnus-pointer.xbm" "gnus-pointer.xpm"
680 ;; Moved from etc/ to etc/images, and/or removed.
681 "gnus.pbm" "gnus.xbm" "gnus.xpm" "letter.pbm" "letter.xbm" "letter.xpm"
682 "splash.pbm" "splash.xbm" "splash.xpm" "splash8.xpm"
683 "images/execute.pbm" "images/execute.xpm" "images/fld-open.pbm"
684 "images/fld-open.xpm" "images/highlight.pbm" "images/highlight.xpm"
685 "images/mail.pbm" "images/mail.xpm" "images/mail/alias.pbm"
686 "images/mail/alias.xpm" "images/mail/refile.pbm"
687 "images/mail/refile.xpm" "images/page-down.pbm"
688 "images/page-down.xpm" "images/widen.pbm" "images/widen.xpm"
689 "images/gnus/bar.xbm" "images/gnus/bar.xpm"
690 "images/gnus/reverse-smile.xpm"
691 "notes/commits" "notes/changelogs"
692 "revdiff" ; admin/
693 "vcdiff" "rcs-checkin" "tindex.pl"
694 "mainmake" "sed1.inp" "sed2.inp" "sed3.inp" ; msdos/
695 "mac-fix-env.m"
696 ;; Deleted vms stuff:
697 "temacs.opt" "descrip.mms" "compile.com" "link.com"
698 "compact.el" "fadr.el"
699 "calc/calc-maint.el"
700 "emacs-lisp/cl-specs.el"
701 "emacs-lisp/eieio-comp.el"
702 "emacs-lisp/eieio-generic.el"
703 "erc-hecomplete.el"
704 "eshell/esh-maint.el"
705 "language/persian.el"
706 "ledit.el" "meese.el" "iswitchb.el" "longlines.el"
707 "mh-exec.el" "mh-init.el" "mh-customize.el"
708 "net/zone-mode.el" "xesam.el"
709 "term/mac-win.el" "sup-mouse.el"
710 "term/apollo.el"
711 "term/vt102.el" "term/vt125.el" "term/vt201.el" "term/vt220.el"
712 "term/vt240.el" "term/vt300.el" "term/vt320.el" "term/vt400.el"
713 "term/vt420.el"
714 "url-https.el"
715 "org-mac-message.el" "org-mew.el" "org-w3m.el" "org-vm.el" "org-wl.el"
716 "org-mks.el" "org-remember.el" "org-xoxo.el" "org-docbook.el"
717 "org-freemind.el" "ox-jsinfo.el"
718 "org-exp-blocks.el" ; maybe this is ob-exp now? dunno
719 "org-lparse.el"
720 "org-special-blocks.el" "org-taskjuggler.el"
721 "progmodes/cap-words.el"
722 "w32-common-fns.el"
723 ;; gnus
724 "nnwfm.el" "nnlistserv.el" "nnkiboze.el" "nndb.el" "nnsoup.el"
725 "netrc.el" "password.el" "sasl-cram.el" "sasl-digest.el" "sasl-ntlm.el"
726 "sasl.el" "dig.el" "dns.el" "hex-util.el" "sha1.el" "md4.el"
727 "hmac-def.el" "hmac-md5.el" "ntlm.el" "hashcash.el" "smime-ldap.el"
728 "assistant.el" "gnus-utils.el" "tls.el" "pgg-def.el" "pgg-gpg.el"
729 "gnus-compat.el" "pgg-parse.el" "pgg-pgp.el" "pgg-pgp5.el" "pgg.el"
730 "dns-mode.el" "run-at-time.el" "gnus-encrypt.el" "sha1-el.el"
731 "gnus-gl.el" "gnus.sum.el" "proto-stream.el" "color.el" "color-lab.el"
732 "eww.el" "shr-color.el" "shr.el" "earcon.el" "gnus-audio.el" "encrypt.el"
733 "format-spec.el" "gnus-move.el"
734 ;; doc
735 "getopt.c" "texindex.c" "news.texi" "vc.texi" "vc2-xtra.texi"
736 "back.texi" "vol1.texi" "vol2.texi" "elisp-covers.texi" "two.el"
737 "front-cover-1.texi" "locals.texi" "calendar.texi" "info-stnd.texi"
738 "tasks.texi"
739 "advice.texi" "picture.texi" "texinfo.tex"
740 ;; lwlib:
741 "dispatch.c" "dispatch.h" "xrdb-cpp.c" "xrdb.c"
742 "lwlib-Xol.c" "lwlib-Xol.h" "lwlib-Xolmb.c" "lwlib-Xolmb.h"
743 "lwlib-XolmbP.h"
744 ;; lib/
745 "lib/stdio.c" "lib/gl_openssl.h" "lib/sigprocmask.c"
746 "lib/pthread_sigprocmask.c" "lib/ldtoastr.c" "lib/dummy.c"
747 "lib/ignore-value.h"
748 ;; lib-src/
749 "cvtmail.c" "digest-doc.c" "emacsserver.c" "emacstool.c" "env.c"
750 "etags-vmslib.c" "fakemail.c" "getdate.c" "getopt.h" "getopt1.c"
751 "getopt_.h" "getopt_int.h" "gettext.h" "leditcfns.c" "loadst.c"
752 "make-path.c" "qsort.c" "sorted-doc.c" "tcp.c" "timer.c" "wakeup.c"
753 "yow.c" "grep-changelog" "grep-changelog.1"
754 ;; semantic files now removed from the repository
755 "semantic/bovine/c-by.el" "semantic/bovine/make-by.el"
756 "semantic/bovine/scm-by.el" "semantic/wisent/javat-wy.el"
757 "semantic/wisent/js-wy.el" "semantic/wisent/python-wy.el"
758 "srecode/srt-wy.el"
759 ;; etc/
760 "emacsclient.c" "etags.c" "hexl.c" "make-docfile.c" "movemail.c"
761 "test-distrib.c" "testfile"
762 "tpu-edt.doc" ; see below
763 "obsolete/vc-mcvs.el"
764 "nnwarchive.el"
765 "nnultimate.el"
766 "nnslashdot.el"
767 "webmail.el"
769 "File names which are valid, but no longer exist (or cannot be found)
770 in the repository.")
772 ;; Note that any directory part on the RHS is retained.
773 ;; Cf authors-renamed-files-regexps.
774 ;; NB So only add a directory if needed to disambiguate.
775 ;; FIXME?
776 ;; Although perhaps we could let authors-disambiguate-file-name do that?
777 (defconst authors-renamed-files-alist
778 '(("nt.c" . "w32.c") ("nt.h" . "w32.h")
779 ("ntheap.c" . "w32heap.c") ("ntheap.h" . "w32heap.h")
780 ("ntinevt.c" . "w32inevt.c") ("ntinevt.h" . "w32inevt.h")
781 ("ntproc.c" . "w32proc.c")
782 ("w32console.c" . "w32term.c")
783 ("unexnt.c" . "unexw32.c")
784 ("s/windowsnt.h" . "s/ms-w32.h")
785 ("s/ms-w32.h" . "inc/ms-w32.h")
786 ("src/config.h" . "config.h")
787 ("winnt.el" . "w32-fns.el")
788 ("linux.h" . "gnu-linux.h")
789 ("emacs.manifest" . "emacs-x86.manifest")
790 ("config.emacs" . "configure")
791 ("configure.in" . "configure.ac")
792 ("config.h.dist" . "config.in")
793 ("config.h-dist" . "config.in")
794 ("config.h.in" . "config.in")
795 ("debug.bat" . "debug.bat.in")
796 ("emacs.bat" . "emacs.bat.in")
797 ;; paths.h.dist -> paths.h-dist -> paths.h.in -> paths.in -> epaths.in.
798 ("paths.h.dist" . "epaths.in")
799 ("paths.h-dist" . "epaths.in")
800 ("paths.h.in" . "epaths.in")
801 ("paths.in" . "epaths.in")
802 ("emacs.rc" . "emacs.rc.in")
803 ("emacsclient.rc" . "emacsclient.rc.in")
804 ("patch1" . "sed1.inp")
805 ("INSTALL.MSYS" . "INSTALL")
806 ("server.c" . "emacsserver.c")
807 ("lib-src/etags.c" . "etags.c")
808 ;; msdos/
809 ("is-exec.c" . "is_exec.c")
810 ("enriched.doc" . "enriched.txt")
811 ("GETTING.GNU.SOFTWARE" . "FTP")
812 ("etc/MACHINES" . "MACHINES")
813 ("ONEWS" . "NEWS.19")
814 ("ONEWS.1" . "NEWS.1-17")
815 ("ONEWS.2" . "NEWS.1-17")
816 ("ONEWS.3" . "NEWS.18")
817 ("ONEWS.4" . "NEWS.18")
818 ("ORDERS.USA" . "ORDERS")
819 ("EUROPE" . "ORDERS")
820 ("DIFF" . "OTHER.EMACSES")
821 ("CCADIFF" . "OTHER.EMACSES")
822 ("GOSDIFF" . "OTHER.EMACSES")
823 ;; Nextstep
824 ("nextstep/Cocoa/Emacs.base/Contents/Info.plist" . "nextstep/templates/Info.plist.in")
825 ;; Moved from lisp/tpu-doc.el to etc/tpu-edt.doc in Emacs 19.29.
826 ;; Removed in Emacs 19.30, replaced by new file etc/edt-user.doc
827 ;; (no associated ChangeLog entry).
828 ("tpu-doc.el" . "tpu-edt.doc")
829 ("Makefile.in.in" . "Makefile.in")
830 ("leim-Makefile" . "leim/Makefile")
831 ("leim-Makefile.in" . "leim/Makefile.in")
832 ("emacs-lisp/testcover-ses.el" . "tcover-ses.el")
833 ("emacs-lisp/testcover-unsafep.el" . "tcover-unsafep.el")
834 ("progmodes/dos.el" . "bat-mode.el")
835 ;; index and pick merged into search.
836 ("mh-index.el" . "mh-search.el")
837 ("mh-pick.el" . "mh-search.el")
838 ("font-setting.el" . "dynamic-setting.el")
839 ("help-funs.el" . "help-fns.el")
840 ("erc-notifications.el" . "erc-desktop-notifications.el")
841 ("org-complete.el" . "org-pcomplete.el")
842 ("org-export.el" . "ox.el") ; ?
843 ;; Was definitely renamed to org-latex.el, then... ?
844 ("org-export-latex.el" . "ox-latex.el") ; ?
845 ("org-exp.el" . "ox.el") ; ?
846 ("progmodes/cfengine3.el" . "cfengine.el")
847 ("progmodes/delphi.el" . "opascal.el")
848 ("octave-inf.el" . "octave.el")
849 ("octave-mod.el" . "octave.el")
850 ("progmodes/octave-inf.el" . "octave.el")
851 ("progmodes/octave-mod.el" . "octave.el")
852 ;; Obsolete.
853 ("emacs-lisp/assoc.el" . "assoc.el")
854 ("emacs-lisp/cust-print.el" . "cust-print.el")
855 ("emacs-lisp/gulp.el" . "gulp.el")
856 ("emulation/crisp.el" . "crisp.el")
857 ("emulation/tpu-edt.el" . "tpu-edt.el")
858 ("emulation/tpu-extras.el" . "tpu-extras.el")
859 ("emulation/tpu-mapper.el" . "tpu-mapper.el")
860 ("emulation/vi.el" . "vi.el")
861 ("emulation/vip.el" . "vip.el")
862 ("emulation/ws-mode.el" . "ws-mode.el")
863 ("mail/mailpost.el" . "mailpost.el")
864 ("net/eudcb-ph.el" . "eudcb-ph.el")
865 ("play/bruce.el" . "bruce.el")
866 ("lisp/play/landmark.el" . "landmark.el")
867 ("play/yow.el" . "yow.el")
868 ("patcomp.el" . "patcomp.el")
869 ("emulation/ws-mode.el" . "ws-mode.el")
870 ("vc/vc-arch.el" . "vc-arch.el")
871 ;; From lisp to etc/forms.
872 ("forms-d2.el" . "forms-d2.el")
873 ("forms-pass.el" . "forms-pass.el")
874 ;; From lisp/ to etc/nxml.
875 ("nxml/test.invalid.xml" . "test-invalid.xml")
876 ("nxml/test.valid.xml" . "test-valid.xml")
877 ;; The one in lisp is eshell/eshell.el.
878 ("eshell.el" . "automated/eshell.el")
879 ("eshell/esh-test.el" . "automated/eshell.el")
880 ("automated/cl-lib.el" . "automated/cl-lib-tests.el")
881 ("automated/package-x-test.el" . "automated/package-test.el")
882 ("indent/js-indent-first-initialiser-t.js" . "indent/js-indent-init-t.js")
883 ("indent/js-indent-first-initialiser-dynamic.js" .
884 "indent/js-indent-init-dynamic.js")
885 ;; INSTALL-CVS -> .CVS -> .BZR -> .REPO
886 ("INSTALL-CVS" . "INSTALL.REPO")
887 ("INSTALL.CVS" . "INSTALL.REPO")
888 ("INSTALL.BZR" . "INSTALL.REPO")
889 ("gnus-logo.eps" . "gnus-logo.eps") ; moved to refcards/
890 ("build-install" . "build-ins.in")
891 ("build-install.in" . "build-ins.in")
892 ("unidata/Makefile" . "unidata/Makefile.in")
893 ("mac/uvs.el" . "unidata/uvs.el")
894 ;; Moved from top to etc/
895 ("CONTRIBUTE" . "CONTRIBUTE")
896 ("FTP" . "FTP")
897 ;; Moved from top to build-aux/
898 ("move-if-change" . "move-if-change")
899 ("update-subdirs" . "update-subdirs")
900 ("emacs.tex" . "emacs.texi")
901 ("faq.texi" . "efaq.texi")
902 ("major.texi" . "modes.texi")
903 ("msdog-xtra.texi" . "msdos-xtra.texi")
904 ("msdog.texi" . "msdos.texi")
905 ;; Moved from lisp/gnus/ to lisp/calendar/
906 ("time-date.el" . "calendar/time-date.el")
907 ;; Moved from lisp/gnus/ to lisp/mail/
908 ("binhex.el" . "mail/binhex.el")
909 ("uudecode.el" . "mail/uudecode.el")
910 ;; Moved from lisp/gnus/ to lisp/net/
911 ("imap.el" . "net/imap.el")
912 ("rfc2104.el" . "net/rfc2104.el")
913 ;; And from emacs/ to misc/ and back again.
914 ("ns-emacs.texi" . "macos.texi")
915 ("overrides.texi" . "gnus-overrides.texi")
916 ("xresmini.texi" . "xresources.texi")
917 ;; Not renamed, but we only have the latter in the Emacs repo.
918 ("trampver.texi.in" . "trampver.texi")
919 ;; Renamed with same directory.
920 ("e/eterm" . "eterm-color")
921 ("e/eterm.ti" . "eterm-color.ti")
922 ("README.txt" . "README")
923 ("emacs.names" . "JOKES")
924 ("ED.WORSHIP" . "JOKES")
925 ("GNU.JOKES" . "JOKES")
926 ("CHARACTERS" . "TODO")
927 ("lisp/character-fold.el" . "lisp/char-fold.el")
928 ("test/automated/character-fold-tests.el" . "test/automated/char-fold-tests.el")
929 ("images/gnus/mail_send.xpm" . "mail-send.xpm") ; still in images/gnus
930 ("schema/xhtml-basic-form.rnc" . "xhtml-bform.rnc" )
931 ("schema/xhtml-basic-table.rnc" . "xhtml-btable.rnc")
932 ("schema/xhtml-list.rnc" . "xhtml-lst.rnc")
933 ("schema/xhtml-target.rnc" . "xhtml-tgt.rnc")
934 ("schema/xhtml-style.rnc" . "xhtml-xstyle.rnc")
935 ("schema/docbook-dyntbl.rnc" . "docbk-dyntbl.rnc")
936 ("schema/docbook-soextbl.rnc" . "docbk-soextbl.rn" )
937 ("edt-user.doc" . "edt.texi")
938 ("DEV-NOTES" . "nextstep")
939 ("org/COPYRIGHT-AND-LICENSE" . "org/README")
940 ;; Moved to different directories.
941 ("ctags.1" . "ctags.1")
942 ("etags.1" . "etags.1")
943 ("emacs.1" . "emacs.1")
944 ("emacsclient.1" . "emacsclient.1")
945 ("icons/emacs21.ico" . "emacs21.ico")
946 ("ja-dic" . "leim/ja-dic")
947 ("quail" . "leim/quail")
948 ;; Moved from autogen/ to admin/.
949 ("autogen/update_autogen" . "update_autogen")
950 ;; Moved from etc/ to admin/.
951 ("grammars" . "grammars")
952 ;; Moved from lisp/emacs-lisp/ to admin/.
953 ("emacs-lisp/authors.el" . "authors.el")
954 ("emacs-lisp/find-gc.el" . "admin/find-gc.el")
955 ;; From etc to lisp/cedet/semantic/.
956 ("grammars/bovine-grammar.el" . "bovine/grammar.el")
957 ("grammars/wisent-grammar.el" . "wisent/grammar.el")
958 ;; Moved from admin/nt/ to nt/.
959 ("nt/README.W32" . "README.W32")
960 ("notes/BRANCH" . "notes/repo")
961 ("notes/bzr" . "notes/repo")
962 ;; moved from lisp/ to lisp/net/
963 ("lisp/pinentry.el" . "lisp/net/pinentry.el")
964 ;; module.* moved to emacs-module.*
965 ("src/module.h" . "src/emacs-module.h")
966 ("src/module.c" . "src/emacs-module.c")
968 "Alist of files which have been renamed during their lifetime.
969 Elements are (OLDNAME . NEWNAME).")
971 ;; Should still test that the renamed file exists. Does it?
972 ;; But it might be relative to a different ChangeLog...
974 ;; Note that only the basename of the RHS is used.
975 ;; Cf authors-renamed-files-alist.
976 (defconst authors-renamed-files-regexps
977 '(("\\`\\(arg-nonnull\\|c\\+\\+defs\\|warn-on-use\\)\\.h\\'"
978 "build-aux/snippet/\\&")
979 ("\\`\\(ebuild\\|emacs\\|install\\|fast-install\\)\\.cmd\\'" "\\1.bat")
980 ("\\`\\(book-spine\\|cl\\|forms\\|functions\\|gnus\\|sc\\|texinfo\\|vip\\)\
981 \\.texinfo\\'" "\\1.texi")
982 ("\\`\\(\\(calc\\|org\\|vip\\)card\\|viperCard\\|\
983 \\(\\(cs\\|fr\\|sk\\)-\\)?dired-ref\\|\
984 \\(\\(cs\\|de\\|fr\\|gnus\\|pl\\|pt-br\\|ru\\|sk\\)-\\)?refcard\\|\
985 \\(\\(cs\\|fr\\|sk\\)-\\)?survival\\)\\.tex\\'" "refcards/\\&")
986 ("\\`refcard-\\(de\\|pl\\)\\.tex\\'" "refcards/\\1-refcard.tex")
987 ("\\`\\(refcards/\\)?fr-drdref\\.tex\\'" "refcards/fr-dired-ref.tex")
988 ("^\\(TUTORIAL[^/]*\\)" "tutorials/\\1")
989 ("\\`themes/dev-\\(tsdh-\\(?:light\\|dark\\)-theme\\.el\\)\\'"
990 "themes/\\1")
991 ;; Moved from lisp/toolbar to etc/images.
992 ("\\`toolbar/\\(back\\|fwd\\|left\\|right\\|up\\)_arrow\
993 \\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/\\1-arrow\\2")
994 ("\\`toolbar/lc-\\(back\\|fwd\\|left\\|right\\|up\\)_arrow\
995 \\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/low-color/\\1-arrow\\2")
996 ("\\`toolbar/mail_\\(compose\\|send\\)\\(\\.[xp]bm\\)\\'"
997 "images/mail/\\1")
998 ("\\`toolbar/jump_to\\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/jump-to\\1")
999 ("\\`toolbar/lc-jump_to\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1000 "images/low-color/jump-to\\1")
1001 ("\\`toolbar/\\(attach\\|cancel\\|close\\|copy\\|cut\\|\
1002 diropen\\|exit\\|help\\|home\\|index\\|info\\|mail\\|new\\|open\\|\
1003 paste\\|preferences\\|print\\|save\\|saveas\\|search\\|search-replace\\|\
1004 spell\\|undo\\)\\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/\\1\\2")
1005 ("\\`toolbar/gud-\\(break\\|cont\\|down\\|finish\\|print\\|pstar\\|\
1006 remove\\|run\\|until\\|up\\|watch\\)\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1007 "images/gud/\\1\\2")
1008 ("\\`\\(toolbar/gud-\\|images/gud/\\)n\\(i\\)?\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1009 "images/gud/next\\2\\3")
1010 ("\\`\\(toolbar/gud-\\|images/gud/\\)s\\(i\\)?\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1011 "images/gud/step\\2\\3")
1012 ("\\`toolbar/lc-\\([-a-z]+\\.xpm\\)\\'" "images/low-color/\\1")
1013 ("^\\(tree-widget/\\(?:default\\|folder\\)/[-a-z]+\\.\\(png\\|xpm\\)\\)$"
1014 "images/\\1")
1015 ("^\\(images/icons/\\)mac\\(emacs\\)_\\([0-9]+\\)\\(\\.png\\)"
1016 "\\1\\2\\3_mac\\4")
1017 ("\\(images/icons/\\)emacs_\\([0-9][0-9]\\)\\.png"
1018 "\\1hicolor/\\2x\\2/apps/emacs.png")
1019 ;; Moved from leim/ to lisp/leim/.
1020 ("\\`quail/[-a-z0-9]+\\.el\\'" "leim/\\&")
1021 ("\\`ja-dic/ja-dic\\.el\\'" "leim/\\&")
1022 ("\\`vc-\\(rcs\\|cvs\\|sccs\\)-hooks\\.el\\'" "vc/vc-\\1.el")
1023 ("\\`vc-\\(annotate\\|arch\\|bzr\\|cvs\\|dav\\|dir\\|dispatcher\\|\
1024 git\\|hg\\|hooks\\|mtn\\|rcs\\|sccs\\|svn\\)\\.el\\'" "vc/\\&")
1025 ("\\`ediff-\\(diff\\|help\\|hook\\|init\\|merg\\|mult\\|ptch\\|util\\|\
1026 vers\\|wind\\)\\.el\\'" "vc/\\&")
1027 ("\\`pcvs-\\(defs\\|info\\|parse\\|util\\)\\.el\\'" "vc/\\&")
1028 ("\\`\\(add-log\\|compare-w\\|cvs-status\\|diff-mode\\|diff\\|\
1029 ediff\\|emerge\\|log-edit\\|log-view\\|pcvs\\|smerge-mode\\|vc\\)\\.el\\'"
1030 "vc/\\&")
1031 ("\\`\\(emacs-lisp/\\)?helpers\\.el\\'" "emacs-lisp/subr-x.el")
1032 ;; I assume this is (essentially) what happened, org/ChangeLog is vague.
1033 ("\\`org-\\(ascii\\|beamer\\|html\\|icalendar\\|jsinfo\\|latex\
1034 \\|odt\\|publish\\)\\.el\\'" "ox-\\1.el")
1035 ;; From test/ to test/automated/.
1036 ("comint-testsuite.el" "automated/\\&")
1037 ("\\`\\(bytecomp\\|font-parse\\|icalendar\\|occur\\|newsticker\\)\
1038 -testsuite\\.el" "automated/\\1-tests.el")
1039 ("automated/flymake/warnpred/\\(Makefile\\|test\\.\\(?:c\\|pl\\)\\)\\'"
1040 "automated/data/flymake/\\1")
1041 ;; NB lax rules should come last.
1042 ("^m/m-\\(.*\\.h\\)$" "m/\\1" t)
1043 ("^m-\\(.*\\.h\\)$" "\\1" t)
1044 ("^s/s-\\(.*\\.h\\)$" "s/\\1" t)
1045 ("^s-\\(.*\\.h\\)$" "\\1" t)
1046 ("\\.\\(el\\|[ch]\\|x[pb]m\\|pbm\\)\\'" t t)
1048 "List of regexps and rewriting rules for renamed files.
1049 Elements are (REGEXP REPLACE [LAX]). If REPLACE is a string, the file
1050 name matching REGEXP is replaced by REPLACE using `replace-string'.
1051 Otherwise, the file name is accepted as is.
1052 Elements with LAX non-nil are only used in `authors-lax-changelogs'.")
1054 ;; It's really not worth trying to make these old logs fully valid.
1055 ;; All the obvious real errors are gone.
1056 ;; The main issue is _lots_ of moving around of files.
1057 ;; Eg the progmodes/ (etc) directories did not exist before 1997.
1058 ;; Also, lib-src/ did not exist, the files were in etc/.
1059 ;; And various other things.
1060 (defconst authors-lax-changelogs
1061 '("erc/ChangeLog\\.1\\'"
1062 "gnus/ChangeLog\\.[1-2]\\'"
1063 "lisp/ChangeLog\\.\\([1-9]\\|1[0-5]\\)\\'"
1064 "mh-e/ChangeLog\\.1\\'"
1065 "src/ChangeLog\\.\\([1-9]\\|1[0-2]\\)\\'")
1066 "List of regexps matching ChangeLogs that we do not print errors from.
1067 These are older ChangeLogs that have various issues.
1068 Additionally, for these logs we apply the `lax' elements of
1069 `authors-renamed-files-regexps'.")
1072 (defvar authors-checked-files-alist)
1073 (defvar authors-invalid-file-names)
1075 ;; This has become rather yucky. :(
1076 (defun authors-disambiguate-file-name (fullname)
1077 "Convert FULLNAME to an unambiguous relative-name."
1078 (let ((relname (file-name-nondirectory fullname))
1079 dir parent)
1080 (if (and (member relname authors-ambiguous-files)
1081 ;; Try to identify the top-level directory.
1082 ;; FIXME should really use ROOT from M-x authors.
1083 (not (and (file-directory-p
1084 (expand-file-name
1085 "lib-src"
1086 (setq dir (file-name-directory fullname))))
1087 (file-directory-p (expand-file-name "etc" dir)))))
1088 ;; I think it looks weird to see eg "lisp/simple.el".
1089 ;; But for eg Makefile.in, we do want to say "lisp/Makefile.in".
1090 (if (and (string-equal "lisp"
1091 (setq parent (file-name-nondirectory
1092 (directory-file-name dir))))
1093 ;; TODO better to simply have hard-coded list?
1094 ;; Only really Makefile.in where this applies.
1095 (not (file-exists-p
1096 (expand-file-name (concat "../" relname) dir))))
1097 relname
1098 ;; In case of ambiguity, just prepend the parent directory.
1099 ;; FIXME obviously this is not a perfect solution.
1100 (format "%s/%s" (file-name-nondirectory (directory-file-name dir))
1101 relname))
1102 relname)))
1104 (defun authors-lax-changelog-p (file)
1105 "Return non-nil if FILE matches `authors-lax-changelogs'."
1106 (let ((list authors-lax-changelogs)
1107 found)
1108 (while list
1109 (setq list (if (setq found (string-match-p (car list) file))
1111 (cdr list))))
1112 found))
1114 (defun authors-canonical-file-name (file log-file pos author)
1115 "Return canonical file name for FILE found in LOG-FILE.
1116 Checks whether FILE is a valid (existing) file name, has been renamed,
1117 or is on the list of removed files. Returns the non-directory part of
1118 the file name. Only uses the LOG-FILE position POS and associated AUTHOR
1119 to print a message if FILE is not found."
1120 ;; FILE should be re-checked in every different directory associated
1121 ;; with a LOG-FILE. Eg configure.ac from src/ChangeLog is not the
1122 ;; same as that from top-level/ChangeLog.
1123 (let* ((fullname (expand-file-name file (file-name-directory log-file)))
1124 (entry (assoc fullname authors-checked-files-alist))
1125 laxlog relname valid)
1126 (if entry
1127 (cdr entry)
1128 (setq relname (file-name-nondirectory file))
1129 (if (or (member file authors-valid-file-names)
1130 (member relname authors-valid-file-names)
1131 (file-exists-p file)
1132 (file-exists-p relname) ; FIXME? appropriate?
1134 (setq valid (authors-disambiguate-file-name fullname))
1135 (if (setq valid (assoc file authors-renamed-files-alist))
1136 (setq valid (cdr valid))
1137 (setq laxlog (authors-lax-changelog-p log-file))
1138 (let ((rules authors-renamed-files-regexps)
1139 rule)
1140 (while rules
1141 (setq rule (car rules))
1142 (if (and (or laxlog (not (nth 2 rule)))
1143 (string-match (car rule) file))
1144 (setq valid (if (stringp (nth 1 rule))
1145 (file-name-nondirectory
1146 (replace-match (nth 1 rule) t nil file))
1147 relname)
1148 rules nil)
1149 (setq rules (cdr rules)))))))
1150 (setq authors-checked-files-alist
1151 (cons (cons fullname valid) authors-checked-files-alist))
1152 (unless (or valid
1153 (member file authors-ignored-files)
1154 (authors-obsolete-file-p file)
1155 (string-match "[*]" file)
1156 (string-match "^[0-9.]+$" file)
1157 laxlog)
1158 (setq authors-invalid-file-names
1159 (cons (format-message "%s:%d: unrecognized `%s' for %s"
1160 log-file
1161 (1+ (count-lines (point-min) pos))
1162 file author)
1163 authors-invalid-file-names)))
1164 valid)))
1166 (defun authors-add-fixed-entries (table)
1167 "Add actions from `authors-fixed-entries' to TABLE."
1168 (dolist (entry authors-fixed-entries)
1169 (let ((author (car entry))
1170 action)
1171 (dolist (item (cdr entry))
1172 (if (symbolp item)
1173 (setq action item)
1174 (authors-add author item action table))))))
1177 (defun authors-obsolete-file-p (file)
1178 "Return non-nil if FILE is obsolete.
1179 FILE is considered obsolete if it matches one of the regular expressions
1180 from `authors-obsolete-files-regexps'."
1181 (let (obsolete-p
1182 (regexps authors-obsolete-files-regexps))
1183 (while (and regexps (not obsolete-p))
1184 (setq obsolete-p (string-match (car regexps) file)
1185 regexps (cdr regexps)))
1186 obsolete-p))
1188 (defun authors-no-scan-file-p (file)
1189 "Return non-nil if FILE should not be scanned.
1190 FILE is not scanned if it matches any of `authors-no-scan-regexps'."
1191 (let (no-scan-p
1192 (regexps authors-no-scan-regexps))
1193 (while (and regexps (not no-scan-p))
1194 (setq no-scan-p (string-match-p (car regexps) file)
1195 regexps (cdr regexps)))
1196 no-scan-p))
1198 (defun authors-add (author file action table)
1199 "Record that AUTHOR worked on FILE.
1200 ACTION is a keyword symbol describing what he did. Record file,
1201 author and what he did in hash table TABLE. See the description of
1202 `authors-scan-change-log' for the structure of the hash table."
1203 (unless (or (member file authors-ignored-files)
1204 (authors-obsolete-file-p file)
1205 (equal author ""))
1206 (let* ((value (gethash author table))
1207 (entry (assoc file value))
1208 slot)
1209 (if (null entry)
1210 (puthash author (cons (list file (cons action 1)) value) table)
1211 (if (setq slot (assoc action (cdr entry)))
1212 (setcdr slot (1+ (cdr slot)))
1213 (nconc entry (list (cons action 1))))))))
1216 (defun authors-canonical-author-name (author)
1217 "Return a canonicalized form of AUTHOR, an author name.
1218 If AUTHOR has an entry in `authors-aliases', use that. Remove
1219 email addresses. Capitalize words in the author's name, unless
1220 it is found in `authors-fixed-case'."
1221 (let* ((aliases authors-aliases)
1222 regexps realname)
1223 (while aliases
1224 (setq realname (car (car aliases))
1225 regexps (cdr (car aliases))
1226 aliases (cdr aliases))
1227 (while regexps
1228 (if (string-match (car regexps) author)
1229 (setq author realname
1230 regexps nil
1231 aliases nil)
1232 (setq regexps (cdr regexps))))))
1233 (when author
1234 (setq author (replace-regexp-in-string "[ \t]*[(<].*$" "" author))
1235 (setq author (replace-regexp-in-string "\\`[ \t]+" "" author))
1236 (setq author (replace-regexp-in-string "[ \t]+$" "" author))
1237 (setq author (replace-regexp-in-string "[ \t]+" " " author))
1238 (unless (string-match "[-, \t]" author)
1239 (setq author ""))
1240 (or (car (member author authors-fixed-case))
1241 (capitalize author))))
1243 (defun authors-scan-change-log (log-file table)
1244 "Scan change log LOG-FILE for author information.
1246 For each change mentioned in the log, add an entry to hash table TABLE
1247 under the author's canonical name.
1249 Keys of TABLE are author names. Values are alists of entries (FILE
1250 \(ACTION . COUNT) ...). FILE is one file the author worked on. The
1251 rest of the entry is a list of keyword symbols describing what he did
1252 with the file and the number of each action:
1254 :wrote means the author wrote the file
1255 :cowrote means he wrote the file in collaboration with others
1256 :changed means he changed the file COUNT times."
1258 (let* ((enable-local-variables :safe) ; for find-file, hence let*
1259 (enable-local-eval nil)
1260 (existing-buffer (get-file-buffer log-file))
1261 (buffer (find-file-noselect log-file))
1262 authors pos)
1263 (with-current-buffer buffer
1264 (save-restriction
1265 (widen)
1266 (goto-char (point-min))
1267 (while (re-search-forward "^[0-9]\\|^[ \t]+\\* " nil t)
1268 (beginning-of-line)
1269 (setq pos (point))
1270 (cond ((looking-at "^[0-9]+-[0-9]+-[0-9]+")
1271 ;; Handle joint authorship of changes.
1272 ;; This can be a bit fragile, and is not too common.
1273 (setq authors nil)
1274 (while (progn
1275 (skip-chars-forward " \t+:0-9-")
1276 (not (looking-at "\\($\\|\\*\\|\
1277 Suggested\\|Trivial\\|Version\\|Originally\\|From:\\|Patch[ \t]+[Bb]y\\)")))
1278 (push (authors-canonical-author-name
1279 (buffer-substring-no-properties
1280 (point) (line-end-position))) authors)
1281 (forward-line 1)))
1282 ((looking-at "^[ \t]+\\*")
1283 (let ((line (buffer-substring-no-properties
1284 (match-end 0) (line-end-position))))
1285 (while (and (not (string-match ":" line))
1286 (forward-line 1)
1287 (not (looking-at ":\\|^[ \t]*$")))
1288 (setq line (concat line
1289 (buffer-substring-no-properties
1290 (line-beginning-position)
1291 (line-end-position)))))
1292 (when (string-match ":" line)
1293 (setq line (substring line 0 (match-beginning 0)))
1294 (setq line (replace-regexp-in-string "[[(<{].*$" "" line))
1295 (setq line (replace-regexp-in-string "," "" line))
1296 (dolist (file (split-string line))
1297 (when (setq file (authors-canonical-file-name file log-file pos (car authors)))
1298 (dolist (author authors)
1299 ;;(message "%s changed %s" author file)
1300 (authors-add author file :changed table)))))
1301 (forward-line 1)))))))
1302 (unless existing-buffer
1303 (kill-buffer buffer))))
1306 (defun authors-scan-el (file table)
1307 "Scan Lisp file FILE for author information.
1308 TABLE is a hash table to add author information to."
1309 (let* ((existing-buffer (get-file-buffer file))
1310 (enable-local-variables :safe) ; for find-file, hence let*
1311 (enable-local-eval nil)
1312 (buffer (find-file-noselect file)))
1313 (setq file (authors-disambiguate-file-name (expand-file-name file)))
1314 (with-current-buffer buffer
1315 (save-restriction
1316 (widen)
1317 (goto-char (point-min))
1318 (while (and (re-search-forward
1319 "^;+[ \t]*\\(Authors?\\|Commentary\\|Code\\):[ \t]*" nil t)
1320 (not (member (match-string 1) '("Commentary" "Code"))))
1321 (let ((continue t)
1322 (action :wrote)
1323 authors)
1324 (while continue
1325 ;; Some entries contain a year range in front of the
1326 ;; author's name.
1327 (skip-chars-forward "-0-9 \t")
1328 (push (authors-canonical-author-name
1329 (buffer-substring-no-properties
1330 (point) (line-end-position))) authors)
1331 ;; tips.texi says the continuation line should begin
1332 ;; with a tab, but often spaces are used.
1333 (setq continue
1334 (and (zerop (forward-line 1))
1335 (looking-at ";;;?\\(\t+ *\\| +\\)[[:alnum:]]")
1336 (goto-char (1- (match-end 0)))
1337 (not (looking-at "[[:upper:]][-[:alpha:]]+:[ \t]")))))
1338 (and (> (length authors) 1)
1339 (setq action :cowrote))
1340 (mapc (lambda (author)
1341 (authors-add author file action table))
1342 authors)))))
1343 (unless existing-buffer
1344 (kill-buffer buffer))))
1347 (defun authors-public-domain-p (file)
1348 "Return t if FILE is a file that was put in public domain."
1349 (let ((public-domain-p nil)
1350 (list authors-public-domain-files))
1351 (while (and list (not public-domain-p))
1352 (when (string-match (car list) file)
1353 (setq public-domain-p t))
1354 (setq list (cdr list)))
1355 public-domain-p))
1357 (defvar authors-author-list)
1359 (defun authors-add-to-author-list (author changes)
1360 "Insert information about AUTHOR's work on Emacs into `authors-author-list'.
1361 CHANGES is an alist of entries (FILE (ACTION . COUNT) ...), as produced by
1362 `authors-scan-change-log'.
1363 The element added to `authors-author-list' is (AUTHOR WROTE CO-WROTE CHANGED),
1364 where WROTE, CO-WROTE, and CHANGED are lists of the files written, co-written
1365 and changed by AUTHOR."
1366 (when author
1367 (let ((nchanged 0)
1368 wrote-list
1369 cowrote-list
1370 changed-list)
1371 (dolist (change changes)
1372 (let* ((actions (cdr change))
1373 (file (car change))
1374 (filestat (if (authors-public-domain-p file)
1375 (concat file " (public domain)")
1376 file)))
1377 (cond ((assq :wrote actions)
1378 (setq wrote-list (cons filestat wrote-list)))
1379 ((assq :cowrote actions)
1380 (setq cowrote-list (cons filestat cowrote-list)))
1382 (setq changed-list
1383 (cons (cons file (cdr (assq :changed actions)))
1384 changed-list))))))
1385 (if wrote-list
1386 (setq wrote-list (sort wrote-list 'string-lessp)))
1387 (if cowrote-list
1388 (setq cowrote-list (sort cowrote-list 'string-lessp)))
1389 (when changed-list
1390 (setq changed-list (sort changed-list
1391 (lambda (a b)
1392 (if (= (cdr a) (cdr b))
1393 (string-lessp (car a) (car b))
1394 (> (cdr a) (cdr b))))))
1395 (setq nchanged (length changed-list))
1396 (setq changed-list (mapcar 'car changed-list)))
1397 (if (> (- nchanged authors-many-files) 2)
1398 (setcdr (nthcdr authors-many-files changed-list)
1399 (list (format "and %d other files" (- nchanged authors-many-files)))))
1400 (setq authors-author-list
1401 (cons (list author wrote-list cowrote-list changed-list)
1402 authors-author-list)))))
1404 (defun authors (root &optional nologupdate)
1405 "Extract author information from change logs and Lisp source files.
1406 ROOT is the root directory under which to find the files.
1407 Interactively, read ROOT from the minibuffer.
1408 Accurate author information requires up-to-date change logs, so this
1409 first updates them, unless optional prefix argument NOLOGUPDATE is non-nil.
1410 The result is a buffer *Authors* containing authorship information,
1411 and a buffer *Authors Errors* containing references to unknown files."
1412 (interactive "DEmacs source directory: \nP")
1413 (setq root (expand-file-name root))
1414 (unless (file-exists-p (expand-file-name "src/emacs.c" root))
1415 (unless (y-or-n-p
1416 (format "Not the root directory of Emacs: %s, continue? " root))
1417 (user-error "Not the root directory")))
1418 ;; May contain your personal entries.
1419 (or (not (file-exists-p (expand-file-name "ChangeLog" root)))
1420 (y-or-n-p "Unversioned ChangeLog present, continue?")
1421 (user-error "Unversioned ChangeLog may have irrelevant entries"))
1422 (or nologupdate
1423 ;; There are likely to be things that need fixing, so we update
1424 ;; the versioned ChangeLog.N rather than the unversioned ChangeLog.
1425 (zerop (call-process "make" nil nil nil
1426 "-C" root "change-history-nocommit"))
1427 (error "Problem updating ChangeLog"))
1428 (let ((logs (process-lines find-program root "-name" "ChangeLog*"))
1429 (table (make-hash-table :test 'equal))
1430 (buffer-name "*Authors*")
1431 authors-checked-files-alist
1432 authors-invalid-file-names)
1433 (authors-add-fixed-entries table)
1434 (dolist (log logs)
1435 (when (string-match "ChangeLog\\(.[0-9]+\\)?$" log)
1436 (message "Scanning %s..." log)
1437 (authors-scan-change-log log table)))
1438 (let ((els (process-lines find-program root "-name" "*.el")))
1439 (dolist (file els)
1440 (unless (authors-no-scan-file-p file)
1441 (message "Scanning %s..." file)
1442 (authors-scan-el file table))))
1443 (message "Generating buffer %s..." buffer-name)
1444 (set-buffer (get-buffer-create buffer-name))
1445 (erase-buffer)
1446 (set-buffer-file-coding-system authors-coding-system)
1447 (insert
1448 "Many people have contributed code included in the Free Software
1449 Foundation's distribution of GNU Emacs. To show our appreciation for
1450 their public spirit, we list here in alphabetical order a condensed
1451 list of their contributions.\n")
1452 (let (authors-author-list)
1453 (maphash #'authors-add-to-author-list table)
1454 (setq authors-author-list
1455 (sort authors-author-list
1456 (lambda (a b)
1457 (string-collate-lessp (car a) (car b)
1458 (if (eq system-type 'windows-nt)
1459 "enu_USA"
1460 "en_US.UTF-8")))))
1461 (dolist (a authors-author-list)
1462 (let ((author (car a))
1463 (wrote (nth 1 a))
1464 (cowrote (nth 2 a))
1465 (changed (nth 3 a)))
1466 (insert "\n" author ": ")
1467 (when wrote
1468 (insert "wrote")
1469 (dolist (file wrote)
1470 (if (> (+ (current-column) (length file)) 72)
1471 (insert "\n "))
1472 (insert " " file))
1473 (insert "\n"))
1474 (when cowrote
1475 (if wrote
1476 (insert "and "))
1477 (insert "co-wrote")
1478 (dolist (file cowrote)
1479 (if (> (+ (current-column) (length file)) 72)
1480 (insert "\n "))
1481 (insert " " file))
1482 (insert "\n"))
1483 (when changed
1484 (if (or wrote cowrote)
1485 (insert "and "))
1486 (insert "changed")
1487 (dolist (file changed)
1488 (if (> (+ (current-column) (length file)) 72)
1489 (insert "\n "))
1490 (insert " " file))
1491 (insert "\n")))))
1492 (insert "\nLocal" " Variables:\ncoding: "
1493 (symbol-name authors-coding-system) "\nEnd:\n")
1494 (message "Generating buffer %s... done" buffer-name)
1495 (unless noninteractive
1496 (when authors-invalid-file-names
1497 (with-current-buffer (get-buffer-create "*Authors Errors*")
1498 (setq buffer-read-only nil)
1499 (erase-buffer)
1500 (set-buffer-file-coding-system authors-coding-system)
1501 (insert "Unrecognized file entries found:\n\n")
1502 (mapc (lambda (f) (if (not (string-match "^[A-Za-z]+$" f)) (insert f "\n")))
1503 (sort authors-invalid-file-names 'string-lessp))
1504 (goto-char (point-min))
1505 (compilation-mode)
1506 (message "Errors were found. See buffer %s" (buffer-name))))
1507 (pop-to-buffer buffer-name))))
1510 (defun batch-update-authors ()
1511 "Produce an AUTHORS file.
1512 Call this function in batch mode with two command line arguments FILE
1513 and ROOT. FILE is the file to write, ROOT is the root directory of
1514 the Emacs source tree, from which to build the file."
1515 (unless noninteractive
1516 (error "`batch-update-authors' is to be used only with -batch"))
1517 (when (/= (length command-line-args-left) 2)
1518 (error "Call `batch-update-authors' with the name of the file to write"))
1519 (let* ((file (pop command-line-args-left))
1520 (root (pop command-line-args-left)))
1521 (authors root)
1522 (write-file file)))
1524 (provide 'authors)
1526 ;;; authors.el ends here