changeset 54500:7a30ab50eb0b

(lm-keywords-finder-p): Use defvar rather than with-no-warnings.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 22 Mar 2004 15:28:28 +0000
parents b7693565f757
children 96f7b2598aa3
files lisp/emacs-lisp/lisp-mnt.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mnt.el	Mon Mar 22 15:27:46 2004 +0000
+++ b/lisp/emacs-lisp/lisp-mnt.el	Mon Mar 22 15:28:28 2004 +0000
@@ -452,14 +452,14 @@
     (if keywords
 	(split-string keywords ",?[ \t]"))))
 
+(defvar finder-known-keywords)
 (defun lm-keywords-finder-p (&optional file)
   "Return non-nil if any keywords in FILE are known to finder."
   (require 'finder)
   (let ((keys (lm-keywords-list file)))
     (catch 'keyword-found
       (while keys
-	(if (assoc (intern (car keys)) 
-		   (with-no-warnings finder-known-keywords))
+	(if (assoc (intern (car keys)) finder-known-keywords)
 	    (throw 'keyword-found t))
 	(setq keys (cdr keys)))
       nil)))