From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.help Subject: Re: Elisp: Search a File Without Visiting? Date: 17 Jun 2003 08:02:24 -0700 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <877k7ksq67.fsf@blarg.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055862543 7488 80.91.224.249 (17 Jun 2003 15:09:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2003 15:09:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 17 17:09:00 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 19SI2y-0001jR-00 for ; Tue, 17 Jun 2003 17:06:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SI1w-00084R-4s for gnu-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2003 11:05:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 17 Original-Xref: shelby.stanford.edu gnu.emacs.help:114510 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:11002 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11002 >>>>> "Tad" == taashlo writes: Tad> My question: is it possible (using elisp) to search the Tad> contents of the thesaurus file *without* loading it into a Tad> buffer? You could use, or duplicate the code of, the `grep' command. That simply runs `grep' in a subprocesses and captures the output in a buffer. -- In the practice of computing, where we have so much latitude for making a mess of it, mathematical elegance is not a dispensable luxury, but a matter of life and death. -- Edsger W. Dijkstra: My Hopes of Computing Science (EWD 709) http://www.cs.utexas.edu/users/EWD/ewd07xx/EWD709.PDF