From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Yu,Gang" Newsgroups: gmane.emacs.help Subject: Re: Why I get different results running the same exp? Date: Fri, 8 Jun 2007 10:57:22 +0800 Message-ID: <48378d570706071957r761a3b04y758506d692d7036e@mail.gmail.com> References: <87fy53uaft.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0882394614==" X-Trace: sea.gmane.org 1181271463 763 80.91.229.12 (8 Jun 2007 02:57:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2007 02:57:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Thien-Thi Nguyen" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 08 04:57:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HwUfV-0005TF-0z for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jun 2007 04:57:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwUfU-0000vZ-Dk for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Jun 2007 22:57:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwUfG-0000vS-U7 for help-gnu-emacs@gnu.org; Thu, 07 Jun 2007 22:57:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwUfE-0000vF-IH for help-gnu-emacs@gnu.org; Thu, 07 Jun 2007 22:57:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwUfE-0000uw-A0 for help-gnu-emacs@gnu.org; Thu, 07 Jun 2007 22:57:24 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwUfD-0002FA-LV for help-gnu-emacs@gnu.org; Thu, 07 Jun 2007 22:57:24 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so849066wah for ; Thu, 07 Jun 2007 19:57:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Dwzke0weBw9J5CV1s0DwDvfgnPOk7OxugPhoZIBE5h7Jhixd8rUly4x24iv/PvfTMIn7m3Cyh2Vm8HkN8FscETnCLfYRBI1nRReB3OeEASMi8/q4kxGQBaCFMgd/nuxRPigDNEu+z4XXM2u98y0Xc2SKdlsMdjBFrWeFjGItqho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ffrcwjcx8NVIPXp3fjv9eQmFAjokkNKUxNrlck7jwMpu6LSD2+IFLH81SsFJa5R/IMqT4O7mv08y+51blOCG4LWhHwLnaNHC6CY6u0JqaLeuaQaOGDBfjWvpGrXtML3Znkcsu2c31MQUFDITtcZ9SM3WvuIm33WR6IzU+6oF54w= Original-Received: by 10.114.78.1 with SMTP id a1mr2115725wab.1181271442240; Thu, 07 Jun 2007 19:57:22 -0700 (PDT) Original-Received: by 10.114.57.15 with HTTP; Thu, 7 Jun 2007 19:57:22 -0700 (PDT) In-Reply-To: <87fy53uaft.fsf@ambire.localdomain> X-detected-kernel: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44768 Archived-At: --===============0882394614== Content-Type: multipart/alternative; boundary="----=_Part_52784_31823284.1181271442221" ------=_Part_52784_31823284.1181271442221 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline If I understand you corrently, I restart emacs with "emacs -q" I copy the code to *scratch*, evaluate them then, I repeatedly run "(ygrep "(start|stop)-process" "\\.el$" load-path)" third times, first result is 128 matches , and second 141, third 146. I ediff the buffers ,find that some items are ingored by the precedent match. But I could not explain:-( I suspect the problem is "(while (and grep-process (not (equal (process-status grep-process) 'exit))) (sleep-for 0 100)))" but I am not sure, any suggestions? thanks On 6/7/07, Thien-Thi Nguyen wrote: > > () "Yu,Gang" > () Thu, 7 Jun 2007 19:25:28 +0800 > > but, everytime I run: > > (ygrep "(start|stop)-process" "\\.el$" load-path) > > in the *scratch* buffer, I get a different result. > > What's wrong?? > > if you save the code and repeatedly load it into a freshly > started emacs, do you get consistent results each time? > > if so, what does that mean? > if not, what does that mean? > > thi > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > cheers -- YuGang ------=_Part_52784_31823284.1181271442221 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline If I understand you corrently, I restart emacs with

"emacs -q"

I copy the code to *scratch*, evaluate them

then, I repeatedly run "(ygrep "(start|stop)-process" "\\.el$" load-path)" third times,

first result is 128 matches , and second 141, third 146.

I ediff the buffers ,find that some items are ingored by the precedent match.

But I could not explain:-(

I suspect the problem is
"(while (and
        grep-process
        (not (equal (process-status grep-process) 'exit)))
      (sleep-for 0 100)))"

but I am not sure, any suggestions?

thanks

On 6/7/07, Thien-Thi Nguyen <ttn@gnuvola.org> wrote:
() "Yu,Gang" <wuhanyugang@gmail.com>
() Thu, 7 Jun 2007 19:25:28 +0800

   but, everytime I run:

   (ygrep "(start|stop)-process" "\\.el$" load-path)

   in the *scratch* buffer, I get a different result.

   What's wrong??

if you save the code and repeatedly load it into a freshly
started emacs, do you get consistent results each time?

if so, what does that mean?
if not, what does that mean?

thi
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

cheers

--
YuGang ------=_Part_52784_31823284.1181271442221-- --===============0882394614== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0882394614==--