Mercurial > emacs
changeset 33151:452df6342ae5
(authors-public-domain-files): New variable.
(authors-public-domain-p): New function.
(authors-print): Use it.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 02 Nov 2000 15:37:03 +0000 |
parents | 7e53fab4d2a3 |
children | a3a3dbb134e4 |
files | lisp/emacs-lisp/authors.el |
diffstat | 1 files changed, 31 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/authors.el Thu Nov 02 14:47:18 2000 +0000 +++ b/lisp/emacs-lisp/authors.el Thu Nov 02 15:37:03 2000 +0000 @@ -99,6 +99,21 @@ ignore that author.") +(defvar authors-public-domain-files + '("auto-show\\.el" + "form-d2\\.el" + "emerge\\.el" + "unused\\.el" + "vi\\.el" + "feedmail\\.el" + "mailpost\\.el" + "hanoi\\.el" + "meese\\.el" + "studly\\.el" + "modula2\\.el") + "List of regexps matching files for which the FSF doesn't need papers.") + + (defvar authors-obsolete-files-regexps '("vc-\\*\\.el$" "spec.txt$" @@ -366,6 +381,17 @@ (kill-buffer buffer)))) +(defun authors-public-domain-p (file) + "Return t if FILE is a file that was put in public domain." + (let ((public-domain-p nil) + (list authors-public-domain-files)) + (while (and list (not public-domain-p)) + (when (string-match (car list) file) + (setq public-domain-p t)) + (setq list (cdr list))) + public-domain-p)) + + (defun authors-print (author changes) "Insert information about AUTHOR's work on Emacs into the current buffer. CHANGES is an alist of entries (FILE ACTION...), as produced by @@ -376,7 +402,11 @@ (let ((actions (cdr change)) (file (car change))) (if (memq :wrote actions) - (insert author " (wrote) " file "\n") + (progn + (insert author " (wrote) " file) + (when (authors-public-domain-p file) + (insert " (public domain)")) + (insert "\n")) (setq nchanged (1+ nchanged))))) (if (> nchanged authors-many-files) (insert author " (changed) [more than "