From: A Soare <alinsoar@voila.fr>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: "Emacs Help \[help-gnu-emacs\]" <help-gnu-emacs@gnu.org>,
"Emacs Bug \[bug-gnu-emacs\]" <bug-gnu-emacs@gnu.org>
Subject: Re: (progn (top-level) A B C)
Date: Wed, 14 Feb 2007 18:37:08 +0100 (CET) [thread overview]
Message-ID: <3473217.139831171474628637.JavaMail.www@wwinf4102> (raw)
> I do not think you can do it directly, but maybe you can use a timer?
>
> (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 seems that in this case the 1st argument is lost.
This is a BUG in prog1... I think that prog2, progn give the same bug... That 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 à 17h38
> De : "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
> A : alinsoar@voila.fr
> Copie à : "Emacs Help [help-gnu-emacs]" <help-gnu-emacs@gnu.org>
> Objet : Re: (progn (top-level) A B C)
>
> A Soare wrote:
> > Hello,
> >
> > Can somebody tell me how you write a code to execute the followiung commands in the order t-l A B C:
> >
> > (top-level)
> > (A ...)
> > (B ...)
> > (C ...) ?
>
>
> I do not think you can do it directly, but maybe you can use a timer?
>
> (run-with-idle-timer 0 nil (lambda()
> (message "a")(sit-for 1)
> (message "b")(sit-for 1)
> (message "c")(sit-for 1)
> ))
> (top-level)
>
>
next reply other threads:[~2007-02-14 17:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 17:37 A Soare [this message]
2007-02-14 17:48 ` (progn (top-level) A B C) Andreas Schwab
[not found] <mailman.4495.1171467492.2155.help-gnu-emacs@gnu.org>
2007-02-14 16:22 ` Pascal Bourguignon
-- strict thread matches above, loose matches on Subject: below --
2007-02-14 15:38 A Soare
2007-02-14 16:38 ` Lennart Borgman (gmail)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3473217.139831171474628637.JavaMail.www@wwinf4102 \
--to=alinsoar@voila.fr \
--cc=bug-gnu-emacs@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).