(authors-aliases, authors-fixed-case): Add some entries.
[bpt/emacs.git] / lisp / emacs-lisp / authors.el
1 ;;; authors.el --- utility for maintaining Emacs' AUTHORS file -*-coding: utf-8;-*-
2
3 ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
4 ;; 2009 Free Software Foundation, Inc.
5
6 ;; Author: Gerd Moellmann <gerd@gnu.org>
7 ;; Maintainer: Kim F. Storm <storm@cua.dk>
8 ;; Keywords: maint
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' AUTHORS file.
29
30 ;;; Code:
31
32 (defvar authors-coding-system 'utf-8
33 "Coding system used in the AUTHORS file.")
34
35 (defconst authors-many-files 20
36 "Maximum number of files for which to print individual information.
37 If an author has modified more files, only the names of the most
38 frequently modified files are printed and a count of the additional
39 files.")
40
41 (defconst authors-aliases
42 '(
43 ("Aaron S. Hawley" "Aaron Hawley")
44 ("Andrew Csillag" "Drew Csillag")
45 ("Anna M. Bigatti" "Anna Bigatti")
46 ("Barry A. Warsaw" "Barry A. Warsaw, Century Computing, Inc."
47 "Barry A. Warsaw, ITB" "Barry Warsaw")
48 ("Bill Mann" "William F. Mann")
49 ("Bill Rozas" "Guillermo J. Rozas")
50 ("Björn Torkelsson" "Bjorn Torkelsson")
51 ("Brian Fox" "Brian J. Fox")
52 ("Christoph Wedler" "Christoph.Wedler@sap.com")
53 ("Daniel Pfeiffer" "<Daniel.Pfeiffer@Informatik.START.db.de>"
54 "<Daniel.Pfeiffer@Informatik.START.dbp.de>")
55 ("David De La Harpe Golden" "David Golden")
56 ("David Gillespie" "Dave Gillespie")
57 ("David Kågedal" "David K..edal")
58 ("David M. Koppelman" "David M. Koppelman, Koppel@Ec?e.Lsu.Edu"
59 "David Koppelman")
60 ("David M. Smith" "David Smith" "David M Smith")
61 ("Deepak Goel" "D. Goel")
62 ("Ed L. Cashin" "Ed L Cashin")
63 ("Edward M. Reingold" "Ed Reingold" "Edward M Reingold"
64 "Reingold Edward M")
65 ("Eli Zaretskii" "eliz")
66 ("Emilio C. Lopes" "Emilio Lopes")
67 ("Era Eriksson" "Era@Iki.Fi")
68 ("Eric M. Ludlam" "Eric Ludlam")
69 ("Eric S. Raymond" "Eric Raymond")
70 ("Eric Youngdale" "(Eric Youngdale at youngdale@v6550c.nrl.navy.mil)")
71 ("Francis J. Wright" "Dr Francis J. Wright" "Francis Wright")
72 ("François Pinard" "Francois Pinard")
73 ("Francesco Potortì" "Francesco Potorti" "Francesco Potorti`")
74 ("Frederic Pierresteguy" "Fred Pierresteguy")
75 ("Geoff Voelker" "voelker")
76 ("Gerd Möllmann" "Gerd Moellmann")
77 ("Hallvard B. Furuseth" "Hallvard B Furuseth" "Hallvard Furuseth")
78 ("Hrvoje Nikšić" "Hrvoje Niksic")
79 (nil "(afs@hplb.hpl.hp.com)")
80 (nil "<Use-Author-Address-Header@\\[127.1\\]>")
81 (nil "Code Extracted")
82 (nil "\\`FSF")
83 (nil "ISO-2022-JP")
84 ("Jaeyoun Chung" "Jae-youn Chung" "Jae-you Chung" "Chung Jae-youn")
85 ("Jan Djärv" "Jan D." "Jan Djarv")
86 ("Jay K. Adams" "jka@ece.cmu.edu" "Jay Adams")
87 ("Jérôme Marant" "Jérôme Marant" "Jerome Marant")
88 ("Jens-Ulrik Holger Petersen" "Jens-Ulrik Petersen")
89 ("Jeremy Bertram Maitin-Shepard" "Jeremy Maitin-Shepard")
90 ("Johan Bockgård" "Johan Bockgard")
91 ("John W. Eaton" "John Eaton")
92 ("Jonathan I. Kamens" "Jonathan Kamens")
93 ("Joseph Arceneaux" "Joe Arceneaux")
94 ("Joseph M. Kelsey" "Joe Kelsey") ; FIXME ?
95 ("Juan León Lahoz García" "Juan-Leon Lahoz Garcia")
96 ("K. Shane Hartman" "Shane Hartman")
97 ("Kai Großjohann" "Kai Grossjohann" "Kai Großjohann"
98 "Kai.Grossjohann@Cs.Uni-Dortmund.De"
99 "Kai.Grossjohann@Gmx.Net")
100 ("Karl Berry" "K. Berry")
101 ("Károly Lőrentey" "Károly Lőrentey" "Lőrentey Károly")
102 ("Kazushi Marukawa" "Kazushi")
103 ("Ken Manheimer" "Kenneth Manheimer")
104 ("Kenichi Handa" "Ken'ichi Handa" "Kenichi HANDA")
105 ("Kevin Greiner" "Kevin J. Greiner")
106 ("Kim F. Storm" "Kim Storm")
107 ("Kyle Jones" "Kyle E. Jones")
108 ("Marcus G. Daniels" "Marcus Daniels")
109 ("Mark D. Baushke" "Mark D Baushke")
110 ("Marko Kohtala" "Kohtala Marko")
111 ("Agustín Martín" "Agustin Martin")
112 ("Martin Lorentzon" "Martin Lorentzson")
113 ("Matt Swift" "Matthew Swift")
114 ("Maxime Edouard Robert Froumentin" "Max Froumentin")
115 ("Michael R. Mauger" "Michael Mauger")
116 ("Michael D. Ernst" "Michael Ernst")
117 ("Michaël Cadilhac" "Michael Cadilhac")
118 ("Michael I. Bushnell" "Michael I Bushnell" "Michael I. Bushnell, P/Bsg")
119 ("Michael R. Cook" "Michael Cook")
120 ("Michael Sperber" "Michael Sperber \\[Mr. Preprocessor\\]")
121 ("Mikio Nakajima" "Nakajima Mikio")
122 ("Nelson Jose dos Santos Ferreira" "Nelson Ferreira")
123 ("Paul Eggert" "eggert")
124 ("Paul Reilly" "(pmr@legacy.pajato.com)")
125 ("Pavel Janík" "Pavel Janík Ml." "Pavel Janik Ml." "Pavel Janik" "Pavel Janík" "Pavel@Janik.Cz")
126 ("Pavel Kobiakov" "Pavel Kobyakov")
127 ("Per Abrahamsen" "Per Abhiddenware")
128 ("Per Starbäck" "Per Starback")
129 ("Peter S. Galbraith" "Peter Galbraith")
130 ("Peter Runestig" "Peter 'luna' Runestig")
131 ("Peter S. Galbraith" "Peter S Galbraith")
132 ("Raja R. Harinath" "Raja R Harinath")
133 ("Richard G. Bielawski" "Richard G Bielawski" "Richard Bielawski")
134 ("Richard King" "Dick King")
135 ("Richard M. Stallman" "Richard M. Stallman,,," "Richard Stallman"
136 "rms" "rms@gnu.org")
137 ("Robert J. Chassell" "Bob Chassell")
138 ("Roland B. Roberts" "Roland B Roberts" "Roland Roberts")
139 ("Rui-Tao Dong" "Rui-Tao Dong ~{6-Hpln~}")
140 ("Sacha Chua" "Sandra Jean Chua")
141 ("Sam Steingold" "Sam Shteingold")
142 ("Satyaki Das" "Indexed search by Satyaki Das")
143 ;; There are other Stefans.
144 ;;; ("Stefan Monnier" "Stefan")
145 ("Stephen A. Wood" "(saw@cebaf.gov)")
146 ("Steven L. Baur" "SL Baur" "Steven L Baur")
147 ("Stewart M. Clamen" "Stewart Clamen")
148 ("Stuart D. Herring" "Stuart Herring" "Davis Herring")
149 ("Taichi Kawabata" "KAWABATA,? Taichi")
150 ("Takaaki Ota" "Tak Ota")
151 ("Takahashi Naoto" "Naoto Takahashi")
152 ("Teodor Zlatanov" "Ted Zlatanov")
153 ("Thomas Horsley" "Tom Horsley") ; FIXME ?
154 ("Thomas Wurgler" "Tom Wurgler")
155 ("Tomohiko Morioka" "MORIOKA Tomohiko")
156 ("Torbjörn Axelsson" "Torbjvrn Axelsson")
157 ("Torbjörn Einarsson" "Torbj.*rn Einarsson")
158 ("Toru Tomabechi" "Toru Tomabechi,")
159 ("Tsugutomo Enami" "enami tsugutomo")
160 ("Vincent Del Vecchio" "Vince Del Vecchio")
161 ("William M. Perry" "Bill Perry")
162 ("Wlodzimierz Bzyl" "W.*dek Bzyl")
163 ("Yoni Rabkin" "Yoni Rabkin Katzenell")
164 ("Yoshinori Koseki" "KOSEKI Yoshinori" "小関 吉則")
165 ("Yutaka NIIBE" "NIIBE Yutaka")
166 )
167 "Alist of author aliases.
168
169 Each entry is of the form (REALNAME REGEXP...). If an author's name
170 matches one of the REGEXPs, use REALNAME instead.
171 If REALNAME is nil, ignore that author.")
172
173 (defconst authors-fixed-case
174 '("Bryan O'Sullivan"
175 "Christian von Roques"
176 "Christophe de Dinechin"
177 "Craig McDaniel"
178 "David J. MacKenzie"
179 "David McCabe"
180 "David O'Toole"
181 "Dominique de Waleffe"
182 "Edward O'Connor"
183 "Exal de Jesus Garcia Carrillo"
184 "Greg McGary"
185 "Hans de Graaff"
186 "James TD Smith"
187 "Joel N. Weber II"
188 "Michael McNamara"
189 "Mike McEwan"
190 "Nelson Jose dos Santos Ferreira"
191 "Peter von der Ahe"
192 "Peter O'Gorman"
193 "Roland McGrath"
194 "Sean O'Rourke")
195 "List of authors whose names cannot be simply capitalized.")
196
197 (defvar authors-public-domain-files
198 '("emerge\\.el"
199 "vi\\.el"
200 "feedmail\\.el"
201 "mailpost\\.el"
202 "hanoi\\.el"
203 "meese\\.el"
204 "studly\\.el"
205 "modula2\\.el"
206 "nnmaildir\\.el"
207 "nnil\\.el"
208 "b2m\\.c"
209 "unexhp9k800\\.c"
210 "emacsclient\\.1"
211 "check-doc-strings")
212 "List of regexps matching files for which the FSF doesn't need papers.")
213
214
215 (defvar authors-obsolete-files-regexps
216 '("vc-\\*\\.el$"
217 "spec.txt$"
218 ".*loaddefs.el$" ; not obsolete, but auto-generated
219 "vc-\\(rcs\\|cvs\\|sccs\\)-hooks\\.el$")
220 "List of regexps matching obsolete files.
221 Changes to files matching one of the regexps in this list are not
222 listed.")
223
224 (defconst authors-ignored-files
225 '("external-lisp"
226 "lock" "share-lib" "local-lisp"
227 "noleim-Makefile.in"
228 "NEWS" "ORDERS" "PROBLEMS" "FAQ" "AUTHORS" "FOR-RELEASE" "TODO" "todo"
229 "MACHINES" "SERVICE"
230 "README.unicode" "README.multi-tty" "TUTORIAL.translators"
231 "NEWS.unicode" "COPYING.DJ" "Makefile.old" "Makefile.am"
232 "NEWS.1" "OOOOONEWS...OONEWS" "OOOONEWS" "etc/NEWS"
233 "NEWS.1-17" "NEWS.18" "NEWS.19" "NEWS.20" "NEWS.21" "NEWS.22"
234 "MAINTAINERS" "MH-E-NEWS"
235 "install-sh" "missing" "mkinstalldirs"
236 "termcap.dat" "termcap.src" "termcap.ucb" "termcap"
237 "ChangeLog.nextstep" "Emacs.clr" "spec.txt"
238 "gfdl.1"
239 "texi/Makefile.in"
240 "Imakefile" "icons/sink.ico" "aixcc.lex"
241 "nxml/char-name/unicode"
242 ;; Autogen:
243 "cus-load.el" "finder-inf.el" "ldefs-boot.el"
244 ;; Never had any meaningful changes logged, now deleted:
245 "split-man" "Xkeymap.txt" "ms-7bkermit" "ulimit.hack"
246 "gnu-hp300" "refcard.bit" "ledit.l" "forms.README" "forms-d2.dat"
247 "CXTERM-DIC/PY.tit" "CXTERM-DIC/ZIRANMA.tit"
248 "CXTERM-DIC/CTLau.tit" "CXTERM-DIC/CTLauB.tit"
249 "NICKLES.WORTH" "INTERVAL.IDEAS" "RCP"
250 "3B-MAXMEM" "AIX.DUMP" "SUN-SUPPORT" "XENIX"
251 "CODINGS" "CHARSETS"
252 "calc/INSTALL" "calc/Makefile"
253 "vms-pp.trans" "_emacs" "batcomp.com"
254 ;; MH-E stuff not in Emacs:
255 "import-emacs" "release-utils"
256 ;; Erc stuff not in Emacs:
257 "ChangeLog.2001" "ChangeLog.2002" "ChangeLog.2003" "ChangeLog.2004"
258 "ChangeLog.2005"
259 "README.extras" "dir-template" "mkChangeLog" "MkChangeLog" "erc-auto.in"
260 "CREDITS" "HACKING"
261 "debian/changelog"
262 "debian/control"
263 "debian/copyright"
264 "debian/maint/conffiles"
265 "debian/maint/conffiles.in"
266 "debian/maint/postinst"
267 "debian/maint/postinst.in"
268 "debian/maint/prerm"
269 "debian/maint/prerm.in"
270 "debian/README.Debian"
271 "debian/README.erc-speak"
272 "debian/rules"
273 "debian/scripts/install"
274 "debian/scripts/install.in"
275 "debian/scripts/remove"
276 "debian/scripts/remove.in"
277 "debian/scripts/startup"
278 "debian/scripts/startup.erc"
279 "debian/scripts/startup.erc-speak"
280 )
281 "List of files and directories to ignore.
282 Changes to files in this list are not listed.")
283
284 ;; FIXME :cowrote entries here can be overwritten by :wrote entries
285 ;; derived from a file's Author: header (eg mh-e). This really means
286 ;; the Author: header is erroneous.
287 (defconst authors-fixed-entries
288 '(("Richard M. Stallman" :wrote "[The original GNU Emacs and numerous files]")
289 ("Joseph Arceneaux" :wrote "xrdb.c")
290 ;; This refers to the obsolete Willisson (qv) version.
291 ;;; ("Blitz Product Development Corporation" :wrote "ispell.el")
292 ("Frank Bresz" :wrote "diff.el")
293 ("David M. Brown" :wrote "array.el")
294 ;; No longer distributed.
295 ;;; ("Gary Byers" :changed "xenix.h")
296 ("Shawn M. Carey" :wrote "freebsd.h")
297 ;; hp800.h renamed from hp9000s800.h, hpux.h merged into hpux10-20.h.
298 ;; FIXME overwritten by Author:.
299 ("Satyaki Das" :cowrote "mh-search.el")
300 ("Eric Decker" :changed "hp800.h" "hpux10-20.h" "sysdep.c")
301 ("Lawrence R. Dodd" :cowrote "dired-x.el")
302 ;; No longer distributed.
303 ;;; ("Viktor Dukhovni" :wrote "unexsunos4.c")
304 ("Paul Eggert" :wrote "rcs2log" "vcdiff")
305 ("Fred Fish" :changed "unexec.c")
306 ;; No longer distributed.
307 ;;; ("Tim Fleehart" :wrote "makefile.nt")
308 ("Keith Gabryelski" :wrote "hexl.c")
309 ("Kevin Gallagher" :wrote "flow-ctrl.el")
310 ;; Also wrote an earlier version of disp-table.el, since replaced
311 ;; by Erik Naggum's version; also iso-syntax.el, later renamed to
312 ;; latin-1.el, since deleted.
313 ("Howard Gayle" :wrote "casetab.c")
314 ;; :wrote mh-pick.el, since merged into mh-search.el.
315 ;; Originally wrote mh-funcs.el, but it has been rewritten since.
316 ("Stephen Gildea" :wrote "refcard.tex"
317 :cowrote "mh-funcs.el" "mh-search.el")
318 ;; cl.texinfo renamed to cl.texi.
319 ("David Gillespie" :wrote "cl.texi")
320 ;; No longer distributed: emacsserver.c.
321 ("Hewlett-Packard" :changed "emacsclient.c" "server.el" "keyboard.c")
322 ;; No longer distributed.
323 ;;; ("Thomas Horsley" :wrote "cxux.h" "cxux7.h")
324 ("Indiana University Foundation" :changed "buffer.c" "buffer.h"
325 "indent.c" "search.c" "xdisp.c" "region-cache.c" "region-cache.h")
326 ;; ibmrt.h, ibmrt-aix.h no longer distributed.
327 ("International Business Machines" :changed "emacs.c" "fileio.c"
328 "process.c" "sysdep.c" "unexec.c")
329 ;; No longer distributed.
330 ;;; ("Ishikawa Chiaki" :changed "aviion.h" "dgux.h")
331 ;; ymakefile no longer distributed.
332 ("Michael K. Johnson" :changed "configure.in" "emacs.c" "intel386.h"
333 "mem-limits.h" "process.c" "template.h" "sysdep.c" "syssignal.h"
334 "systty.h" "unexec.c" "linux.h")
335 ;; No longer distributed.
336 ;;; ("Kyle Jones" :wrote "mldrag.el")
337 ("Henry Kautz" :wrote "bib-mode.el")
338 ;; No longer distributed: vms-pwd.h, vmsfns.c, uaf.h.
339 ("Joseph M. Kelsey" :changed "fileio.c" "dir.h")
340 ("Sam Kendall" :changed "etags.c" "etags.el")
341 ;; ack.texi: "We're not using his backquote.el any more."
342 ("Richard King" :wrote "userlock.el" "filelock.c")
343 ("Larry Kolodney" :wrote "cvtmail.c")
344 ("Sebastian Kremer" :changed "add-log.el")
345 ("Mark Lambert" :changed "process.c" "process.h")
346 ("Aaron Larson" :changed "bibtex.el")
347 ;; It was :wrote, but it has been rewritten since.
348 ("James R. Larus" :cowrote "mh-e.el")
349 ("Lars Lindberg" :changed "dabbrev.el" :cowrote "imenu.el")
350 ;; No longer distributed: lselect.el.
351 ("Lucid, Inc." :changed "bytecode.c" "byte-opt.el" "byte-run.el"
352 "bytecomp.el" "delsel.el" "disass.el" "faces.el" "font-lock.el"
353 "lmenu.el" "mailabbrev.el" "select.el" "xfaces.c" "xselect.c")
354 ;; MCC. No longer distributed: emacsserver.c.
355 ("Microelectronics and Computer Technology Corporation"
356 :changed "etags.c" "emacsclient.c" "movemail.c"
357 "rmail.el" "rmailedit.el" "rmailkwd.el"
358 "rmailmsc.el" "rmailout.el" "rmailsum.el" "scribe.el"
359 ;; It was :wrote for xmenu.c, but it has been rewritten since.
360 "server.el" "lisp.h" "sysdep.c" "unexec.c" "xmenu.c")
361 ("Niall Mansfield" :changed "etags.c")
362 ("Brian Marick" :cowrote "hideif.el")
363 ("Marko Kohtala" :changed "info.el")
364 ("Sidney Markowitz" :changed "doctor.el")
365 ;; No longer distributed: env.c.
366 ("Richard Mlynarik" :wrote "ehelp.el")
367 ("Mosur Mohan" :changed "etags.c")
368 ("Jeff Morgenthaler" :changed "flow-ctrl.el" "vt200.el" "vt201.el"
369 "vt220.el" "vt240.el")
370 ("Motorola" :changed "buff-menu.el")
371 ("Hiroshi Nakano" :changed "ralloc.c")
372 ("Sundar Narasimhan" :changed "rnewspost.el")
373 ;; No longer distributed.
374 ;;; ("NeXT, Inc." :wrote "unexnext.c")
375 ("Mark Neale" :changed "fortran.el")
376 ;; Renamed from sc.el.
377 ("Martin Neitzel" :changed "supercite.el")
378 ("Andrew Oram" :changed "calendar.texi (and other files in man/)")
379 ("Frederic Pierresteguy" :wrote "widget.c")
380 ("Michael D. Prange" :changed "tex-mode.el")
381 ;; No longer distributed (dgux5-4r3.h was renamed to dgux5-4-3.h).
382 ;;; ("Paul Reilly" :wrote "gux5-4r2.h" "dgux5-4-3.h")
383 ("Roland B. Roberts" :changed "files.el" "sort.el"
384 "buffer.h" "callproc.c" "dired.c" "process.c" "sysdep.c" "systty.h")
385 ;; No longer distributed.
386 ;;; "vmspaths.h" "build.com" "compile.com" "kepteditor.com" "precomp.com"
387 ;;; "vmsproc.el" :wrote "logout.com" "mailemacs.com")
388 ("Guillermo J. Rozas" :wrote "fakemail.c")
389 ("Wolfgang Rupprecht" :changed "lisp-mode.el" "loadup.el"
390 "sort.el" "alloc.c" "callint.c"
391 ;; config.in renamed from config.h.in; ecrt0.c from crt0.c.
392 "config.in" "ecrt0.c" "data.c" "fns.c"
393 "lisp.h" "lread.c" ; "sun3.h" "ymakefile" - no longer distributed
394 "print.c" :wrote "float-sup.el" "floatfns.c")
395 ("Schlumberger Technology Corporation" :changed "gud.el")
396 ;; Replaced by tcl.el.
397 ;;; ("Gregor Schmid" :wrote "tcl-mode.el")
398 ("Rainer Schoepf" :wrote "alpha.h" "unexalpha.c")
399 ;; No longer distributed: emacsserver.c.
400 ("William Sommerfeld" :wrote "emacsclient.c" "scribe.el")
401 ;; No longer distributed: emacsserver.c.
402 ("Leigh Stoller" :changed "emacsclient.c" "server.el")
403 ("Steve Strassman" :wrote "spook.el")
404 ("Shinichirou Sugou" :changed "etags.c")
405 ;; No longer distributed: emacsserver.c.
406 ("Sun Microsystems, Inc" :changed "emacsclient.c" "server.el"
407 :wrote "emacs.icon" "sun.el")
408 ;; No longer distributed.
409 ;;; "emacstool.1" "emacstool.c" "sun-curs.el"
410 ;;; "sun-fns.el" "sun-mouse.el" "sunfns.c")
411 ;; Renamed from sc.el.
412 ("Kayvan Sylvan" :changed "supercite.el")
413 ;; No longer distributed: emacsserver.c, tcp.c.
414 ("Spencer Thomas" :changed "emacsclient.c" "server.el"
415 "dabbrev.el" "unexec.c" "gnus.texi")
416 ("Jonathan Vail" :changed "vc.el")
417 ("James Van Artsdalen" :changed "usg5-4.h" "unexec.c")
418 ;; No longer distributed: src/makefile.nt, lisp/makefile.nt
419 ;; winnt.el renamed to w32-fns.el; nt.[ch] to w32.[ch];
420 ;; ntheap.[ch] to w32heap.[ch]; ntinevt.c to w32inevt.c;
421 ;; ntproc.c to w32proc.c; ntterm.c to w32term.c;
422 ;; windowsnt.h to ms-w32.h.
423 ("Geoff Voelker" :wrote "w32-fns.el" "w32.c" "w32.h" "w32heap.c"
424 "w32heap.h" "w32inevt.c" "w32proc.c" "w32term.c" "ms-w32.h")
425 ("Morten Welinder" :wrote "dosfns.c" "[many MS-DOS files]" "msdos.h")
426 ;; Not using this version any more.
427 ;;; ("Pace Willisson" :wrote "ispell.el")
428 ;; FIXME overwritten by Author:.
429 ("Bill Wohler" :cowrote "mh-e.el")
430 ("Garrett Wollman" :changed "sendmail.el")
431 ("Dale R. Worley" :changed "mail-extr.el")
432 ("Jamie Zawinski" :changed "bytecode.c" :wrote "tar-mode.el"
433 :cowrote "disass.el"))
434 "Actions taken from the original, manually (un)maintained AUTHORS file.")
435
436
437 (defconst authors-valid-file-names
438 '("aclocal.m4"
439 "build-ins.in"
440 "Makefile.noleim"
441 "makedist.bat"
442 "makefile.def"
443 "makefile.nt"
444 "debug.bat.in" "emacs.bat.in"
445 ".gdbinit-union"
446 "alloca.s"
447 "make-delta"
448 "config.w95"
449 "emacstool.1"
450 "align.umax"
451 "cxux-crt0.s"
452 "gould-sigvec.s"
453 "getdate.y"
454 "ymakefile"
455 "permute-index" "index.perm"
456 "emacs.ico"
457 "emacs21.ico"
458 "LPF" "LEDIT" "OTHER.EMACSES"
459 "emacs16_mac.png" "emacs24_mac.png"
460 "emacs256_mac.png" "emacs32_mac.png"
461 "emacs48_mac.png" "emacs512_mac.png"
462 ;; Deleted vms stuff:
463 "temacs.opt" "descrip.mms" "compile.com" "link.com"
464 )
465 "File names which are valid, but no longer exist (or cannot be
466 found) in the repository.")
467
468 (defconst authors-renamed-files-alist
469 '(("nt.c" . "w32.c") ("nt.h" . "w32.h")
470 ("ntheap.c" . "w32heap.c") ("ntheap.h" . "w32heap.h")
471 ("ntinevt.c" . "w32inevt.c") ("ntinevt.h" . "w32inevt.h")
472 ("ntproc.c" . "w32proc.c")
473 ("w32console.c" . "w32term.c")
474 ("unexnt.c" . "unexw32.c")
475 ("s/windowsnt.h" . "s/ms-w32.h")
476 ("winnt.el" . "w32-fns.el")
477 ("config.emacs" . "configure")
478 ("config.h.dist" . "config.in")
479 ("config.h-dist" . "config.in")
480 ("config.h.in" . "config.in")
481 ("paths.h-dist" . "paths.h.in")
482 ("patch1" . "sed1.inp")
483 ("GETTING.GNU.SOFTWARE" . "FTP")
484 ("etc/MACHINES" . "MACHINES")
485 ("ONEWS" . "NEWS.19")
486 ("ONEWS.1" . "NEWS.1-17")
487 ("ONEWS.2" . "NEWS.1-17")
488 ("ONEWS.3" . "NEWS.18")
489 ("ONEWS.4" . "NEWS.18")
490 ("ORDERS.USA" . "ORDERS")
491 ("EUROPE" . "ORDERS")
492 ("DIFF" . "OTHER.EMACSES")
493 ("CCADIFF" . "OTHER.EMACSES")
494 ("GOSDIFF" . "OTHER.EMACSES")
495 ("Makefile.in.in" . "Makefile.in")
496 ("leim-Makefile" . "leim/Makefile")
497 ("leim-Makefile.in" . "leim/Makefile.in")
498 ("emacs-lisp/testcover-ses.el" . "tcover-ses.el")
499 ("emacs-lisp/testcover-unsafep.el" . "tcover-unsafep.el")
500 ;; index and pick merged into search.
501 ("mh-index.el" . "mh-search.el")
502 ("mh-pick.el" . "mh-search.el")
503 ("INSTALL-CVS" . "INSTALL.CVS")
504 ("refcards/fr-drdref.pdf" . "refcards/fr-dired-ref.pdf")
505 ("gnus-logo.eps" . "refcards/gnus-logo.eps")
506 ("build-install" . "build-ins.in")
507 ("build-install.in" . "build-ins.in")
508 ("unidata/Makefile" . "unidata/Makefile.in")
509 ;; Not renamed, but we only have the latter in the Emacs repo.
510 ("trampver.texi.in" . "trampver.texi")
511 ("e/eterm" . "e/eterm-color")
512 ("e/eterm.ti" . "e/eterm-color.ti")
513 ("README.txt" . "README")
514 ("emacs.names" . "JOKES")
515 ("ED.WORSHIP" . "JOKES")
516 ("GNU.JOKES" . "JOKES")
517 ("CHARACTERS" . "TODO")
518 ("schema/xhtml-basic-form.rnc" . "schema/xhtml-bform.rnc" )
519 ("schema/xhtml-basic-table.rnc" . "schema/xhtml-btable.rnc")
520 ("schema/xhtml-list.rnc" . "schema/xhtml-lst.rnc")
521 ("schema/xhtml-target.rnc" . "schema/xhtml-tgt.rnc")
522 ("schema/xhtml-style.rnc" . "schema/xhtml-xstyle.rnc")
523 ("schema/docbook-dyntbl.rnc" . "schema/docbk-dyntbl.rnc")
524 ("schema/docbook-soextbl.rnc" . "schema/docbk-soextbl.rn" )
525 ("texi/url.txi" . "url.texi")
526 ;; Moved to different directories.
527 ("ctags.1" . "ctags.1")
528 ("etags.1" . "etags.1")
529 ("emacs.1" . "emacs.1")
530 ("emacsclient.1" . "emacsclient.1")
531 ("icons/emacs21.ico" . "emacs21.ico")
532 )
533 "Alist of files which have been renamed during their lifetime.
534 Elements are (OLDNAME . NEWNAME).")
535
536 (defconst authors-renamed-files-regexps
537 '(("^m/m-\\(.*\\.h\\)$" . "m/\\1")
538 ("^m-\\(.*\\.h\\)$" . "\\1")
539 ("^s/s-\\(.*\\.h\\)$" . "s/\\1")
540 ("^s-\\(.*\\.h\\)$" . "\\1")
541 ("^s/[-.a-zA-Z0-9_]+\\.h$" . t)
542 ("\\(.*\\)\\.cmd$" . "\\1.bat")
543 ("\\.bat$" . t)
544 ("\\.[ch]$" . t)
545 ("\\.el$" . t)
546 ("\\.ps$" . t)
547 ("\\.texi?$" . t)
548 ("\\.texinfo$" . t)
549 ("\\.xml?$" . t)
550 ("\\.x[pb]m$" . t)
551 ("\\.[xp]bm$" . t)
552 ("^paths\\." . t)
553 ("^install\\." . t)
554 ("^\\(TUTORIAL[^/]*\\)" . "tutorials/\\1")
555 ("^\\(tree-widget/\\(?:default\\|folder\\)/[-a-z]+\\.png\\)$" .
556 "images/\\1")
557 ("^\\(images/icons/\\)mac\\(emacs\\)_\\([0-9]+\\)\\(\\.png\\)" .
558 "\\1\\2\\3_mac\\4")
559 ("\\(images/icons/\\)emacs_\\([0-9][0-9]\\)\\.png" .
560 "\\1hicolor/\\2x\\2/apps/emacs.png")
561 )
562 "List regexps and rewriting rules for renamed files.
563 Elements are (REGEXP . REPLACE). If REPLACE is a string, the file
564 name matching REGEXP is replaced by REPLACE using `replace-string'.
565 Otherwise, the file name is accepted as is.")
566
567 (defvar authors-checked-files-alist)
568 (defvar authors-invalid-file-names)
569
570 (defun authors-canonical-file-name (file log-file pos author)
571 "Return canonical file name for FILE found in LOG-FILE.
572 Checks whether FILE is a valid (existing) file name, has been renamed,
573 or is on the list of removed files. Returns the non-diretory part of
574 the file name. Only uses the LOG-FILE position POS and associated AUTHOR
575 to print a message if FILE is not found."
576 ;; FILE should be re-checked in every different directory associated
577 ;; with a LOG-FILE. Eg configure.in from src/ChangeLog is not the
578 ;; same as that from top-level/ChangeLog.
579 (let* ((fullname (expand-file-name file (file-name-directory log-file)))
580 (entry (assoc fullname authors-checked-files-alist))
581 relname
582 valid)
583 (if entry
584 (cdr entry)
585 (setq relname (file-name-nondirectory file))
586 (if (or (member relname authors-valid-file-names)
587 (file-exists-p file)
588 (file-exists-p relname)
589 (file-exists-p (concat "etc/" relname)))
590 (setq valid relname)
591 (setq valid (assoc file authors-renamed-files-alist))
592 (if valid
593 (setq valid (cdr valid))
594 (let ((rules authors-renamed-files-regexps))
595 (while rules
596 (if (string-match (car (car rules)) file)
597 (setq valid (if (stringp (cdr (car rules)))
598 (file-name-nondirectory
599 (replace-match (cdr (car rules)) t nil file))
600 relname)
601 rules nil))
602 (setq rules (cdr rules))))))
603 (setq authors-checked-files-alist
604 (cons (cons fullname valid) authors-checked-files-alist))
605 (unless (or valid
606 (member file authors-ignored-files)
607 (string-match "[*]" file)
608 (string-match "^[0-9.]+$" file))
609 (setq authors-invalid-file-names
610 (cons (format "%s:%d: unrecognized `%s' for %s"
611 log-file
612 (1+ (count-lines (point-min) pos))
613 file author)
614 authors-invalid-file-names)))
615 valid)))
616
617 (defun authors-add-fixed-entries (table)
618 "Add actions from `authors-fixed-entries' to TABLE."
619 (dolist (entry authors-fixed-entries)
620 (let ((author (car entry))
621 action)
622 (dolist (item (cdr entry))
623 (if (symbolp item)
624 (setq action item)
625 (authors-add author item action table))))))
626
627
628 (defun authors-obsolete-file-p (file)
629 "Return non-nil if FILE is obsolete.
630 FILE is considered obsolete if it matches one of the regular expressions
631 from `authors-obsolete-files-regexps'."
632 (let (obsolete-p
633 (regexps authors-obsolete-files-regexps))
634 (while (and regexps (not obsolete-p))
635 (setq obsolete-p (string-match (car regexps) file)
636 regexps (cdr regexps)))
637 obsolete-p))
638
639
640 (defun authors-add (author file action table)
641 "Record that AUTHOR worked on FILE.
642 ACTION is a keyword symbol describing what he did. Record file,
643 author and what he did in hash table TABLE. See the description of
644 `authors-scan-change-log' for the structure of the hash table."
645 (unless (or (member file authors-ignored-files)
646 (authors-obsolete-file-p file)
647 (equal author ""))
648 (let* ((value (gethash author table))
649 (entry (assoc file value))
650 slot)
651 (if (null entry)
652 (puthash author (cons (list file (cons action 1)) value) table)
653 (if (setq slot (assoc action (cdr entry)))
654 (setcdr slot (1+ (cdr slot)))
655 (nconc entry (list (cons action 1))))))))
656
657
658 (defun authors-canonical-author-name (author)
659 "Return a canonicalized form of AUTHOR, an author name.
660 If AUTHOR has an entry in `authors-aliases', use that. Remove
661 email addresses. Capitalize words in the author's name, unless
662 it is found in `authors-fixed-case'."
663 (let* ((aliases authors-aliases)
664 regexps realname)
665 (while aliases
666 (setq realname (car (car aliases))
667 regexps (cdr (car aliases))
668 aliases (cdr aliases))
669 (while regexps
670 (if (string-match (car regexps) author)
671 (setq author realname
672 regexps nil
673 aliases nil)
674 (setq regexps (cdr regexps))))))
675 (when author
676 (setq author (replace-regexp-in-string "[ \t]*[(<].*$" "" author))
677 (setq author (replace-regexp-in-string "\`[ \t]+" "" author))
678 (setq author (replace-regexp-in-string "[ \t]+$" "" author))
679 (setq author (replace-regexp-in-string "[ \t]+" " " author))
680 (unless (string-match "[-, \t]" author)
681 (setq author ""))
682 (or (car (member author authors-fixed-case))
683 (capitalize author))))
684
685 (defun authors-scan-change-log (log-file table)
686 "Scan change log LOG-FILE for author information.
687
688 For each change mentioned in the log, add an entry to hash table TABLE
689 under the author's canonical name.
690
691 Keys of TABLE are author names. Values are alists of entries (FILE
692 \(ACTION . COUNT) ...). FILE is one file the author worked on. The
693 rest of the entry is a list of keyword symbols describing what he did
694 with the file and the number of each action.
695
696 :wrote means the author wrote the file
697 :changed means he changed the file COUNT times."
698
699 (let* ((enable-local-variables :safe)
700 (enable-local-eval nil)
701 (existing-buffer (get-file-buffer log-file))
702 (buffer (find-file-noselect log-file))
703 authors file pos)
704 (save-excursion
705 (set-buffer buffer)
706 (save-restriction
707 (widen)
708 (goto-char (point-min))
709 (while (re-search-forward "^[0-9]\\|^[ \t]+\\* " nil t)
710 (beginning-of-line)
711 (setq pos (point))
712 (cond ((looking-at "^[0-9]+-[0-9]+-[0-9]+")
713 ;; Handle joint authorship of changes.
714 ;; This can be a bit fragile, and is not too common.
715 (setq authors nil)
716 (while (progn
717 (skip-chars-forward " \t+:0-9-")
718 (not (looking-at "\\($\\|\\*\\|\
719 Suggested\\|Trivial\\|Version\\|Originally\\|From:\\|Patch[ \t]+[Bb]y\\)")))
720 (push (authors-canonical-author-name
721 (buffer-substring-no-properties
722 (point) (line-end-position))) authors)
723 (forward-line 1)))
724 ((looking-at "^[ \t]+\\*")
725 (let ((line (buffer-substring-no-properties
726 (match-end 0) (line-end-position))))
727 (while (and (not (string-match ":" line))
728 (forward-line 1)
729 (not (looking-at ":\\|^[ \t]*$")))
730 (setq line (concat line
731 (buffer-substring-no-properties
732 (line-beginning-position)
733 (line-end-position)))))
734 (when (string-match ":" line)
735 (setq line (substring line 0 (match-beginning 0)))
736 (setq line (replace-regexp-in-string "[[(<{].*$" "" line))
737 (setq line (replace-regexp-in-string "," "" line))
738 (dolist (file (split-string line))
739 (when (setq file (authors-canonical-file-name file log-file pos (car authors)))
740 (dolist (author authors)
741 ;;(message "%s changed %s" author file)
742 (authors-add author file :changed table)))))
743 (forward-line 1)))))))
744 (unless existing-buffer
745 (kill-buffer buffer))))
746
747
748 (defun authors-scan-el (file table)
749 "Scan Lisp file FILE for author information.
750 TABLE is a hash table to add author information to."
751 (let ((existing-buffer (get-file-buffer file))
752 (enable-local-variables :safe)
753 (enable-local-eval nil)
754 (buffer (find-file-noselect file)))
755 (setq file (file-name-nondirectory file))
756 (save-excursion
757 (set-buffer buffer)
758 (save-restriction
759 (widen)
760 (goto-char (point-min))
761 (while (and (re-search-forward
762 "^;+[ \t]*\\(Authors?\\|Commentary\\|Code\\):[ \t]*" nil t)
763 (not (member (match-string 1) '("Commentary" "Code"))))
764 (let ((continue t)
765 (action :wrote)
766 authors)
767 (while continue
768 ;; Some entries contain a year range in front of the
769 ;; author's name.
770 (skip-chars-forward "-0-9 \t")
771 (push (authors-canonical-author-name
772 (buffer-substring-no-properties
773 (point) (line-end-position))) authors)
774 ;; tips.texi says the continuation line should begin
775 ;; with a tab, but often spaces are used.
776 (setq continue
777 (and (zerop (forward-line 1))
778 (looking-at ";;;?\\(\t+ *\\| +\\)[[:alnum:]]")
779 (goto-char (1- (match-end 0)))
780 (not (looking-at "[[:upper:]][-[:alpha:]]+:[ \t]")))))
781 (and (> (length authors) 1)
782 (setq action :cowrote))
783 (mapc (lambda (author)
784 (authors-add author file action table))
785 authors)))))
786 (unless existing-buffer
787 (kill-buffer buffer))))
788
789
790 (defun authors-public-domain-p (file)
791 "Return t if FILE is a file that was put in public domain."
792 (let ((public-domain-p nil)
793 (list authors-public-domain-files))
794 (while (and list (not public-domain-p))
795 (when (string-match (car list) file)
796 (setq public-domain-p t))
797 (setq list (cdr list)))
798 public-domain-p))
799
800 (defvar authors-author-list)
801
802 (defun authors-add-to-author-list (author changes)
803 "Insert information about AUTHOR's work on Emacs into `authors-author-list'.
804 CHANGES is an alist of entries (FILE (ACTION . COUNT) ...), as produced by
805 `authors-scan-change-log'.
806 The element added to `authors-author-list' is (AUTHOR WROTE CO-WROTE CHANGED),
807 where WROTE, CO-WROTE, and CHANGED are lists of the files written, co-written
808 and changed by AUTHOR."
809 (when author
810 (let ((nchanged 0)
811 wrote-list
812 cowrote-list
813 changed-list)
814 (dolist (change changes)
815 (let* ((actions (cdr change))
816 (file (car change))
817 (filestat (if (authors-public-domain-p file)
818 (concat file " (public domain)")
819 file))
820 slot)
821 (cond ((assq :wrote actions)
822 (setq wrote-list (cons filestat wrote-list)))
823 ((assq :cowrote actions)
824 (setq cowrote-list (cons filestat cowrote-list)))
825 (t
826 (setq changed-list
827 (cons (cons file (cdr (assq :changed actions)))
828 changed-list))))))
829 (if wrote-list
830 (setq wrote-list (sort wrote-list 'string-lessp)))
831 (if cowrote-list
832 (setq cowrote-list (sort cowrote-list 'string-lessp)))
833 (when changed-list
834 (setq changed-list (sort changed-list
835 (lambda (a b)
836 (if (= (cdr a) (cdr b))
837 (string-lessp (car a) (car b))
838 (> (cdr a) (cdr b))))))
839 (setq nchanged (length changed-list))
840 (setq changed-list (mapcar 'car changed-list)))
841 (if (> (- nchanged authors-many-files) 2)
842 (setcdr (nthcdr authors-many-files changed-list)
843 (list (format "and %d other files" (- nchanged authors-many-files)))))
844 (setq authors-author-list
845 (cons (list author wrote-list cowrote-list changed-list)
846 authors-author-list)))))
847
848 (defun authors (root)
849 "Extract author information from change logs and Lisp source files.
850 ROOT is the root directory under which to find the files. If called
851 interactively, ROOT is read from the minibuffer.
852 Result is a buffer *Authors* containing authorship information, and a
853 buffer *Authors Errors* containing references to unknown files."
854 (interactive "DEmacs source directory: ")
855 (setq root (expand-file-name root))
856 (let ((logs (process-lines find-program root "-name" "ChangeLog*"))
857 (table (make-hash-table :test 'equal))
858 (buffer-name "*Authors*")
859 authors-checked-files-alist
860 authors-invalid-file-names)
861 (authors-add-fixed-entries table)
862 (unless (file-exists-p (expand-file-name "src/emacs.c" root))
863 (unless (y-or-n-p
864 (format "Not the root directory of Emacs: %s, continue? " root))
865 (error "Not the root directory.")))
866 (dolist (log logs)
867 (when (string-match "ChangeLog\\(.[0-9]+\\)?$" log)
868 (message "Scanning %s..." log)
869 (authors-scan-change-log log table)))
870 (let ((els (process-lines find-program root "-name" "*.el")))
871 (dolist (file els)
872 (message "Scanning %s..." file)
873 (authors-scan-el file table)))
874 (message "Generating buffer %s..." buffer-name)
875 (set-buffer (get-buffer-create buffer-name))
876 (erase-buffer)
877 (set-buffer-file-coding-system authors-coding-system)
878 (insert
879 "Many people have contributed code included in the Free Software
880 Foundation's distribution of GNU Emacs. To show our appreciation for
881 their public spirit, we list here in alphabetical order a condensed
882 list of their contributions.\n")
883 (let (authors-author-list a)
884 (maphash #'authors-add-to-author-list table)
885 (setq authors-author-list
886 (sort authors-author-list
887 (lambda (a b) (string-lessp (car a) (car b)))))
888 (dolist (a authors-author-list)
889 (let ((author (car a))
890 (wrote (nth 1 a))
891 (cowrote (nth 2 a))
892 (changed (nth 3 a))
893 file)
894 (insert "\n" author ": ")
895 (when wrote
896 (insert "wrote")
897 (dolist (file wrote)
898 (if (> (+ (current-column) (length file)) 72)
899 (insert "\n "))
900 (insert " " file))
901 (insert "\n"))
902 (when cowrote
903 (if wrote
904 (insert "and "))
905 (insert "co-wrote")
906 (dolist (file cowrote)
907 (if (> (+ (current-column) (length file)) 72)
908 (insert "\n "))
909 (insert " " file))
910 (insert "\n"))
911 (when changed
912 (if (or wrote cowrote)
913 (insert "and "))
914 (insert "changed")
915 (dolist (file changed)
916 (if (> (+ (current-column) (length file)) 72)
917 (insert "\n "))
918 (insert " " file))
919 (insert "\n")))))
920 (insert "\nLocal" " Variables:\ncoding: "
921 (symbol-name authors-coding-system) "\nEnd:\n")
922 (message "Generating buffer %s... done" buffer-name)
923 (unless noninteractive
924 (when authors-invalid-file-names
925 (with-current-buffer (get-buffer-create "*Authors Errors*")
926 (setq buffer-read-only nil)
927 (erase-buffer)
928 (set-buffer-file-coding-system authors-coding-system)
929 (insert "Unrecognized file entries found:\n\n")
930 (mapc (lambda (f) (if (not (string-match "^[A-Za-z]+$" f)) (insert f "\n")))
931 (sort authors-invalid-file-names 'string-lessp))
932 (goto-char (point-min))
933 (compilation-mode)
934 (message "Errors were found. See buffer %s" (buffer-name))))
935 (pop-to-buffer buffer-name))))
936
937
938 (defun batch-update-authors ()
939 "Produce an AUTHORS file.
940 Call this function in batch mode with two command line arguments FILE
941 and ROOT. FILE is the file to write, ROOT is the root directory of
942 the Emacs source tree, from which to build the file."
943 (unless noninteractive
944 (error "`batch-update-authors' is to be used only with -batch"))
945 (when (/= (length command-line-args-left) 2)
946 (error "Call `batch-update-authors' with the name of the file to write"))
947 (let* ((file (pop command-line-args-left))
948 (root (pop command-line-args-left)))
949 (authors root)
950 (write-file file)))
951
952 (provide 'authors)
953
954 ;; arch-tag: 659d5900-5ff2-43b0-954c-a315cc1e4dc1
955 ;;; authors.el ends here