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