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