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