bbatsov / emacs-lisp-style-guide

A community-driven Emacs Lisp style guide
1.08k stars 53 forks source link

progn along with if #59

Closed noorul closed 3 years ago

noorul commented 3 years ago

I see that progn is discouraged in the style guide. I am thinking about how is the following scenario handled.

If there is more than one statement to be executed if the condition is true and otherwise.

Fuco1 commented 3 years ago

It says:

Don’t wrap the else clause

The if clause needs to be wrapped, there's no way around it. Unless it's a single form.

noorul commented 3 years ago

Thanks for the clarification. Closing this.