GNU bug report logs - #21299
describe-function on advised autoloads

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Glenn Morris <rgm@HIDDEN>; merged with #23523; dated Thu, 20 Aug 2015 17:40:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 21299 <at> debbugs.gnu.org:


Received: (at 21299) by debbugs.gnu.org; 13 Jun 2016 22:19:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 13 18:19:56 2016
Received: from localhost ([127.0.0.1]:39395 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bCaD5-00049s-BM
	for submit <at> debbugs.gnu.org; Mon, 13 Jun 2016 18:19:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55645)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1bCaD2-00049a-P8
 for 21299 <at> debbugs.gnu.org; Mon, 13 Jun 2016 18:19:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1bCaCw-0001PA-RY
 for 21299 <at> debbugs.gnu.org; Mon, 13 Jun 2016 18:19:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39962)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1bCaCw-0001P4-Ob
 for 21299 <at> debbugs.gnu.org; Mon, 13 Jun 2016 18:19:46 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1bCaCu-0007SP-Un; Mon, 13 Jun 2016 18:19:45 -0400
From: Glenn Morris <rgm@HIDDEN>
To: 21299 <at> debbugs.gnu.org
Subject: Re: bug#21299: describe-function on advised autoloads
References: <dgpp2hzwop.fsf@HIDDEN>
X-Spook: MARTA Lockdown Prevention National preparedness Albanian
X-Ran: 6]t"q|O"`~xF?!J1]D#M.kcv?*{LkC|7wsZ$DY7,5F#+jL_]-j}8K>.CjqYWyG6?{vA:f6
X-Hue: white
X-Attribution: GM
Date: Mon, 13 Jun 2016 18:19:44 -0400
In-Reply-To: <dgpp2hzwop.fsf@HIDDEN> (Glenn Morris's message of
 "Thu, 20 Aug 2015 13:39:18 -0400")
Message-ID: <colh28ohof.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 21299
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.4 (------)


The only remaining issue is now:

> the fact that foo1 has advice is not mentioned.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21299; Package emacs. Full text available.
Changed bug title to 'Advised function misconstrued as being aliased in Help' from 'describe-function on advised autoloads' Request was from Kaushal Modi <kaushal.modi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 21299 23523. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Aug 2015 17:39:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 20 13:39:23 2015
Received: from localhost ([127.0.0.1]:33754 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZSToB-0001ga-65
	for submit <at> debbugs.gnu.org; Thu, 20 Aug 2015 13:39:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48547)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rgm@HIDDEN>) id 1ZSTo9-0001gS-52
 for submit <at> debbugs.gnu.org; Thu, 20 Aug 2015 13:39:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1ZSTo8-0002MB-7J
 for submit <at> debbugs.gnu.org; Thu, 20 Aug 2015 13:39:20 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.6 required=5.0 tests=ALL_TRUSTED,BAYES_20,
 RP_MATCHES_RCVD autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([208.118.235.10]:51813)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1ZSTo8-0002M6-3y
 for submit <at> debbugs.gnu.org; Thu, 20 Aug 2015 13:39:20 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1ZSTo6-00076c-8a; Thu, 20 Aug 2015 13:39:18 -0400
From: Glenn Morris <rgm@HIDDEN>
To: submit <at> debbugs.gnu.org
Subject: describe-function on advised autoloads
X-Spook: AQAP Conficker spy Wave Palestine Liberation Front UNSCOM
X-Ran: ^K=Sxi4lD-5N?M`B\NG+)+YnACR'd_v<cz1SCoZZ/Vhv9ao<EUAXP#BtH1q)c?QRHu(^}T
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 20 Aug 2015 13:39:18 -0400
Message-ID: <dgpp2hzwop.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.10
X-Spam-Score: -5.6 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.6 (-----)

Package: emacs
Version: 25.0.50

A couple of issues related to describe-function on advised autoloads.
Current master, emacs -Q.

1) When the autoload has known arguments:

(autoload 'foo1 "foo" "Do something.

\(fn arg1)")

(defun foo-ad (&rest _args))

(advice-add 'foo1 :before #'foo-ad)

C-h f foo1
 ->  foo1 is an alias for 'foo1'

Informative!

Also, the fact that foo1 has advice is not mentioned.


2) When the function has unknown arguments:

(autoload 'foo2 "foo" "Do something.")
(advice-add 'foo2 :before #'foo-ad)

C-h f foo2
 -> foo2 is an alias for 'foo2'

 (foo2 91 65 114 103 32 108 105 115 116 32 110 111 116 32 97 118 97 105
 108 97 98 108 101 32 117 110 116 105 108 32 102 117 110 99 116 105 111
 110 32 100 101 102 105 110 105 116 105 111 110 32 105 115 32 108 111
 97 100 101 100 46 93)

 Do something.

Nice argument list...




Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21299; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 13 Jun 2016 22:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.