diff options
| author | Stefan Monnier | 2004-03-22 15:28:28 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-03-22 15:28:28 +0000 |
| commit | de00302bfd7dcf36a709a77c750eeb0e1bf8c2ad (patch) | |
| tree | b4ce2f35e58f6aef69f7f76f7a5692e7e4f08067 | |
| parent | e409c5272f067bdd87a0078c234c085786f9ff37 (diff) | |
| download | emacs-de00302bfd7dcf36a709a77c750eeb0e1bf8c2ad.tar.gz emacs-de00302bfd7dcf36a709a77c750eeb0e1bf8c2ad.zip | |
(lm-keywords-finder-p): Use defvar rather than with-no-warnings.
| -rw-r--r-- | lisp/emacs-lisp/lisp-mnt.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el index e67835eb82d..671f3c8ce2a 100644 --- a/lisp/emacs-lisp/lisp-mnt.el +++ b/lisp/emacs-lisp/lisp-mnt.el | |||
| @@ -452,14 +452,14 @@ This can be found in an RCS or SCCS header." | |||
| 452 | (if keywords | 452 | (if keywords |
| 453 | (split-string keywords ",?[ \t]")))) | 453 | (split-string keywords ",?[ \t]")))) |
| 454 | 454 | ||
| 455 | (defvar finder-known-keywords) | ||
| 455 | (defun lm-keywords-finder-p (&optional file) | 456 | (defun lm-keywords-finder-p (&optional file) |
| 456 | "Return non-nil if any keywords in FILE are known to finder." | 457 | "Return non-nil if any keywords in FILE are known to finder." |
| 457 | (require 'finder) | 458 | (require 'finder) |
| 458 | (let ((keys (lm-keywords-list file))) | 459 | (let ((keys (lm-keywords-list file))) |
| 459 | (catch 'keyword-found | 460 | (catch 'keyword-found |
| 460 | (while keys | 461 | (while keys |
| 461 | (if (assoc (intern (car keys)) | 462 | (if (assoc (intern (car keys)) finder-known-keywords) |
| 462 | (with-no-warnings finder-known-keywords)) | ||
| 463 | (throw 'keyword-found t)) | 463 | (throw 'keyword-found t)) |
| 464 | (setq keys (cdr keys))) | 464 | (setq keys (cdr keys))) |
| 465 | nil))) | 465 | nil))) |