From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: taashlo@sandia.gov Newsgroups: gmane.emacs.help Subject: Elisp: Search a File Without Visiting? Date: 16 Jun 2003 12:33:28 -0600 Organization: Sandia National Laboratories, Albuquerque, NM USA 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 1055789122 14488 80.91.224.249 (16 Jun 2003 18:45:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2003 18:45:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 20:45:20 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 19Rywx-0003bs-00 for ; Mon, 16 Jun 2003 20:43:27 +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 19Ryyn-0005Ma-Ju for gnu-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2003 14:45:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.sandia.gov!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: sadl10553.sandia.gov Original-X-Trace: sass2141.sandia.gov 1055788394 8942 134.253.225.126 (16 Jun 2003 18:33:14 GMT) Original-X-Complaints-To: usenet@sass2141.sandia.gov Original-NNTP-Posting-Date: Mon, 16 Jun 2003 18:33:14 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:114489 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:10981 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10981 I've looked throught the elisp manual without finding the answer to my question. I've written some elisp so that when I hit a key sequence (C-ct) a thesaurus lookup of the word at point (or the phrase with the mark) is performed with the results of the search displayed in a separate window (for further searching or dictionary lookup). This currently works, but it relies on loading the entire thesaurus file into a buffer to search for the word. The problem is that the thesaurus file (mthesaur.txt[1]) is about 24MiB. My question: is it possible (using elisp) to search the contents of the thesaurus file *without* loading it into a buffer? Thanks, Tad [1] ftp://ibiblio.org/pub/docs/books/gutenberg/etext02/mthes10.zip