help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test for a list of words?


From: Svend Tollak Munkejord
Subject: Re: Test for a list of words?
Date: Sun, 11 May 2003 17:10:33 +0200
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (berkeley-unix)

Today, Jesper Harder <address@hidden> wrote:

>Svend Tollak Munkejord <address@hidden> writes:
>
>>How can I test whether a buffer contains some words?
>
>You could make a small function, say, `all-words-present-p':
>
>(require 'cl)
>
>(defun all-words-present-p (words)
>(every (lambda (word) 
>            (goto-char (point-min)) 
>            (search-forward word nil t))
>          words))

Great! Thanks!

-- 
Svend Tollak Munkejord 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]