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: Thu, 14 Apr 2011 16:22:35 +0800 Organization: the Church of Emacs Message-ID: <21gl39ll44z8.fsf@gmail.com> References: <21glbp094jfn.fsf@gmail.com> <878vvdpgbo.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302769383 5699 80.91.229.12 (14 Apr 2011 08:23:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2011 08:23:03 +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 10:22:56 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 1QAHpG-0006up-P5 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 10:22:55 +0200 Original-Received: from localhost ([::1]:40050 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAHpF-0003m7-W6 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 04:22:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAHpB-0003m2-Dn for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 04:22:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAHpA-0003ds-DL for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 04:22:49 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:33856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAHpA-0003do-4v for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 04:22:48 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QAHp8-0006qJ-IU for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 10:22:46 +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 ; Thu, 14 Apr 2011 10:22:46 +0200 Original-Received: from william.xwl by esprx01x.nokia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2011 10:22:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 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:GnMkhy0O9LjHXzsfWkozLa0vNY8= 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:80788 Archived-At: 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. -- William http://xwl.appspot.com