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