From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#19711: 25.0.50; (ad-is-adviced sym) is inconsistent with (advice--p (advice--symbol-function sym)) Date: Wed, 28 Jan 2015 21:07:36 +0100 Message-ID: References: <87y4on57t6.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422475697 12590 80.91.229.3 (28 Jan 2015 20:08:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 20:08:17 +0000 (UTC) Cc: 19711@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 28 21:08:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGYuL-0004Wi-B2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 21:08:13 +0100 Original-Received: from localhost ([::1]:55736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGYuK-0000tg-Gn for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 15:08:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGYuF-0000qd-9i for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:08:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGYuA-0003kX-Ev for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:08:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGYuA-0003kR-Cc for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YGYuA-0007KQ-0Z for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jan 2015 20:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19711 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19711-submit@debbugs.gnu.org id=B19711.142247566528148 (code B ref 19711); Wed, 28 Jan 2015 20:08:01 +0000 Original-Received: (at 19711) by debbugs.gnu.org; 28 Jan 2015 20:07:45 +0000 Original-Received: from localhost ([127.0.0.1]:59272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGYts-0007Ju-Cm for submit@debbugs.gnu.org; Wed, 28 Jan 2015 15:07:44 -0500 Original-Received: from mail-wi0-f174.google.com ([209.85.212.174]:34091) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGYtq-0007Ji-Pb for 19711@debbugs.gnu.org; Wed, 28 Jan 2015 15:07:43 -0500 Original-Received: by mail-wi0-f174.google.com with SMTP id n3so14531832wiv.1 for <19711@debbugs.gnu.org>; Wed, 28 Jan 2015 12:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Iq1lt6G1jIqTdF56zmu5Hai7zak4rcRQI2UsemooLK8=; b=IdaCZ/MwU9JIhqps4HlH16mqp+vN3q0yoMK6H0taiHMeyZ9RiYz0Y5/ThFhI7qPo33 +/NYocwjjL6m3GUGoocIzJog+pYNJr1uxBN8Sy6UrIu3NaSHiygWn5XVIvWplVcdfTRw ppVsQ6qtAGJ5KSawImwXnBvqPwcSq1xhIXQLznD0RdhOKUxPAa+oFqWBnKnmLPsKSaPK hss/dyeCTLuDfpboHuEojzJ33Bh5E8Y17q5Td5VrZjRTniIajYJjC1awE93y96ZF8Qin QMKqMKPumTyUHAd40ECjMr4C/JUQo64b7KPJWsaP4ynnUcFWH9PJEl69puHAyNG6T80b xFVw== X-Received: by 10.194.234.2 with SMTP id ua2mr10953240wjc.40.1422475657051; Wed, 28 Jan 2015 12:07:37 -0800 (PST) Original-Received: by 10.27.137.137 with HTTP; Wed, 28 Jan 2015 12:07:36 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98843 Archived-At: On Wed, Jan 28, 2015 at 8:55 PM, Stefan Monnier wrote: >> `ad-is-advised' expands to: >> (get 'foo 'ad-advice-info) >> This code will not detect if the function `foo' is being instrumented >> with `elp-instrument-package' (which is a form of advice). > > That's because ad-is-advised tells you "is there a "defadvice" on this > function" rather than "is there some kind of advice-like thingy on this > function". > Since this is used by advice.el internally, changing it might just break > advice.el. I'm mainly interested in this application: (help-function-arglist (if (ad-is-advised fun) (ad-get-orig-definition fun) fun) t) I can't get the original arguments of FUN if it's adviced (instrumented also falls here), so I'd like to detect if it is. If `ad-is-advised` isn't enough, what other (public) function could I use?