all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17348: 24.3.50; Cannot advice-add the same function :before and :after
@ 2014-04-26 11:16 Nicolas Richard
  2014-04-26 12:46 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Richard @ 2014-04-26 11:16 UTC (permalink / raw)
  To: 17348

Evalling:
(progn
  (defun yfcheck () (message "Check"))
  (defun yftest () (message "Test"))
  (advice-add 'yftest :before #'yfcheck)
  (advice-add 'yftest :after #'yfcheck)
  (yftest)
  nil)

gives (in the *Messages* buffer)
Test
Check

I'd have expected:
Check
Test
Check

-- 
Nico.





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

end of thread, other threads:[~2014-05-10 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26 11:16 bug#17348: 24.3.50; Cannot advice-add the same function :before and :after Nicolas Richard
2014-04-26 12:46 ` Stefan Monnier
2014-04-26 20:22   ` Nicolas Richard
2014-05-01 20:47     ` Stefan Monnier
2014-05-10 20:09       ` Stefan Monnier

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.