Add "Version:" and "Package:" Lisp file headers.
[emacs.git] / lisp / emacs-lisp / authors.el
blob3bfa076d71c2ac49ddff5655f23dd9489f029d58
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>
8 ;; Keywords: maint
9 ;; Package: emacs
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/>.
26 ;;; Commentary:
28 ;; Use M-x authors RET to create an *Authors* buffer that can used as
29 ;; or merged with Emacs' AUTHORS file.
31 ;;; Code:
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
40 files.")
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"
60 "David Koppelman")
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"
65 "Reingold Edward M")
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"
141 "rms" "rms@gnu.org")
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
179 '("Bryan O'Sullivan"
180 "Christian von Roques"
181 "Christophe de Dinechin"
182 "Craig McDaniel"
183 "David J. MacKenzie"
184 "David McCabe"
185 "David O'Toole"
186 "Dominique de Waleffe"
187 "Edward O'Connor"
188 "Exal de Jesus Garcia Carrillo"
189 "Greg McGary"
190 "Hans de Graaff"
191 "James TD Smith"
192 "Joel N. Weber II"
193 "Michael McNamara"
194 "Mike McEwan"
195 "Nelson Jose dos Santos Ferreira"
196 "Peter von der Ahe"
197 "Peter O'Gorman"
198 "Roland McGrath"
199 "Sean O'Rourke")
200 "List of authors whose names cannot be simply capitalized.")
202 (defvar authors-public-domain-files
203 '("emerge\\.el"
204 "vi\\.el"
205 "feedmail\\.el"
206 "mailpost\\.el"
207 "hanoi\\.el"
208 "meese\\.el"
209 "studly\\.el"
210 "modula2\\.el"
211 "nnmaildir\\.el"
212 "nnil\\.el"
213 "b2m\\.c"
214 "unexhp9k800\\.c"
215 "emacsclient\\.1"
216 "check-doc-strings")
217 "List of regexps matching files for which the FSF doesn't need papers.")
220 (defvar authors-obsolete-files-regexps
221 '("vc-\\*\\.el$"
222 "spec.txt$"
223 ".*loaddefs.el$" ; not obsolete, but auto-generated
224 "\\.\\(cvs\\|git\\)ignore$" ; obsolete or uninteresting
225 "\\.arch-inventory$"
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
230 listed.")
232 (defconst authors-ignored-files
233 '("external-lisp"
234 "lock" "share-lib" "local-lisp"
235 "noleim-Makefile.in"
236 "NEWS" "ORDERS" "PROBLEMS" "FAQ" "AUTHORS" "FOR-RELEASE" "TODO" "todo"
237 "MACHINES" "SERVICE"
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"
246 "gfdl.1"
247 "texi/Makefile.in"
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"
258 "*.el"
259 ;; Autogen:
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"
268 "CODINGS" "CHARSETS"
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"
275 "ChangeLog.2005"
276 "README.extras" "dir-template" "mkChangeLog" "MkChangeLog" "erc-auto.in"
277 "CREDITS" "HACKING"
278 "debian/changelog"
279 "debian/control"
280 "debian/copyright"
281 "debian/maint/conffiles"
282 "debian/maint/conffiles.in"
283 "debian/maint/postinst"
284 "debian/maint/postinst.in"
285 "debian/maint/prerm"
286 "debian/maint/prerm.in"
287 "debian/README.Debian"
288 "debian/README.erc-speak"
289 "debian/rules"
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
306 '("chart.el"
307 "compile.el"
308 "complete.el"
309 "cpp.el"
310 "ctxt.el"
311 "debug.el"
312 "dired.el"
313 "el.el"
314 "files.el"
315 "find.el"
316 "format.el"
317 "grep.el"
318 "imenu.el"
319 "java.el"
320 "linux.el"
321 "locate.el"
322 "make.el"
323 "mode.el"
324 "python.el"
325 "semantic.el"
326 "shell.el"
327 "simple.el"
328 "sort.el"
329 "speedbar.el"
330 "srecode.el"
331 "table.el"
332 "texi.el"
333 "util.el"
334 "wisent.el")
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
491 '("aclocal.m4"
492 "build-ins.in"
493 "Makefile.noleim"
494 "makedist.bat"
495 "makefile.def"
496 "makefile.nt"
497 "debug.bat.in" "emacs.bat.in"
498 ".gdbinit-union"
499 "alloca.s"
500 "make-delta"
501 "config.w95"
502 "emacstool.1"
503 "align.umax"
504 "cxux-crt0.s"
505 "gould-sigvec.s"
506 "getdate.y"
507 "ymakefile"
508 "permute-index" "index.perm"
509 "ibmrs6000.inp"
510 "emacs.ico"
511 "emacs21.ico"
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"
516 "revdiff" ; admin/
517 "mainmake" "sed1.inp" "sed2.inp" "sed3.inp" ; msdos/
518 "mac-fix-env.m"
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)
523 in the repository.")
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")
604 ("\\.bat$" . t)
605 ("\\.[ch]$" . t)
606 ("\\.el$" . t)
607 ("\\.ps$" . t)
608 ("\\.texi?$" . t)
609 ("\\.texinfo$" . t)
610 ("\\.xml?$" . t)
611 ("\\.x[pb]m$" . t)
612 ("\\.[xp]bm$" . t)
613 ("^paths\\." . t)
614 ("^install\\." . t)
615 ("^\\(TUTORIAL[^/]*\\)" . "tutorials/\\1")
616 ("^\\(tree-widget/\\(?:default\\|folder\\)/[-a-z]+\\.png\\)$" .
617 "images/\\1")
618 ("^\\(images/icons/\\)mac\\(emacs\\)_\\([0-9]+\\)\\(\\.png\\)" .
619 "\\1\\2\\3_mac\\4")
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))
634 parent)
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
640 (directory-file-name
641 (file-name-directory fullname)))))
642 relname
643 (format "%s/%s" parent relname))
644 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))
657 relname
658 valid)
659 (if entry
660 (cdr entry)
661 (setq relname (file-name-nondirectory file))
662 (if (or (member relname authors-valid-file-names)
663 (file-exists-p file)
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))
668 (if valid
669 (setq valid (cdr valid))
670 (let ((rules authors-renamed-files-regexps))
671 (while rules
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))
676 relname)
677 rules nil))
678 (setq rules (cdr rules))))))
679 (setq authors-checked-files-alist
680 (cons (cons fullname valid) authors-checked-files-alist))
681 (unless (or valid
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"
688 log-file
689 (1+ (count-lines (point-min) pos))
690 file author)
691 authors-invalid-file-names)))
692 valid)))
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))
698 action)
699 (dolist (item (cdr entry))
700 (if (symbolp item)
701 (setq action item)
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'."
709 (let (obsolete-p
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)))
714 obsolete-p))
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)
724 (equal author ""))
725 (let* ((value (gethash author table))
726 (entry (assoc file value))
727 slot)
728 (if (null entry)
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)
741 regexps realname)
742 (while aliases
743 (setq realname (car (car aliases))
744 regexps (cdr (car aliases))
745 aliases (cdr aliases))
746 (while regexps
747 (if (string-match (car regexps) author)
748 (setq author realname
749 regexps nil
750 aliases nil)
751 (setq regexps (cdr regexps))))))
752 (when author
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)
758 (setq 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))
781 authors file pos)
782 (with-current-buffer buffer
783 (save-restriction
784 (widen)
785 (goto-char (point-min))
786 (while (re-search-forward "^[0-9]\\|^[ \t]+\\* " nil t)
787 (beginning-of-line)
788 (setq pos (point))
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.
792 (setq authors nil)
793 (while (progn
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)
800 (forward-line 1)))
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))
805 (forward-line 1)
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
834 (save-restriction
835 (widen)
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"))))
840 (let ((continue t)
841 (action :wrote)
842 authors)
843 (while continue
844 ;; Some entries contain a year range in front of the
845 ;; author's name.
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.
852 (setq continue
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))
861 authors)))))
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)))
874 public-domain-p))
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."
885 (when author
886 (let ((nchanged 0)
887 wrote-list
888 cowrote-list
889 changed-list)
890 (dolist (change changes)
891 (let* ((actions (cdr change))
892 (file (car change))
893 (filestat (if (authors-public-domain-p file)
894 (concat file " (public domain)")
895 file))
896 slot)
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)))
902 (setq changed-list
903 (cons (cons file (cdr (assq :changed actions)))
904 changed-list))))))
905 (if wrote-list
906 (setq wrote-list (sort wrote-list 'string-lessp)))
907 (if cowrote-list
908 (setq cowrote-list (sort cowrote-list 'string-lessp)))
909 (when changed-list
910 (setq changed-list (sort changed-list
911 (lambda (a b)
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))
939 (unless (y-or-n-p
940 (format "Not the root directory of Emacs: %s, continue? " root))
941 (error "Not the root directory")))
942 (dolist (log logs)
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")))
947 (dolist (file els)
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))
952 (erase-buffer)
953 (set-buffer-file-coding-system authors-coding-system)
954 (insert
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))
966 (wrote (nth 1 a))
967 (cowrote (nth 2 a))
968 (changed (nth 3 a))
969 file)
970 (insert "\n" author ": ")
971 (when wrote
972 (insert "wrote")
973 (dolist (file wrote)
974 (if (> (+ (current-column) (length file)) 72)
975 (insert "\n "))
976 (insert " " file))
977 (insert "\n"))
978 (when cowrote
979 (if wrote
980 (insert "and "))
981 (insert "co-wrote")
982 (dolist (file cowrote)
983 (if (> (+ (current-column) (length file)) 72)
984 (insert "\n "))
985 (insert " " file))
986 (insert "\n"))
987 (when changed
988 (if (or wrote cowrote)
989 (insert "and "))
990 (insert "changed")
991 (dolist (file changed)
992 (if (> (+ (current-column) (length file)) 72)
993 (insert "\n "))
994 (insert " " file))
995 (insert "\n")))))
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)
1003 (erase-buffer)
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))
1009 (compilation-mode)
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)))
1025 (authors root)
1026 (write-file file)))
1028 (provide 'authors)
1030 ;; arch-tag: 659d5900-5ff2-43b0-954c-a315cc1e4dc1
1031 ;;; authors.el ends here