unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problem advising nreverse.
@ 2009-12-11 13:22 Sergei Organov
  0 siblings, 0 replies; 18+ messages in thread
From: Sergei Organov @ 2009-12-11 13:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

It seems that an advice set for `nreverse' function fails to be called
when `nreverse' is called from a byte compiled function:

(let ((calls))
  (defun test (problem)
    (setq calls (concat calls "["))
    (defun foo () (nreverse '()))
    (and problem (byte-compile 'foo))
    (defadvice nreverse (before nrev-adv activate)
      (setq calls (concat calls "nrev-adv")))
    (foo)
    (ad-unadvise 'nreverse)
    (setq calls (concat calls "]")))
  (test t) (test nil) (test t)
  calls)

Evaluating this gives me (in either GNU Emacs 22.2.1 or GNU Emacs 23.1.1):

"[][nrev-adv][]"

Is it bug or feature? What's going on here? 





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

end of thread, other threads:[~2009-12-17 16:52 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.12764.1260538816.2239.help-gnu-emacs@gnu.org>
2009-12-12 12:18 ` Problem advising nreverse Pascal J. Bourguignon
2009-12-14 11:07   ` Sergei Organov
     [not found]   ` <mailman.12932.1260788943.2239.help-gnu-emacs@gnu.org>
2009-12-14 13:01     ` Pascal J. Bourguignon
2009-12-14 15:05       ` Sergei Organov
2009-12-15  8:19         ` Kevin Rodgers
2009-12-15 12:02           ` Sergei Organov
     [not found]       ` <mailman.12940.1260803316.2239.help-gnu-emacs@gnu.org>
2009-12-14 15:23         ` Pascal J. Bourguignon
2009-12-14 16:01           ` Sergei Organov
     [not found]           ` <mailman.12941.1260806509.2239.help-gnu-emacs@gnu.org>
2009-12-14 17:56             ` Pascal J. Bourguignon
2009-12-14 19:59               ` Sergei Organov
     [not found]               ` <mailman.12952.1260820780.2239.help-gnu-emacs@gnu.org>
2009-12-15  1:47                 ` Pascal J. Bourguignon
2009-12-15 12:06                   ` Sergei Organov
     [not found]                   ` <mailman.13009.1260879016.2239.help-gnu-emacs@gnu.org>
2009-12-15 19:54                     ` Pascal J. Bourguignon
2009-12-15 20:38                   ` Sergei Organov
     [not found]                   ` <mailman.13027.1260909564.2239.help-gnu-emacs@gnu.org>
2009-12-15 21:12                     ` Barry Margolin
2009-12-16 11:27                       ` Sergei Organov
     [not found]                       ` <mailman.13051.1260962896.2239.help-gnu-emacs@gnu.org>
2009-12-17 16:52                         ` Barry Margolin
2009-12-11 13:22 Sergei Organov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).