help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

around advice: why does (and ad-do-it nil) return t?


From: Leo Alekseyev
Subject: around advice: why does (and ad-do-it nil) return t?
Date: Mon, 13 Feb 2012 07:43:42 -0500

Consider the following code:

(defun foobar () t)
(defadvice foobar (around foobar-advice activate)
  (and ad-do-it nil))

Evaluating the advised foobar seems to return t.  Why?  Naively, one
expects (and [whatever] nil) to evaluate to nil!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]