From: Svend Tollak Munkejord <stm@bacchus.pvv.org>
Subject: Re: Test for a list of words?
Date: Sun, 11 May 2003 17:10:33 +0200 [thread overview]
Message-ID: <hdd3cjltt7a.fsf@bacchus.pvv.ntnu.no> (raw)
In-Reply-To: m3llxdy3lt.fsf@defun.localdomain
Today, Jesper Harder <harder@myrealbox.com> wrote:
>Svend Tollak Munkejord <stm@bacchus.pvv.org> 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
prev parent reply other threads:[~2003-05-11 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-11 10:45 Test for a list of words? Svend Tollak Munkejord
2003-05-11 14:12 ` Jesper Harder
2003-05-11 15:10 ` Svend Tollak Munkejord [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hdd3cjltt7a.fsf@bacchus.pvv.ntnu.no \
--to=stm@bacchus.pvv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.