From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.help Subject: Re: start-process and set-process-filter sequence Date: Fri, 15 Apr 2011 10:21:04 +0800 Organization: the Church of Emacs Message-ID: <21glei54s19r.fsf@gmail.com> References: <21glbp094jfn.fsf@gmail.com> <878vvdpgbo.fsf@gmail.com> <21gl39ll44z8.fsf@gmail.com> <87bp09ue0t.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302834156 20034 80.91.229.12 (15 Apr 2011 02:22:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2011 02:22:36 +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 Apr 15 04:22:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QAYg0-00040X-4J for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Apr 2011 04:22:28 +0200 Original-Received: from localhost ([::1]:53962 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAYfz-0001gD-N0 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 22:22:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAYfu-0001g8-KC for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 22:22:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAYft-00015z-Ma for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 22:22:22 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAYft-00015r-Hh for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 22:22:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QAYfr-0003wo-Up for help-gnu-emacs@gnu.org; Fri, 15 Apr 2011 04:22:19 +0200 Original-Received: from esprx01x.nokia.com ([192.100.124.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Apr 2011 04:22:19 +0200 Original-Received: from william.xwl by esprx01x.nokia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Apr 2011 04:22:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: esprx01x.nokia.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:xiR0VBZV/SVRvenU2gz1eiFjBoc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80798 Archived-At: Thierry Volpiatto writes: The real problem is: why do you want to setq a to nil at this time? Just for initialize/reset `a' in the testing. You can move it to the beginning of `prog1', like: (progn (setq a nil) (prog1 (start-process "ls" "ls" "ls") (read-string "Mood: ") (set-process-filter (get-process "ls") 'foo))) But that is not important here.. -- William http://xwl.appspot.com