all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* around advice: why does (and ad-do-it nil) return t?
@ 2012-02-13 12:43 Leo Alekseyev
  2012-02-13 13:03 ` Jambunathan K
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Alekseyev @ 2012-02-13 12:43 UTC (permalink / raw)
  To: help-gnu-emacs

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!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-14  4:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 12:43 around advice: why does (and ad-do-it nil) return t? Leo Alekseyev
2012-02-13 13:03 ` Jambunathan K
2012-02-14  4:18   ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.