emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] [bug #5044] lisp executes only first statement


From: Trent Buck
Subject: Re: [emacs-wiki-discuss] [bug #5044] lisp executes only first statement
Date: Wed, 11 Jan 2006 10:07:59 +1100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan van der Walt <address@hidden> writes:

> URL:
>   <http://gna.org/bugs/?func=detailitem&item_id=5044>
>
>                  Summary: lisp executes only first statement
>                  Project: The Emacs Muse
>             Submitted by: stefanv
>             Submitted on: Tuesday 01/10/2006 at 22:55
>                 Category: muse
>                 Priority: 5 - Normal
>                 Severity: 3 - Normal
>                   Status: None
>                  Privacy: Public
>              Assigned to: None
>         Originator Email: 
>              Open/Closed: Open
>
>     _______________________________________________________
>
> Details:
>
> When calling lisp like, for example
>
> <lisp>
> (defun f () 5)
> (f)
> </lisp>
>
> only the first statement is evaluated.

Use progn.

<lisp>
(progn (defun f () 5)
(f))
</lisp>

-- 
Trent Buck, Student Errant




reply via email to

[Prev in Thread] Current Thread [Next in Thread]