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