From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kalle Olavi Niemitalo Newsgroups: gmane.emacs.help Subject: Re: Help with simple function Date: 10 Jan 2003 00:44:35 +0200 Organization: Oulun Puhelin Oyj - Baana Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87r8bm6izw.fsf@Astalo.y2000.kon.iki.fi> 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 1042183568 25222 80.91.224.249 (10 Jan 2003 07:26:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2003 07:26:08 +0000 (UTC) Keywords: defvar,symbol-name,byte-compile-warnings,unload-feature 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 18WtYN-0006Yg-00 for ; Fri, 10 Jan 2003 08:26:07 +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 18WtXb-00019A-00 for gnu-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2003 02:25:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.nyc.globix.net!news.stealth.net!news.stealth.net!newsfeed.song.fi!news.suomi.net!Astalo.Niemitalo.local!news Original-Newsgroups: comp.emacs.xemacs,gnu.emacs.help,gnu.emacs.gnus Original-Lines: 39 Original-NNTP-Posting-Host: addr-213-139-162-224.suomi.net Original-X-Trace: plaza.suomi.net 1042182566 29366 213.139.162.224 (10 Jan 2003 07:09:26 GMT) Original-X-Complaints-To: abuse@mail.suomi.net Original-NNTP-Posting-Date: Fri, 10 Jan 2003 07:09:26 +0000 (UTC) X-Accept-Language: fi;q=1.0, en;q=0.9, sv;q=0.5, de;q=0.1 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu comp.emacs.xemacs:69316 gnu.emacs.help:108791 gnu.emacs.gnus:63060 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:5320 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5320 Peter Davis writes: > Wow! Thanks *very* much. Can I use your name/contact info in the > .gnus sources? Name and email address, sure; but the rest I'm trying to keep out of databases. > I thought I had to do defvar or something like that. It's good practice, but not required. With defvar, you can attach a documentation string to the variable. It also makes Emacs remember which file defined the variable, so that you can easily browse it if you just remember the name of the variable, and M-x unload-feature can undefine the variable. Finally, the byte compiler warns if you use undefined variables; but this only matters if you compile your ~/.gnus, and you can disable those warnings (see byte-compile-warnings) if you want. > 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. This might work: (let ((output (get-buffer-create "*popfetch*"))) (with-current-buffer output (erase-buffer)) (display-buffer output) (dolist (server pd-pop-servers) (call-process "perl" nil output t "c:/home/popfetch.pl" (plist-get server :server) (plist-get server :username) (pd-server-password server)))) Actually, if you store server names as symbols (:server mail.mywork.com ...) like you originally wrote, this loop will have to convert them to strings with symbol-name.