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