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