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