help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Executing part of the code instead of another


From: Robert Pluim
Subject: Re: Executing part of the code instead of another
Date: Wed, 07 Oct 2020 11:53:22 +0200

>>>>> On Wed, 07 Oct 2020 11:46:02 +0200, Emanuel Berg via Users list for the 
>>>>> GNU Emacs text editor <help-gnu-emacs@gnu.org> said:

    Emanuel> Gregory Heytings via Users list for the GNU Emacs text editor 
wrote:
    >> In general you can do:
    >> 
    >> (if [condition]
    >> (progn
    >> [multiple statements of the "then" part])
    >> [multiple statements of the "else" part"])

    Emanuel> And the value returned, if condition, is the one of
    Emanuel> the last one in the "then" or progn part - the
    Emanuel> nth one!

    Emanuel> There is also a `prog1'!

    Emanuel> But no prog2 :(

? I see a prog2 macro in subr.el (it used to be a function, going back
to at least 1994).

Robert
-- 



reply via email to

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