* admin/gitmerge.el (gitmerge-missing):
[emacs.git] / admin / authors.el
blob603ceb3fa08f84e96d0332b6c53c7db28a945b77
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 "cp51932.el"
811 "eucjp-ms.el"
812 "lisp.mk")
813 "File names which are valid, but no longer exist (or cannot be found)
814 in the repository.")
816 ;; Note that any directory part on the RHS is retained.
817 ;; Cf authors-renamed-files-regexps.
818 ;; NB So only add a directory if needed to disambiguate.
819 ;; FIXME?
820 ;; Although perhaps we could let authors-disambiguate-file-name do that?
821 (defconst authors-renamed-files-alist
822 '(("nt.c" . "w32.c") ("nt.h" . "w32.h")
823 ("ntheap.c" . "w32heap.c") ("ntheap.h" . "w32heap.h")
824 ("ntinevt.c" . "w32inevt.c") ("ntinevt.h" . "w32inevt.h")
825 ("ntproc.c" . "w32proc.c")
826 ("w32console.c" . "w32term.c")
827 ("unexnt.c" . "unexw32.c")
828 ("s/windowsnt.h" . "s/ms-w32.h")
829 ("s/ms-w32.h" . "inc/ms-w32.h")
830 ("src/config.h" . "config.h")
831 ("winnt.el" . "w32-fns.el")
832 ("linux.h" . "gnu-linux.h")
833 ("emacs.manifest" . "emacs-x86.manifest")
834 ("config.emacs" . "configure")
835 ("configure.in" . "configure.ac")
836 ("config.h.dist" . "config.in")
837 ("config.h-dist" . "config.in")
838 ("config.h.in" . "config.in")
839 ("debug.bat" . "debug.bat.in")
840 ("emacs.bat" . "emacs.bat.in")
841 ;; paths.h.dist -> paths.h-dist -> paths.h.in -> paths.in -> epaths.in.
842 ("paths.h.dist" . "epaths.in")
843 ("paths.h-dist" . "epaths.in")
844 ("paths.h.in" . "epaths.in")
845 ("paths.in" . "epaths.in")
846 ("emacs.rc" . "emacs.rc.in")
847 ("emacsclient.rc" . "emacsclient.rc.in")
848 ("patch1" . "sed1.inp")
849 ("INSTALL.MSYS" . "INSTALL")
850 ("server.c" . "emacsserver.c")
851 ("lib-src/etags.c" . "etags.c")
852 ;; msdos/
853 ("is-exec.c" . "is_exec.c")
854 ("enriched.doc" . "enriched.txt")
855 ("GETTING.GNU.SOFTWARE" . "FTP")
856 ("etc/MACHINES" . "MACHINES")
857 ("ONEWS" . "NEWS.19")
858 ("ONEWS.1" . "NEWS.1-17")
859 ("ONEWS.2" . "NEWS.1-17")
860 ("ONEWS.3" . "NEWS.18")
861 ("ONEWS.4" . "NEWS.18")
862 ("ORDERS.USA" . "ORDERS")
863 ("EUROPE" . "ORDERS")
864 ("DIFF" . "OTHER.EMACSES")
865 ("CCADIFF" . "OTHER.EMACSES")
866 ("GOSDIFF" . "OTHER.EMACSES")
867 ;; Nextstep
868 ("nextstep/Cocoa/Emacs.base/Contents/Info.plist" . "nextstep/templates/Info.plist.in")
869 ;; Moved from lisp/tpu-doc.el to etc/tpu-edt.doc in Emacs 19.29.
870 ;; Removed in Emacs 19.30, replaced by new file etc/edt-user.doc
871 ;; (no associated ChangeLog entry).
872 ("tpu-doc.el" . "tpu-edt.doc")
873 ("Makefile.in.in" . "Makefile.in")
874 ("leim-Makefile" . "leim/Makefile")
875 ("leim-Makefile.in" . "leim/Makefile.in")
876 ("emacs-lisp/testcover-ses.el" . "tcover-ses.el")
877 ("emacs-lisp/testcover-unsafep.el" . "tcover-unsafep.el")
878 ("progmodes/dos.el" . "bat-mode.el")
879 ;; index and pick merged into search.
880 ("mh-index.el" . "mh-search.el")
881 ("mh-pick.el" . "mh-search.el")
882 ("font-setting.el" . "dynamic-setting.el")
883 ("help-funs.el" . "help-fns.el")
884 ("erc-notifications.el" . "erc-desktop-notifications.el")
885 ("org-complete.el" . "org-pcomplete.el")
886 ("org-export.el" . "ox.el") ; ?
887 ;; Was definitely renamed to org-latex.el, then... ?
888 ("org-export-latex.el" . "ox-latex.el") ; ?
889 ("org-exp.el" . "ox.el") ; ?
890 ("progmodes/cfengine3.el" . "cfengine.el")
891 ("progmodes/delphi.el" . "opascal.el")
892 ("octave-inf.el" . "octave.el")
893 ("octave-mod.el" . "octave.el")
894 ("progmodes/octave-inf.el" . "octave.el")
895 ("progmodes/octave-mod.el" . "octave.el")
896 ;; Obsolete.
897 ("emacs-lisp/assoc.el" . "assoc.el")
898 ("emacs-lisp/cust-print.el" . "cust-print.el")
899 ("emacs-lisp/gulp.el" . "gulp.el")
900 ("abbrevlist.el" . "abbrevlist.el")
901 ("emulation/crisp.el" . "crisp.el")
902 ("emulation/tpu-edt.el" . "tpu-edt.el")
903 ("emulation/tpu-extras.el" . "tpu-extras.el")
904 ("emulation/tpu-mapper.el" . "tpu-mapper.el")
905 ("emulation/vi.el" . "vi.el")
906 ("emulation/vip.el" . "vip.el")
907 ("emulation/ws-mode.el" . "ws-mode.el")
908 ("mail/mailpost.el" . "mailpost.el")
909 ("net/eudcb-ph.el" . "eudcb-ph.el")
910 ("play/bruce.el" . "bruce.el")
911 ("play/landmark.el" . "landmark.el")
912 ("lisp/play/landmark.el" . "landmark.el")
913 ("play/yow.el" . "yow.el")
914 ("patcomp.el" . "patcomp.el")
915 ("emulation/ws-mode.el" . "ws-mode.el")
916 ("vc/vc-arch.el" . "vc-arch.el")
917 ("lisp/gnus/messcompat.el" . "messcompat.el")
918 ("html2text.el" . "html2text.el")
919 ("lisp/net/html2text.el" . "html2text.el")
920 ;; From lisp to etc/forms.
921 ("forms-d2.el" . "forms-d2.el")
922 ("forms-pass.el" . "forms-pass.el")
923 ;; From lisp/ to etc/nxml.
924 ("nxml/test.invalid.xml" . "test-invalid.xml")
925 ("nxml/test.valid.xml" . "test-valid.xml")
926 ("automated/Makefile.in" . "test/Makefile.in")
927 ("rmailmm.el" . "test/rmailmm.el")
928 ;; The one in lisp is eshell/eshell.el.
929 ("eshell.el" . "eshell-tests.el")
930 ("automated/eshell.el" . "eshell-tests.el")
931 ("eshell/esh-test.el" . "eshell-tests.el")
932 ("automated/cl-lib.el" . "cl-lib-tests.el")
933 ("automated/cl-lib-tests.el" . "cl-lib-tests.el")
934 ("automated/package-x-test.el" . "package-tests.el")
935 ("automated/package-test.el" . "package-tests.el")
936 ("indent/js-indent-first-initialiser-t.js" . "indent/js-indent-init-t.js")
937 ("indent/js-indent-first-initialiser-dynamic.js" .
938 "indent/js-indent-init-dynamic.js")
939 ;; INSTALL-CVS -> .CVS -> .BZR -> .REPO
940 ("INSTALL-CVS" . "INSTALL.REPO")
941 ("INSTALL.CVS" . "INSTALL.REPO")
942 ("INSTALL.BZR" . "INSTALL.REPO")
943 ("gnus-logo.eps" . "gnus-logo.eps") ; moved to refcards/
944 ("build-install" . "build-ins.in")
945 ("build-install.in" . "build-ins.in")
946 ("unidata/Makefile" . "unidata/Makefile.in")
947 ("mac/uvs.el" . "unidata/uvs.el")
948 ;; Moved from top to etc/
949 ("CONTRIBUTE" . "CONTRIBUTE")
950 ("FTP" . "FTP")
951 ;; Moved from top to build-aux/
952 ("move-if-change" . "move-if-change")
953 ("update-subdirs" . "update-subdirs")
954 ("emacs.tex" . "emacs.texi")
955 ("faq.texi" . "efaq.texi")
956 ("major.texi" . "modes.texi")
957 ("msdog-xtra.texi" . "msdos-xtra.texi")
958 ("msdog.texi" . "msdos.texi")
959 ;; Moved from lisp/gnus/ to lisp/calendar/
960 ("time-date.el" . "calendar/time-date.el")
961 ;; Moved from lisp/gnus/ to lisp/mail/
962 ("binhex.el" . "mail/binhex.el")
963 ("uudecode.el" . "mail/uudecode.el")
964 ("mail-parse.el" . "mail/mail-parse.el")
965 ("yenc.el" . "mail/yenc.el")
966 ("flow-fill.el" . "mail/flow-fill.el")
967 ("ietf-drums.el" . "mail/ietf-drums.el")
968 ("sieve-manage.el" . "mail/sieve-manage.el")
969 ;; Moved from lisp/gnus/ to lisp/image/
970 ("compface.el" . "image/compface.el")
971 ;; Moved from lisp/gnus/ to lisp/net/
972 ("imap.el" . "net/imap.el")
973 ("rfc2104.el" . "net/rfc2104.el")
974 ("starttls.el" . "net/starttls.el")
975 ;; And from emacs/ to misc/ and back again.
976 ("ns-emacs.texi" . "macos.texi")
977 ("overrides.texi" . "gnus-overrides.texi")
978 ("xresmini.texi" . "xresources.texi")
979 ;; Not renamed, but we only have the latter in the Emacs repo.
980 ("trampver.texi.in" . "trampver.texi")
981 ;; Renamed with same directory.
982 ("e/eterm" . "eterm-color")
983 ("e/eterm.ti" . "eterm-color.ti")
984 ("README.txt" . "README")
985 ("emacs.names" . "JOKES")
986 ("ED.WORSHIP" . "JOKES")
987 ("GNU.JOKES" . "JOKES")
988 ("CHARACTERS" . "TODO")
989 ("lisp/character-fold.el" . "lisp/char-fold.el")
990 ("test/automated/character-fold-tests.el" . "char-fold-tests.el")
991 ("test/automated/char-fold-tests.el" . "char-fold-tests.el")
992 ("test/lisp/character-fold-tests.el" . "char-fold-tests.el")
993 ("test/manual/cycle-tests.el" . "fns-tests.el")
994 ("test/manual/cyclic-tests.el" . "fns-tests.el")
995 ("test/lisp/dns-mode-tests.el" . "dns-mode-tests.el")
996 ("test/lisp/legacy/core-elisp-tests.el" . "lisp-tests.el")
997 ("test/lisp/legacy/decoder-test.el" . "coding-tests.el")
998 ("test/lisp/legacy/files-tests.el" . "files-tests.el")
999 ("test/lisp/legacy/font-parse-tests.el" . "font-tests.el")
1000 ("test/lisp/legacy/lexbind-tests.el" . "bytecomp-test.el")
1001 ("test/lisp/legacy/occur-tests.el" . "replace-tests.el")
1002 ("test/lisp/legacy/syntax-tests.el" . "syntax-tests.el")
1003 ("test/file-organisation.org" . "file-organization.org")
1004 ("images/gnus/mail_send.xpm" . "mail-send.xpm") ; still in images/gnus
1005 ("schema/xhtml-basic-form.rnc" . "xhtml-bform.rnc" )
1006 ("schema/xhtml-basic-table.rnc" . "xhtml-btable.rnc")
1007 ("schema/xhtml-list.rnc" . "xhtml-lst.rnc")
1008 ("schema/xhtml-target.rnc" . "xhtml-tgt.rnc")
1009 ("schema/xhtml-style.rnc" . "xhtml-xstyle.rnc")
1010 ("schema/docbook-dyntbl.rnc" . "docbk-dyntbl.rnc")
1011 ("schema/docbook-soextbl.rnc" . "docbk-soextbl.rn" )
1012 ("edt-user.doc" . "edt.texi")
1013 ("DEV-NOTES" . "nextstep")
1014 ("org/COPYRIGHT-AND-LICENSE" . "org/README")
1015 ("lisp/net/idna.el" . "puny.el")
1016 ;; Moved to different directories.
1017 ("ctags.1" . "ctags.1")
1018 ("etags.1" . "etags.1")
1019 ("emacs.1" . "emacs.1")
1020 ("emacsclient.1" . "emacsclient.1")
1021 ("icons/emacs21.ico" . "emacs21.ico")
1022 ("ja-dic" . "leim/ja-dic")
1023 ("quail" . "leim/quail")
1024 ("admin/notes/triage" . "bug-triage")
1025 ;; Moved from autogen/ to admin/.
1026 ("autogen/update_autogen" . "update_autogen")
1027 ;; Moved from etc/ to admin/.
1028 ("grammars" . "grammars")
1029 ;; Moved from lisp/emacs-lisp/ to admin/.
1030 ("emacs-lisp/authors.el" . "authors.el")
1031 ("emacs-lisp/find-gc.el" . "admin/find-gc.el")
1032 ;; From etc to lisp/cedet/semantic/.
1033 ("grammars/bovine-grammar.el" . "bovine/grammar.el")
1034 ("grammars/wisent-grammar.el" . "wisent/grammar.el")
1035 ;; Moved from admin/nt/ to nt/.
1036 ("nt/README.W32" . "README.W32")
1037 ("notes/BRANCH" . "notes/repo")
1038 ("notes/bzr" . "notes/repo")
1039 ;; moved from lisp/ to lisp/net/
1040 ("lisp/pinentry.el" . "lisp/net/pinentry.el")
1041 ;; module.* moved to emacs-module.*
1042 ("src/module.h" . "src/emacs-module.h")
1043 ("src/module.c" . "src/emacs-module.c")
1044 ;; gnulib
1045 ("lib/strftime.c" . "lib/nstrftime.c")
1047 "Alist of files which have been renamed during their lifetime.
1048 Elements are (OLDNAME . NEWNAME).")
1050 ;; Should still test that the renamed file exists. Does it?
1051 ;; But it might be relative to a different ChangeLog...
1053 ;; Note that only the basename of the RHS is used.
1054 ;; Cf authors-renamed-files-alist.
1055 (defconst authors-renamed-files-regexps
1056 '(("\\`\\(arg-nonnull\\|c\\+\\+defs\\|warn-on-use\\)\\.h\\'"
1057 "lib/\\&")
1058 ("\\`\\(ebuild\\|emacs\\|install\\|fast-install\\)\\.cmd\\'" "\\1.bat")
1059 ("\\`\\(book-spine\\|cl\\|forms\\|functions\\|gnus\\|sc\\|texinfo\\|vip\\)\
1060 \\.texinfo\\'" "\\1.texi")
1061 ("\\`\\(\\(calc\\|org\\|vip\\)card\\|viperCard\\|\
1062 \\(\\(cs\\|fr\\|sk\\)-\\)?dired-ref\\|\
1063 \\(\\(cs\\|de\\|fr\\|gnus\\|pl\\|pt-br\\|ru\\|sk\\)-\\)?refcard\\|\
1064 \\(\\(cs\\|fr\\|sk\\)-\\)?survival\\)\\.tex\\'" "refcards/\\&")
1065 ("\\`refcard-\\(de\\|pl\\)\\.tex\\'" "refcards/\\1-refcard.tex")
1066 ("\\`\\(refcards/\\)?fr-drdref\\.tex\\'" "refcards/fr-dired-ref.tex")
1067 ("^\\(TUTORIAL[^/]*\\)" "tutorials/\\1")
1068 ("\\`themes/dev-\\(tsdh-\\(?:light\\|dark\\)-theme\\.el\\)\\'"
1069 "themes/\\1")
1070 ;; Moved from lisp/toolbar to etc/images.
1071 ("\\`toolbar/\\(back\\|fwd\\|left\\|right\\|up\\)_arrow\
1072 \\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/\\1-arrow\\2")
1073 ("\\`toolbar/lc-\\(back\\|fwd\\|left\\|right\\|up\\)_arrow\
1074 \\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/low-color/\\1-arrow\\2")
1075 ("\\`toolbar/mail_\\(compose\\|send\\)\\(\\.[xp]bm\\)\\'"
1076 "images/mail/\\1")
1077 ("\\`toolbar/jump_to\\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/jump-to\\1")
1078 ("\\`toolbar/lc-jump_to\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1079 "images/low-color/jump-to\\1")
1080 ("\\`toolbar/\\(attach\\|cancel\\|close\\|copy\\|cut\\|\
1081 diropen\\|exit\\|help\\|home\\|index\\|info\\|mail\\|new\\|open\\|\
1082 paste\\|preferences\\|print\\|save\\|saveas\\|search\\|search-replace\\|\
1083 spell\\|undo\\)\\(\\.\\(?:pb\\|xp\\)m\\)\\'" "images/\\1\\2")
1084 ("\\`toolbar/gud-\\(break\\|cont\\|down\\|finish\\|print\\|pstar\\|\
1085 remove\\|run\\|until\\|up\\|watch\\)\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1086 "images/gud/\\1\\2")
1087 ("\\`\\(toolbar/gud-\\|images/gud/\\)n\\(i\\)?\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1088 "images/gud/next\\2\\3")
1089 ("\\`\\(toolbar/gud-\\|images/gud/\\)s\\(i\\)?\\(\\.\\(?:pb\\|xp\\)m\\)\\'"
1090 "images/gud/step\\2\\3")
1091 ("\\`toolbar/lc-\\([-a-z]+\\.xpm\\)\\'" "images/low-color/\\1")
1092 ("^\\(tree-widget/\\(?:default\\|folder\\)/[-a-z]+\\.\\(png\\|xpm\\)\\)$"
1093 "images/\\1")
1094 ("^\\(images/icons/\\)mac\\(emacs\\)_\\([0-9]+\\)\\(\\.png\\)"
1095 "\\1\\2\\3_mac\\4")
1096 ("\\(images/icons/\\)emacs_\\([0-9][0-9]\\)\\.png"
1097 "\\1hicolor/\\2x\\2/apps/emacs.png")
1098 ;; Moved from leim/ to lisp/leim/.
1099 ("\\`quail/[-a-z0-9]+\\.el\\'" "leim/\\&")
1100 ("\\`ja-dic/ja-dic\\.el\\'" "leim/\\&")
1101 ("\\`vc-\\(rcs\\|cvs\\|sccs\\)-hooks\\.el\\'" "vc/vc-\\1.el")
1102 ("\\`vc-\\(annotate\\|arch\\|bzr\\|cvs\\|dav\\|dir\\|dispatcher\\|\
1103 git\\|hg\\|hooks\\|mtn\\|rcs\\|sccs\\|svn\\)\\.el\\'" "vc/\\&")
1104 ("\\`ediff-\\(diff\\|help\\|hook\\|init\\|merg\\|mult\\|ptch\\|util\\|\
1105 vers\\|wind\\)\\.el\\'" "vc/\\&")
1106 ("\\`pcvs-\\(defs\\|info\\|parse\\|util\\)\\.el\\'" "vc/\\&")
1107 ("\\`\\(add-log\\|compare-w\\|cvs-status\\|diff-mode\\|diff\\|\
1108 ediff\\|emerge\\|log-edit\\|log-view\\|pcvs\\|smerge-mode\\|vc\\)\\.el\\'"
1109 "vc/\\&")
1110 ("\\`\\(emacs-lisp/\\)?helpers\\.el\\'" "emacs-lisp/subr-x.el")
1111 ;; I assume this is (essentially) what happened, org/ChangeLog is vague.
1112 ("\\`org-\\(ascii\\|beamer\\|html\\|icalendar\\|jsinfo\\|latex\
1113 \\|odt\\|publish\\)\\.el\\'" "ox-\\1.el")
1114 ;; From test/ to test/automated/.
1115 ("comint-testsuite.el" "automated/\\&")
1116 ("\\`\\(bytecomp\\|font-parse\\|icalendar\\|occur\\|newsticker\\)\
1117 -testsuite\\.el" "\\1-tests.el")
1118 ("automated/flymake/warnpred/\\(Makefile\\|test\\.\\(?:c\\|pl\\)\\)\\'"
1119 "automated/data/flymake/\\1")
1120 ;; More complicated than this, but we only use the basename of the RHS.
1121 ("automated/\\([^/]*-test[^/]*\\.el\\)\\'" "\\1")
1122 ;; Maybe not the exact new name, but disambiguates from lisp/.
1123 ("automated/\\([^/]*\\)\\.el\\'" "\\1-tests.el")
1124 ;; NB lax rules should come last.
1125 ("^m/m-\\(.*\\.h\\)$" "m/\\1" t)
1126 ("^m-\\(.*\\.h\\)$" "\\1" t)
1127 ("^s/s-\\(.*\\.h\\)$" "s/\\1" t)
1128 ("^s-\\(.*\\.h\\)$" "\\1" t)
1129 ("\\.\\(el\\|[ch]\\|x[pb]m\\|pbm\\)\\'" t t)
1131 "List of regexps and rewriting rules for renamed files.
1132 Elements are (REGEXP REPLACE [LAX]). If REPLACE is a string, the file
1133 name matching REGEXP is replaced by REPLACE using `replace-string'.
1134 Otherwise, the file name is accepted as is.
1135 Elements with LAX non-nil are only used in `authors-lax-changelogs'.")
1137 ;; It's really not worth trying to make these old logs fully valid.
1138 ;; All the obvious real errors are gone.
1139 ;; The main issue is _lots_ of moving around of files.
1140 ;; Eg the progmodes/ (etc) directories did not exist before 1997.
1141 ;; Also, lib-src/ did not exist, the files were in etc/.
1142 ;; And various other things.
1143 (defconst authors-lax-changelogs
1144 '("erc/ChangeLog\\.1\\'"
1145 "gnus/ChangeLog\\.[1-2]\\'"
1146 "lisp/ChangeLog\\.\\([1-9]\\|1[0-5]\\)\\'"
1147 "mh-e/ChangeLog\\.1\\'"
1148 "src/ChangeLog\\.\\([1-9]\\|1[0-2]\\)\\'")
1149 "List of regexps matching ChangeLogs that we do not print errors from.
1150 These are older ChangeLogs that have various issues.
1151 Additionally, for these logs we apply the `lax' elements of
1152 `authors-renamed-files-regexps'.")
1155 (defvar authors-checked-files-alist)
1156 (defvar authors-invalid-file-names)
1157 (defvar authors-ignored-names)
1159 ;; This has become rather yucky. :(
1160 (defun authors-disambiguate-file-name (fullname)
1161 "Convert FULLNAME to an unambiguous relative-name."
1162 (let ((relname (file-name-nondirectory fullname))
1163 dir parent)
1164 (if (and (member relname authors-ambiguous-files)
1165 ;; Try to identify the top-level directory.
1166 ;; FIXME should really use ROOT from M-x authors.
1167 (not (and (file-directory-p
1168 (expand-file-name
1169 "lib-src"
1170 (setq dir (file-name-directory fullname))))
1171 (file-directory-p (expand-file-name "etc" dir)))))
1172 ;; I think it looks weird to see eg "lisp/simple.el".
1173 ;; But for eg Makefile.in, we do want to say "lisp/Makefile.in".
1174 (if (and (string-equal "lisp"
1175 (setq parent (file-name-nondirectory
1176 (directory-file-name dir))))
1177 ;; TODO better to simply have hard-coded list?
1178 ;; Only really Makefile.in where this applies.
1179 (not (file-exists-p
1180 (expand-file-name (concat "../" relname) dir))))
1181 relname
1182 ;; In case of ambiguity, just prepend the parent directory.
1183 ;; FIXME obviously this is not a perfect solution.
1184 (format "%s/%s" (file-name-nondirectory (directory-file-name dir))
1185 relname))
1186 relname)))
1188 (defun authors-lax-changelog-p (file)
1189 "Return non-nil if FILE matches `authors-lax-changelogs'."
1190 (let ((list authors-lax-changelogs)
1191 found)
1192 (while list
1193 (setq list (if (setq found (string-match-p (car list) file))
1195 (cdr list))))
1196 found))
1198 (defun authors-canonical-file-name (file log-file pos author)
1199 "Return canonical file name for FILE found in LOG-FILE.
1200 Checks whether FILE is a valid (existing) file name, has been renamed,
1201 or is on the list of removed files. Returns the non-directory part of
1202 the file name. Only uses the LOG-FILE position POS and associated AUTHOR
1203 to print a message if FILE is not found."
1204 ;; FILE should be re-checked in every different directory associated
1205 ;; with a LOG-FILE. Eg configure.ac from src/ChangeLog is not the
1206 ;; same as that from top-level/ChangeLog.
1207 (let* ((fullname (expand-file-name file (file-name-directory log-file)))
1208 (entry (assoc fullname authors-checked-files-alist))
1209 laxlog relname valid)
1210 (if entry
1211 (cdr entry)
1212 (setq relname (file-name-nondirectory file))
1213 (if (or (member file authors-valid-file-names)
1214 (member relname authors-valid-file-names)
1215 (file-exists-p file)
1216 (file-exists-p relname) ; FIXME? appropriate?
1218 (setq valid (authors-disambiguate-file-name fullname))
1219 (if (setq valid (assoc file authors-renamed-files-alist))
1220 (setq valid (cdr valid))
1221 (setq laxlog (authors-lax-changelog-p log-file))
1222 (let ((rules authors-renamed-files-regexps)
1223 rule)
1224 (while rules
1225 (setq rule (car rules))
1226 (if (and (or laxlog (not (nth 2 rule)))
1227 (string-match (car rule) file))
1228 (setq valid (if (stringp (nth 1 rule))
1229 (file-name-nondirectory
1230 (replace-match (nth 1 rule) t nil file))
1231 relname)
1232 rules nil)
1233 (setq rules (cdr rules)))))))
1234 (setq authors-checked-files-alist
1235 (cons (cons fullname valid) authors-checked-files-alist))
1236 (unless (or valid
1237 (member file authors-ignored-files)
1238 (authors-obsolete-file-p file)
1239 (string-match "[*]" file)
1240 (string-match "^[0-9.]+$" file)
1241 laxlog)
1242 (setq authors-invalid-file-names
1243 (cons (format-message "%s:%d: unrecognized `%s' for %s"
1244 log-file
1245 (1+ (count-lines (point-min) pos))
1246 file author)
1247 authors-invalid-file-names)))
1248 valid)))
1250 (defun authors-add-fixed-entries (table)
1251 "Add actions from `authors-fixed-entries' to TABLE."
1252 (dolist (entry authors-fixed-entries)
1253 (let ((author (car entry))
1254 action)
1255 (dolist (item (cdr entry))
1256 (if (symbolp item)
1257 (setq action item)
1258 (authors-add author item action table))))))
1261 (defun authors-obsolete-file-p (file)
1262 "Return non-nil if FILE is obsolete.
1263 FILE is considered obsolete if it matches one of the regular expressions
1264 from `authors-obsolete-files-regexps'."
1265 (let (obsolete-p
1266 (regexps authors-obsolete-files-regexps))
1267 (while (and regexps (not obsolete-p))
1268 (setq obsolete-p (string-match (car regexps) file)
1269 regexps (cdr regexps)))
1270 obsolete-p))
1272 (defun authors-no-scan-file-p (file)
1273 "Return non-nil if FILE should not be scanned.
1274 FILE is not scanned if it matches any of `authors-no-scan-regexps'."
1275 (let (no-scan-p
1276 (regexps authors-no-scan-regexps))
1277 (while (and regexps (not no-scan-p))
1278 (setq no-scan-p (string-match-p (car regexps) file)
1279 regexps (cdr regexps)))
1280 no-scan-p))
1282 (defun authors-add (author file action table)
1283 "Record that AUTHOR worked on FILE.
1284 ACTION is a keyword symbol describing what he did. Record file,
1285 author and what he did in hash table TABLE. See the description of
1286 `authors-scan-change-log' for the structure of the hash table."
1287 (unless (or (member file authors-ignored-files)
1288 (authors-obsolete-file-p file)
1289 (equal author ""))
1290 (let* ((value (gethash author table))
1291 (entry (assoc file value))
1292 slot)
1293 (if (null entry)
1294 (puthash author (cons (list file (cons action 1)) value) table)
1295 (if (setq slot (assoc action (cdr entry)))
1296 (setcdr slot (1+ (cdr slot)))
1297 (nconc entry (list (cons action 1))))))))
1300 (defun authors-canonical-author-name (author file pos)
1301 "Return a canonicalized form of AUTHOR, an author name.
1302 If AUTHOR has an entry in `authors-aliases', use that. Remove
1303 email addresses. Capitalize words in the author's name, unless
1304 it is found in `authors-fixed-case'."
1305 (let* ((aliases authors-aliases)
1306 regexps realname)
1307 (while aliases
1308 (setq realname (car (car aliases))
1309 regexps (cdr (car aliases))
1310 aliases (cdr aliases))
1311 (while regexps
1312 (if (string-match (car regexps) author)
1313 (setq author realname
1314 regexps nil
1315 aliases nil)
1316 (setq regexps (cdr regexps))))))
1317 (when author
1318 (setq author (replace-regexp-in-string "[ \t]*[(<].*$" "" author))
1319 (setq author (replace-regexp-in-string "\\`[ \t]+" "" author))
1320 (setq author (replace-regexp-in-string "[ \t]+$" "" author))
1321 (setq author (replace-regexp-in-string "[ \t]+" " " author))
1322 ;; NB this ignores the first name only case.
1323 (unless (string-match "[-, \t]" author)
1324 (or (authors-lax-changelog-p file)
1325 (push (format-message "%s:%d: ignored `%s'"
1326 file (1+ (count-lines (point-min) pos)) author)
1327 authors-ignored-names))
1328 (setq author ""))
1329 (or (car (member author authors-fixed-case))
1330 (capitalize author))))
1332 (defun authors-scan-change-log (log-file table)
1333 "Scan change log LOG-FILE for author information.
1335 For each change mentioned in the log, add an entry to hash table TABLE
1336 under the author's canonical name.
1338 Keys of TABLE are author names. Values are alists of entries (FILE
1339 \(ACTION . COUNT) ...). FILE is one file the author worked on. The
1340 rest of the entry is a list of keyword symbols describing what he did
1341 with the file and the number of each action:
1343 :wrote means the author wrote the file
1344 :cowrote means he wrote the file in collaboration with others
1345 :changed means he changed the file COUNT times."
1347 (let* ((enable-local-variables :safe) ; for find-file, hence let*
1348 (enable-local-eval nil)
1349 (existing-buffer (get-file-buffer log-file))
1350 (buffer (find-file-noselect log-file))
1351 authors pos)
1352 (with-current-buffer buffer
1353 (save-restriction
1354 (widen)
1355 (goto-char (point-min))
1356 (while (re-search-forward "^[0-9]\\|^[ \t]+\\* " nil t)
1357 (beginning-of-line)
1358 (setq pos (point))
1359 (cond ((looking-at "^[0-9]+-[0-9]+-[0-9]+")
1360 ;; Handle joint authorship of changes.
1361 ;; This can be a bit fragile, and is not too common.
1362 (setq authors nil)
1363 (while (progn
1364 (skip-chars-forward " \t+:0-9-")
1365 (not (looking-at "\\($\\|\\*\\|\
1366 Suggested\\|Trivial\\|Version\\|Originally\\|From:\\|Patch[ \t]+[Bb]y\\)")))
1367 (push (authors-canonical-author-name
1368 (buffer-substring-no-properties
1369 (point) (line-end-position)) log-file pos) authors)
1370 (forward-line 1)))
1371 ((looking-at "^[ \t]+\\*")
1372 (let ((line (buffer-substring-no-properties
1373 (match-end 0) (line-end-position))))
1374 (while (and (not (string-match ":" line))
1375 (forward-line 1)
1376 (not (looking-at ":\\|^[ \t]*$")))
1377 (setq line (concat line
1378 (buffer-substring-no-properties
1379 (line-beginning-position)
1380 (line-end-position)))))
1381 (when (string-match ":" line)
1382 (setq line (substring line 0 (match-beginning 0)))
1383 (setq line (replace-regexp-in-string "[[(<{].*$" "" line))
1384 (setq line (replace-regexp-in-string "," "" line))
1385 (dolist (file (split-string line))
1386 (when (setq file (authors-canonical-file-name file log-file pos (car authors)))
1387 (dolist (author authors)
1388 ;;(message "%s changed %s" author file)
1389 (authors-add author file :changed table)))))
1390 (forward-line 1)))))))
1391 (unless existing-buffer
1392 (kill-buffer buffer))))
1395 (defun authors-scan-el (file table)
1396 "Scan Lisp file FILE for author information.
1397 TABLE is a hash table to add author information to."
1398 (let* ((existing-buffer (get-file-buffer file))
1399 (enable-local-variables :safe) ; for find-file, hence let*
1400 (enable-local-eval nil)
1401 (buffer (find-file-noselect file)))
1402 (setq file (expand-file-name file))
1403 (with-current-buffer buffer
1404 (save-restriction
1405 (widen)
1406 (goto-char (point-min))
1407 (while (and (re-search-forward
1408 "^;+[ \t]*\\(Authors?\\|Commentary\\|Code\\):[ \t]*" nil t)
1409 (not (member (match-string 1) '("Commentary" "Code"))))
1410 (let ((continue t)
1411 (action :wrote)
1412 authors)
1413 (while continue
1414 ;; Some entries contain a year range in front of the
1415 ;; author's name.
1416 (skip-chars-forward "-0-9 \t")
1417 (push (authors-canonical-author-name
1418 (buffer-substring-no-properties
1419 (point) (line-end-position))
1420 file (line-beginning-position)) authors)
1421 ;; tips.texi says the continuation line should begin
1422 ;; with a tab, but often spaces are used.
1423 (setq continue
1424 (and (zerop (forward-line 1))
1425 (looking-at ";;;?\\(\t+ *\\| +\\)[[:alnum:]]")
1426 (goto-char (1- (match-end 0)))
1427 (not (looking-at "[[:upper:]][-[:alpha:]]+:[ \t]")))))
1428 (and (> (length authors) 1)
1429 (setq action :cowrote))
1430 (mapc (lambda (author)
1431 (authors-add
1432 author
1433 (authors-disambiguate-file-name file) action table))
1434 authors)))))
1435 (unless existing-buffer
1436 (kill-buffer buffer))))
1439 (defun authors-public-domain-p (file)
1440 "Return t if FILE is a file that was put in public domain."
1441 (let ((public-domain-p nil)
1442 (list authors-public-domain-files))
1443 (while (and list (not public-domain-p))
1444 (when (string-match (car list) file)
1445 (setq public-domain-p t))
1446 (setq list (cdr list)))
1447 public-domain-p))
1449 (defvar authors-author-list)
1451 (defun authors-add-to-author-list (author changes)
1452 "Insert information about AUTHOR's work on Emacs into `authors-author-list'.
1453 CHANGES is an alist of entries (FILE (ACTION . COUNT) ...), as produced by
1454 `authors-scan-change-log'.
1455 The element added to `authors-author-list' is (AUTHOR WROTE CO-WROTE CHANGED),
1456 where WROTE, CO-WROTE, and CHANGED are lists of the files written, co-written
1457 and changed by AUTHOR."
1458 (when author
1459 (let ((nchanged 0)
1460 wrote-list
1461 cowrote-list
1462 changed-list)
1463 (dolist (change changes)
1464 (let* ((actions (cdr change))
1465 (file (car change))
1466 (filestat (if (authors-public-domain-p file)
1467 (concat file " (public domain)")
1468 file)))
1469 (cond ((assq :wrote actions)
1470 (setq wrote-list (cons filestat wrote-list)))
1471 ((assq :cowrote actions)
1472 (setq cowrote-list (cons filestat cowrote-list)))
1474 (setq changed-list
1475 (cons (cons file (cdr (assq :changed actions)))
1476 changed-list))))))
1477 (if wrote-list
1478 (setq wrote-list (sort wrote-list 'string-lessp)))
1479 (if cowrote-list
1480 (setq cowrote-list (sort cowrote-list 'string-lessp)))
1481 (when changed-list
1482 (setq changed-list (sort changed-list
1483 (lambda (a b)
1484 (if (= (cdr a) (cdr b))
1485 (string-lessp (car a) (car b))
1486 (> (cdr a) (cdr b))))))
1487 (setq nchanged (length changed-list))
1488 (setq changed-list (mapcar 'car changed-list)))
1489 (if (> (- nchanged authors-many-files) 2)
1490 (setcdr (nthcdr authors-many-files changed-list)
1491 (list (format "and %d other files" (- nchanged authors-many-files)))))
1492 (setq authors-author-list
1493 (cons (list author wrote-list cowrote-list changed-list)
1494 authors-author-list)))))
1496 (defun authors (root &optional nologupdate)
1497 "Extract author information from change logs and Lisp source files.
1498 ROOT is the root directory under which to find the files.
1499 Interactively, read ROOT from the minibuffer.
1500 Accurate author information requires up-to-date change logs, so this
1501 first updates them, unless optional prefix argument NOLOGUPDATE is non-nil.
1502 The result is a buffer *Authors* containing authorship information,
1503 and a buffer *Authors Errors* containing references to unknown files."
1504 (interactive "DEmacs source directory: \nP")
1505 (setq root (expand-file-name root))
1506 (unless (file-exists-p (expand-file-name "src/emacs.c" root))
1507 (unless (y-or-n-p
1508 (format "Not the root directory of Emacs: %s, continue? " root))
1509 (user-error "Not the root directory")))
1510 ;; May contain your personal entries.
1511 (or (not (file-exists-p (expand-file-name "ChangeLog" root)))
1512 (y-or-n-p "Unversioned ChangeLog present, continue?")
1513 (user-error "Unversioned ChangeLog may have irrelevant entries"))
1514 (or nologupdate
1515 ;; There are likely to be things that need fixing, so we update
1516 ;; the versioned ChangeLog.N rather than the unversioned ChangeLog.
1517 (zerop (call-process "make" nil nil nil
1518 "-C" root "change-history-nocommit"))
1519 (error "Problem updating ChangeLog"))
1520 (let ((logs (process-lines find-program root "-name" "ChangeLog*"))
1521 (table (make-hash-table :test 'equal))
1522 (buffer-name "*Authors*")
1523 authors-checked-files-alist
1524 authors-invalid-file-names
1525 authors-ignored-names)
1526 (authors-add-fixed-entries table)
1527 (dolist (log logs)
1528 (when (string-match "ChangeLog\\(.[0-9]+\\)?$" log)
1529 (message "Scanning %s..." log)
1530 (authors-scan-change-log log table)))
1531 (let ((els (process-lines find-program root "-name" "*.el")))
1532 (dolist (file els)
1533 (unless (authors-no-scan-file-p file)
1534 (message "Scanning %s..." file)
1535 (authors-scan-el file table))))
1536 (message "Generating buffer %s..." buffer-name)
1537 (set-buffer (get-buffer-create buffer-name))
1538 (erase-buffer)
1539 (set-buffer-file-coding-system authors-coding-system)
1540 (insert
1541 "Many people have contributed code included in the Free Software
1542 Foundation's distribution of GNU Emacs. To show our appreciation for
1543 their public spirit, we list here in alphabetical order a condensed
1544 list of their contributions.\n")
1545 (let (authors-author-list)
1546 (maphash #'authors-add-to-author-list table)
1547 (setq authors-author-list
1548 (sort authors-author-list
1549 (lambda (a b)
1550 (string-collate-lessp (car a) (car b)
1551 (if (eq system-type 'windows-nt)
1552 "enu_USA"
1553 "en_US.UTF-8")))))
1554 (dolist (a authors-author-list)
1555 (let ((author (car a))
1556 (wrote (nth 1 a))
1557 (cowrote (nth 2 a))
1558 (changed (nth 3 a)))
1559 (insert "\n" author ": ")
1560 (when wrote
1561 (insert "wrote")
1562 (dolist (file wrote)
1563 (if (> (+ (current-column) (length file)) 72)
1564 (insert "\n "))
1565 (insert " " file))
1566 (insert "\n"))
1567 (when cowrote
1568 (if wrote
1569 (insert "and "))
1570 (insert "co-wrote")
1571 (dolist (file cowrote)
1572 (if (> (+ (current-column) (length file)) 72)
1573 (insert "\n "))
1574 (insert " " file))
1575 (insert "\n"))
1576 (when changed
1577 (if (or wrote cowrote)
1578 (insert "and "))
1579 (insert "changed")
1580 (dolist (file changed)
1581 (if (> (+ (current-column) (length file)) 72)
1582 (insert "\n "))
1583 (insert " " file))
1584 (insert "\n")))))
1585 (insert "\nLocal" " Variables:\ncoding: "
1586 (symbol-name authors-coding-system) "\nEnd:\n")
1587 (message "Generating buffer %s... done" buffer-name)
1588 (unless noninteractive
1589 (when (or authors-invalid-file-names authors-ignored-names)
1590 (with-current-buffer (get-buffer-create "*Authors Errors*")
1591 (setq buffer-read-only nil)
1592 (erase-buffer)
1593 (set-buffer-file-coding-system authors-coding-system)
1594 (when authors-invalid-file-names
1595 (insert "Unrecognized file entries found:\n\n")
1596 (mapc (lambda (f) (if (not (string-match "^[A-Za-z]+$" f)) (insert f "\n")))
1597 (sort authors-invalid-file-names 'string-lessp)))
1598 (when authors-ignored-names
1599 (insert "\n\nThese authors were ignored:\n\n"
1600 (mapconcat
1601 'identity
1602 (sort authors-ignored-names 'string-lessp) "\n")))
1603 (goto-char (point-min))
1604 (compilation-mode)
1605 (message "Errors were found. See buffer %s" (buffer-name))))
1606 (pop-to-buffer buffer-name))))
1609 (defun batch-update-authors ()
1610 "Produce an AUTHORS file.
1611 Call this function in batch mode with two command line arguments FILE
1612 and ROOT. FILE is the file to write, ROOT is the root directory of
1613 the Emacs source tree, from which to build the file."
1614 (unless noninteractive
1615 (error "`batch-update-authors' is to be used only with -batch"))
1616 (when (/= (length command-line-args-left) 2)
1617 (error "Call `batch-update-authors' with the name of the file to write"))
1618 (let* ((file (pop command-line-args-left))
1619 (root (pop command-line-args-left)))
1620 (authors root)
1621 (write-file file)))
1623 (provide 'authors)
1625 ;;; authors.el ends here