aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-11-02 15:37:03 +0000
committerGerd Moellmann2000-11-02 15:37:03 +0000
commit0a5218851db3dd91f30bb6af0e0185782fc8da36 (patch)
treeceb0e9e27dbaae5c809ae67ae3431ccc594aed57
parent3d66f910ade42c08be627964db25638444d39aeb (diff)
downloademacs-0a5218851db3dd91f30bb6af0e0185782fc8da36.tar.gz
emacs-0a5218851db3dd91f30bb6af0e0185782fc8da36.zip
(authors-public-domain-files): New variable.
(authors-public-domain-p): New function. (authors-print): Use it.
-rw-r--r--lisp/emacs-lisp/authors.el32
1 files changed, 31 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/authors.el b/lisp/emacs-lisp/authors.el
index 9c937e26467..1e5c48323e8 100644
--- a/lisp/emacs-lisp/authors.el
+++ b/lisp/emacs-lisp/authors.el
@@ -99,6 +99,21 @@ matches REGEXP, use ALIAS instead. The special alias \"ignore\" means
99ignore that author.") 99ignore that author.")
100 100
101 101
102(defvar authors-public-domain-files
103 '("auto-show\\.el"
104 "form-d2\\.el"
105 "emerge\\.el"
106 "unused\\.el"
107 "vi\\.el"
108 "feedmail\\.el"
109 "mailpost\\.el"
110 "hanoi\\.el"
111 "meese\\.el"
112 "studly\\.el"
113 "modula2\\.el")
114 "List of regexps matching files for which the FSF doesn't need papers.")
115
116
102(defvar authors-obsolete-files-regexps 117(defvar authors-obsolete-files-regexps
103 '("vc-\\*\\.el$" 118 '("vc-\\*\\.el$"
104 "spec.txt$" 119 "spec.txt$"
@@ -366,6 +381,17 @@ TABLE is a hash table to add author information to."
366 (kill-buffer buffer)))) 381 (kill-buffer buffer))))
367 382
368 383
384(defun authors-public-domain-p (file)
385 "Return t if FILE is a file that was put in public domain."
386 (let ((public-domain-p nil)
387 (list authors-public-domain-files))
388 (while (and list (not public-domain-p))
389 (when (string-match (car list) file)
390 (setq public-domain-p t))
391 (setq list (cdr list)))
392 public-domain-p))
393
394
369(defun authors-print (author changes) 395(defun authors-print (author changes)
370 "Insert information about AUTHOR's work on Emacs into the current buffer. 396 "Insert information about AUTHOR's work on Emacs into the current buffer.
371CHANGES is an alist of entries (FILE ACTION...), as produced by 397CHANGES is an alist of entries (FILE ACTION...), as produced by
@@ -376,7 +402,11 @@ CHANGES is an alist of entries (FILE ACTION...), as produced by
376 (let ((actions (cdr change)) 402 (let ((actions (cdr change))
377 (file (car change))) 403 (file (car change)))
378 (if (memq :wrote actions) 404 (if (memq :wrote actions)
379 (insert author " (wrote) " file "\n") 405 (progn
406 (insert author " (wrote) " file)
407 (when (authors-public-domain-p file)
408 (insert " (public domain)"))
409 (insert "\n"))
380 (setq nchanged (1+ nchanged))))) 410 (setq nchanged (1+ nchanged)))))
381 (if (> nchanged authors-many-files) 411 (if (> nchanged authors-many-files)
382 (insert author " (changed) [more than " 412 (insert author " (changed) [more than "