From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.bugs,gmane.emacs.help Subject: Re: (progn (top-level) A B C) Date: Wed, 14 Feb 2007 18:37:08 +0100 (CET) Message-ID: <3473217.139831171474628637.JavaMail.www@wwinf4102> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1171474653 20325 80.91.229.12 (14 Feb 2007 17:37:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Feb 2007 17:37:33 +0000 (UTC) Cc: "Emacs Help \[help-gnu-emacs\]" , "Emacs Bug \[bug-gnu-emacs\]" To: "Lennart Borgman (gmail)" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 14 18:37:17 2007 Return-path: Envelope-to: geb-bug-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 1HHO4D-0007QO-6t for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Feb 2007 18:37:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHO4C-0003pM-Si for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Feb 2007 12:37:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHO49-0003oK-Ev for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2007 12:37:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHO48-0003nZ-0b for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2007 12:37:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHO47-0003nP-Sb; Wed, 14 Feb 2007 12:37:11 -0500 Original-Received: from smtp2.voila.fr ([193.252.22.175] helo=smtp1.voila.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HHO46-0003oL-Ny; Wed, 14 Feb 2007 12:37:11 -0500 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4102.voila.fr (SMTP Server) with ESMTP id A4C131C001D6; Wed, 14 Feb 2007 18:37:08 +0100 (CET) Original-Received: from wwinf4102 (wwinf4102 [172.22.152.29]) by mwinf4102.voila.fr (SMTP Server) with ESMTP id 9EF741C001C2; Wed, 14 Feb 2007 18:37:08 +0100 (CET) X-ME-UUID: 20070214173708651.9EF741C001C2@mwinf4102.voila.fr X-Originating-IP: [86.107.96.49] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~||~| X-WUM-REPLYTO: |~| X-detected-kernel: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15586 gmane.emacs.help:41204 Archived-At: > I do not think you can do it directly, but maybe you can use a timer? >=20 > (run-with-idle-timer 0 nil (lambda() Thanks, I will check. Another method that I found is (unwind-protect (prog1 (message "x") (top-level)) (message "a") (message "b")) By the way, this code returns "Back to top level." . BAD. x a b Back to top level. What is the definition of prog1? It should return the first argument. It se= ems that in this case the 1st argument is lost. This is a BUG in prog1... I think that prog2, progn give the same bug... Th= at is? Does somebody else knows another methods? Let us make all of you that know = a list of methods here for this problem, please... Trying to solve a bug in the E debugger I asked myself this problem... Alin Soare. > Message du 14/02/07 =C3=A0 17h38 > De : "Lennart Borgman (gmail)" > A : alinsoar@voila.fr > Copie =C3=A0 : "Emacs Help [help-gnu-emacs]" > Objet : Re: (progn (top-level) A B C) >=20 > A Soare wrote: > > Hello, > >=20 > > Can somebody tell me how you write a code to execute the followiung com= mands in the order t-l A B C: > >=20 > > (top-level) > > (A ...) > > (B ...) > > (C ...) ? >=20 >=20 > I do not think you can do it directly, but maybe you can use a timer? >=20 > (run-with-idle-timer 0 nil (lambda() > (message "a")(sit-for 1) > (message "b")(sit-for 1) > (message "c")(sit-for 1) > )) > (top-level) >=20 >