From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5863: defadvice in byte compiled file does not work Date: Thu, 08 Apr 2010 22:06:10 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270780131 11182 80.91.229.12 (9 Apr 2010 02:28:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Apr 2010 02:28:51 +0000 (UTC) Cc: Andreas Schwab , 5863@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 09 04:28:48 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O03xf-0002k2-SM for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Apr 2010 04:28:48 +0200 Original-Received: from localhost ([127.0.0.1]:37831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O03xf-0007oB-7z for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 22:28:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O03xa-0007nw-Ge for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 22:28:42 -0400 Original-Received: from [140.186.70.92] (port=60955 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O03xY-0007nW-NZ for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 22:28:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O03xV-0002EO-2d for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 22:28:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57793) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O03xU-0002EI-Vg for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 22:28:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O03cb-0001QW-UQ; Thu, 08 Apr 2010 22:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Apr 2010 02:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5863 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5863-submit@debbugs.gnu.org id=B5863.12707787775474 (code B ref 5863); Fri, 09 Apr 2010 02:07:01 +0000 Original-Received: (at 5863) by debbugs.gnu.org; 9 Apr 2010 02:06:17 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O03bt-0001QF-KX for submit@debbugs.gnu.org; Thu, 08 Apr 2010 22:06:17 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O03bs-0001Q8-Ki for 5863@debbugs.gnu.org; Thu, 08 Apr 2010 22:06:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKMovkvO+K6K/2dsb2JhbACbO3K6aoUJBIs6 X-IronPort-AV: E=Sophos;i="4.52,174,1270440000"; d="scan'208";a="60499964" Original-Received: from 206-248-174-138.dsl.teksavvy.com (HELO pastel.home) ([206.248.174.138]) by ironport2-out.pppoe.ca with ESMTP; 08 Apr 2010 22:06:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CBAAF81AE; Thu, 8 Apr 2010 22:06:10 -0400 (EDT) In-Reply-To: (Lennart Borgman's message of "Thu, 8 Apr 2010 18:56:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 08 Apr 2010 22:07:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36109 Archived-At: > The info page I pointed to says that defadvice should work for > primitives called from lisp code. And that is what does not work for > me here. For such uses, there are several categories of functions: - functions that have their own byte-code (things like widen, car, cdr, ...). - functions that are implemented in C but don't have their own byte-code. - other functions. Pieces of advice on the first kind of functions only work for calls from interpreted Lisp code. Pieces of advice on the second kind of functions only work for calls from Lisp code (both interpreted and byte-compiled). Stefan