From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: start-process and set-process-filter sequence Date: Thu, 14 Apr 2011 16:02:41 +0200 Message-ID: <87bp09ue0t.fsf@gmail.com> References: <21glbp094jfn.fsf@gmail.com> <878vvdpgbo.fsf@gmail.com> <21gl39ll44z8.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302789801 32548 80.91.229.12 (14 Apr 2011 14:03:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2011 14:03:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 14 16:03:17 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 1QAN8e-0006sz-84 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 16:03:16 +0200 Original-Received: from localhost ([::1]:37114 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAN8d-0004JJ-Ev for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 10:03:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAN8Y-0004JC-1Q for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 10:03:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAN8T-0007hQ-SQ for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 10:03:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAN8T-0007hG-Mo for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 10:03:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QAN8O-0006i3-5n for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 16:03:00 +0200 Original-Received: from 82.77.197-77.rev.gaoland.net ([77.197.77.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2011 16:03:00 +0200 Original-Received: from thierry.volpiatto by 82.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2011 16:03:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82.77.197-77.rev.gaoland.net User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.3.50 (gnu/linux) Cancel-Lock: sha1:C12kKpjBeIRrA81H6UCUznd6C/c= 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:80793 Archived-At: William Xu writes: > Thierry Volpiatto writes: > > something like this: > > (prog1 > (start-process "ls" "ls" "ls") > (set-process-filter (get-process "ls") 'foo) > (setq a nil) > ;(read-string "Mood: ") > ) > > It doesn't seem to really fix the problem. You moved read-string to the > end, if you try: > > (prog1 > (start-process "ls" "ls" "ls") > (read-string "Mood: ") > (set-process-filter (get-process "ls") 'foo) > (setq a nil)) > > There will still be a similar problem. The real problem is: why do you want to setq a to nil at this time? -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997