[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
--
- Re: Executing part of the code instead of another, (continued)
- Re: Executing part of the code instead of another, Christopher Dimech, 2020/10/06
- Re: Executing part of the code instead of another, Emanuel Berg, 2020/10/06
- Re: Executing part of the code instead of another, Christopher Dimech, 2020/10/07
- Re: Executing part of the code instead of another, Emanuel Berg, 2020/10/07
- Re: Executing part of the code instead of another, Robert Pluim, 2020/10/07
- Re: Executing part of the code instead of another, Christopher Dimech, 2020/10/07
- Re: Executing part of the code instead of another, Nick Dokos, 2020/10/07
- Re: Executing part of the code instead of another, Christopher Dimech, 2020/10/07
- Re: Executing part of the code instead of another, Gregory Heytings, 2020/10/07
- Re: Executing part of the code instead of another, Emanuel Berg, 2020/10/07
- Re: Executing part of the code instead of another,
Robert Pluim <=
- Re: Executing part of the code instead of another, Emanuel Berg, 2020/10/07
- Re: Executing part of the code instead of another, Robert Pluim, 2020/10/07
- Re: Executing part of the code instead of another, Stefan Monnier, 2020/10/07
- Re: Executing part of the code instead of another, Robert Pluim, 2020/10/07
- Re: Executing part of the code instead of another, Christopher Dimech, 2020/10/07
- Re: Executing part of the code instead of another, tomas, 2020/10/07
- Re: Executing part of the code instead of another, Christopher Dimech, 2020/10/07
- Re: Executing part of the code instead of another, Leo Butler, 2020/10/08
- RE: Executing part of the code instead of another, Drew Adams, 2020/10/07
- Re: Executing part of the code instead of another, Douglas Lewan, 2020/10/18