aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-04-04 09:58:56 +0000
committerGerd Moellmann2001-04-04 09:58:56 +0000
commit5efa6032337a290db7dbd1a770dc31d0411dcb4c (patch)
tree3bb1725963639d7e00474fe59625539956374f2c
parentd757aac1c927ffbf8edf60e49d8a8640a2a26ccb (diff)
downloademacs-5efa6032337a290db7dbd1a770dc31d0411dcb4c.tar.gz
emacs-5efa6032337a290db7dbd1a770dc31d0411dcb4c.zip
(lm-keywords-list, lm-keywords-finder-p):
New functions. (lm-verify): Check keywords. From: Eric M. Ludlam <eric@siege-engine.com>.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/emacs-lisp/lisp-mnt.el19
2 files changed, 29 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1f65e55d557..de934eb769d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12001-04-04 Gerd Moellmann <gerd@gnu.org>
2
3 * emacs-lisp/lisp-mnt.el (lm-keywords-list, lm-keywords-finder-p):
4 New functions.
5 (lm-verify): Check keywords.
6 From: Eric M. Ludlam <eric@siege-engine.com>.
7
12001-04-03 Eric M. Ludlam <eric@siege-engine.com> 82001-04-03 Eric M. Ludlam <eric@siege-engine.com>
2 9
3 * speedbar.el (speedbar-insert-image-button-maybe): Check for 10 * speedbar.el (speedbar-insert-image-button-maybe): Check for
@@ -18,6 +25,9 @@
18 25
192001-04-03 Gerd Moellmann <gerd@gnu.org> 262001-04-03 Gerd Moellmann <gerd@gnu.org>
20 27
28 * icomplete.el (icomplete-mode): Treat an argument like other
29 modes do.
30
21 * startup.el (fancy-splash-head): Use splash8.xpm for color 31 * startup.el (fancy-splash-head): Use splash8.xpm for color
22 depth 8. 32 depth 8.
23 33
diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el
index e7ea13e2cde..8b0e4a38ae4 100644
--- a/lisp/emacs-lisp/lisp-mnt.el
+++ b/lisp/emacs-lisp/lisp-mnt.el
@@ -370,6 +370,23 @@ This can be found in an RCS or SCCS header."
370 (let ((keywords (lm-header "keywords"))) 370 (let ((keywords (lm-header "keywords")))
371 (and keywords (downcase keywords))))) 371 (and keywords (downcase keywords)))))
372 372
373(defun lm-keywords-list (&optional file)
374 "Return list of keywords given in file FILE."
375 (let ((keywords (lm-keywords file)))
376 (if keywords
377 (split-string keywords ",?[ \t]"))))
378
379(defun lm-keywords-finder-p (&optional file)
380 "Return non-nil if any keywords in FILE are known to finder."
381 (require 'finder)
382 (let ((keys (lm-keywords-list file)))
383 (catch 'keyword-found
384 (while keys
385 (if (assoc (intern (car keys)) finder-known-keywords)
386 (throw 'keyword-found t))
387 (setq keys (cdr keys)))
388 nil)))
389
373(defun lm-adapted-by (&optional file) 390(defun lm-adapted-by (&optional file)
374 "Return the adapted-by names in file FILE, or current buffer if FILE is nil. 391 "Return the adapted-by names in file FILE, or current buffer if FILE is nil.
375This is the name of the person who cleaned up this package for 392This is the name of the person who cleaned up this package for
@@ -439,6 +456,8 @@ Optional argument VERB specifies verbosity."
439 "Can't find a one-line 'Summary' description") 456 "Can't find a one-line 'Summary' description")
440 ((not (lm-keywords)) 457 ((not (lm-keywords))
441 "Keywords: tag missing.") 458 "Keywords: tag missing.")
459 ((not (lm-keywords-finder-p))
460 "Keywords: no valid finder keywords.")
442 ((not (lm-commentary-mark)) 461 ((not (lm-commentary-mark))
443 "Can't find a 'Commentary' section marker.") 462 "Can't find a 'Commentary' section marker.")
444 ((not (lm-history-mark)) 463 ((not (lm-history-mark))