prognth

https://github.com/Fuco1/prognth.git

git clone 'git://github.com/Fuco1/prognth.git'
1

prognth

Emacs provides prog1, prog2 and progn to group statements and return the value of first, second or last form. This package extends this notion to allow arbitrary index. The macro prognth takes as a first argument the index of the form whose value is to be returned. If the index is 1, 2 or greater than length of the body, the standard emacs forms are used. Otherwise, this translates to

(prog1 (progn ... first INDEX forms) rest)