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