From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Svend Tollak Munkejord Newsgroups: gmane.emacs.help Subject: Test for a list of words? Date: Sun, 11 May 2003 12:45:07 +0200 Organization: The Royal Society for Putting Things on Top of Other Things Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052649916 4784 80.91.224.249 (11 May 2003 10:45:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 11 May 2003 10:45:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun May 11 12:45:14 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19EoKQ-0001F1-00 for ; Sun, 11 May 2003 12:45:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19EoKg-0003Wo-01 for gnu-help-gnu-emacs@m.gmane.org; Sun, 11 May 2003 06:45:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: bacchus.pvv.ntnu.no Original-X-Trace: tyfon.itea.ntnu.no 1052649908 24079 129.241.210.178 (11 May 2003 10:45:08 GMT) Original-X-Complaints-To: usenet@itea.ntnu.no Original-NNTP-Posting-Date: Sun, 11 May 2003 10:45:08 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (berkeley-unix) X-Face: (2vS>!nr@2"*^KO{^8A<,_lGWx3HpnuA1UCA5vbsLl|2fZAV\T'x(3E`4@UJ >_mn@3S(.`C]g9DoFSSNAB@hftp\f-b#!UjRVfG5e#~H*^RvP+:meH63245"^?Zs7S[dE(SL`cn Cancel-Lock: sha1:t9F93IwSrpijRAxCbyCCzID5Zw4= Original-Xref: shelby.stanford.edu gnu.emacs.help:113065 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9560 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9560 Hi, How can I test whether a buffer contains some words? Here is an example: (re-search-forward "foo\\|bar\\|baz" nil t) tests if one or more of the words are present, but I would like to test for all of them. (This is inside a function) Thanks for any hint. -- Svend Tollak Munkejord