[PATCH] emacs: globally replace non-branching "(if (not ..." with "(unless ..."

Tomi Ollila tomi.ollila at iki.fi
Fri Jan 13 04:37:48 PST 2012


On Fri, 13 Jan 2012 13:42:55 +0100, Xavier Maillard <xavier at maillard.im> wrote:
> 
> On Fri, 13 Jan 2012 08:23:55 +0000, David Edmondson <dme at dme.org> wrote:
> > On Thu, 12 Jan 2012 18:33:06 +0100, Pieter Praet <pieter at praet.org> wrote:
> > > Less code, same results, without sacrificing readability.
> > 
> > +1, but why not replace non-branching `if' with `when' as well?
> 
> I tend to use WHEN for case I need to execute multiple
> statements. For the rest, IF is ok.

Same here, (when ...) is (if (progn ...)) for me.

> 
> /Xavier

Tomi


More information about the notmuch mailing list