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