From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: LISP Questions - random, random elements and memory management Date: Fri, 20 Nov 2009 01:28:26 -0500 Organization: A noiseless patient Spider Message-ID: References: <20091119.101614.37733655.jeff@chaosphere.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1258699299 28736 80.91.229.12 (20 Nov 2009 06:41:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 06:41:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 07:41:32 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBNBT-0003rF-Le for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 07:41:31 +0100 Original-Received: from localhost ([127.0.0.1]:47471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBNBS-0006cv-Vu for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 01:41:31 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: news.eternal-september.org U2FsdGVkX1+sJ8Ygfm0ldEHKh+DY0O0Ae23jSC2XLGlyft2LdsDETMF9h5h0zMDFm43JLQRmzvcBnckh5awo26TrvOzKlgw0hXq3WGazHqr2AUJw2u14Duh9q+D+tXuJ95JuxwdqBjU= Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Fri, 20 Nov 2009 06:28:26 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Auth-Sender: U2FsdGVkX1+/4hkrQct1IC49zixLcfc7Z6PkCmE80bQ= Cancel-Lock: sha1:MLS8V8Z9Vqr2uy8wRUobmdW2AAE= Original-Xref: news.stanford.edu gnu.emacs.help:174887 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69959 Archived-At: In article , Kevin Rodgers wrote: > Jeff Clough wrote: > > From: Barry Margolin > > Date: Thu, 19 Nov 2009 08:44:24 -0500 > > > >> How about putting it in a text file that you load into a temporary > >> buffer when you need it? Then kill the buffer when you're done with it. > > Isn't the point to read the words into a list? So assuming the file looks > like: > > ("word1" "word2" "word3" ... "wordN") I thought the point was to select a word at random. Putting it into a list was just part of his initial implementation of this. If he reads it into a buffer, instead of picking a random list element, he can pick a random line number. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***