From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Davis Newsgroups: gmane.emacs.help Subject: Re: Help with simple function Date: 09 Jan 2003 15:24:46 -0500 Organization: Pageflex Inc. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <4r8i1eev.fsf@bitstream.com> <87znqayvi8.fsf@Astalo.y2000.kon.iki.fi> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042147444 32600 80.91.224.249 (9 Jan 2003 21:24:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 21:24:04 +0000 (UTC) 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 18Wk9h-0008TG-00 for ; Thu, 09 Jan 2003 22:24:01 +0100 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 18Wjwe-0003WX-01 for gnu-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2003 16:10:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!129.250.35.142.MISMATCH!iad-feed.news.verio.net!phl-feed.news.verio.net!news.bitstream.com!not-for-mail Original-Newsgroups: comp.emacs.xemacs,gnu.emacs.help,gnu.emacs.gnus Original-Lines: 56 Original-NNTP-Posting-Host: 199.103.147.252 Original-X-Trace: news.bitstream.com 1042143585 8711 199.103.147.252 (9 Jan 2003 20:19:45 GMT) Original-X-Complaints-To: sysops@bitstream.com Original-NNTP-Posting-Date: 9 Jan 2003 20:19:45 GMT X-Face: @Pq3?My0v;TPXbg}b;pHV{1I-kH,?FV:1$wMunQgt%u;KIx8Jl%)8E; Tag?jQQu4+Q,/QiTe@x!bk'k@uXGAj?wVZSBSj}T1X}Yql~e]uv@#]I>5F:BJ; +\k5B&3hG3ZT8_{3>#[D)SbK/9t&3TG$L7SnV3G User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Military Intelligence (Windows)) Original-Xref: shelby.stanford.edu comp.emacs.xemacs:69308 gnu.emacs.help:108785 gnu.emacs.gnus:63047 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:5314 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5314 Wow! Thanks *very* much. Can I use your name/contact info in the .gnus sources? Kalle Olavi Niemitalo writes: > Peter Davis writes: > > > I don't even know how to create the pop-servers variable so it > > will accept this list format. > > If you assign a value to a variable (with setq), you implicitly > create it. Variables thus created accept all types of values. > Only some built-in variables have type restrictions. Great. I thought I had to do defvar or something like that. > Of course, there is plenty of code that assumes that the value of > compile-command is a string, for example; but if you choose a > name that is not already in use, there is no conflict. I can make it pd-pop-servers, or something else that's unlikely to conflict. [...] > > 3) Call the Perl script once for each server, passing the arguments, > > password, etc. > > (with-output-to-temp-buffer "*popfetch*" > (dolist (server pop-servers) > (call-process "perl" nil standard-output nil > "c:/home/popfetch.pl" > (plist-get server :server) > (plist-get server :username) > (pd-server-password server)))) > > One should probably display the buffer earlier. The Perl script lists some info on each message as its processed, so it would be nice to see the output in a buffer as it's being generated. That's really just a frill, though. Thanks again for your help! -pd -- -------- Peter Davis Funny stuff at http://www.pfdstudio.com The artwork formerly shown as prints List of resources for children's writers and illustrators at: http://www.pfdstudio.com/cwrl.html