<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 19, 2017 at 8:12 AM, Michael Wayne Goodman <span dir="ltr"><<a href="mailto:goodmami@uw.edu" target="_blank">goodmami@uw.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi Developers,<br><br></div>Does anyone know why ${LOGONROOT}/dot.emacs redefines the 'unless' and 'when' macros? It breaks some other Emacs packages I have that depend on the return value of the 'unless', which should be the value of the last argument. I'm aware that 'unless' and 'when' should be used when the return value is *not* important (according to <a href="https://www.emacswiki.org/emacs/WhenToUseIf" target="_blank">https://www.emacswiki.org/<wbr>emacs/WhenToUseIf</a>), but do we have to enforce that suggestion by redefining the macros so they don't return the last value?<br><br></div>Also see <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Conditionals.html" target="_blank">https://www.gnu.org/software/<wbr>emacs/manual/html_node/elisp/<wbr>Conditionals.html</a>, which says that 'unless' is equivalent to:<br><br> (if condition nil<br> a b c)<br clear="all"></div></blockquote><div><br></div><div>Er... I meant that the guide says `(unless condition a b c)' is equivalent to the above, not in the general case. And I think the expected return value of the 'unless' expression would be c if condition returns nil.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Thanks<span class="gmail-HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-HOEnZb"><font color="#888888"><div><br>-- <br><div class="gmail-m_-3669990881836768010gmail_signature"><div dir="ltr">Michael Wayne Goodman<div>Ph.D. Candidate, UW Linguistics</div></div></div>
</div></font></span></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Michael Wayne Goodman<div>Ph.D. Candidate, UW Linguistics</div></div></div>
</div></div>