From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: Crappyness of Emacs Version 24.5.1 defadvice Date: Tue, 28 Jun 2016 18:48:51 -0700 (PDT) Message-ID: References: <51b6ce57-51f6-43b9-9ad0-20540a877dca@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467165039 2877 80.91.229.3 (29 Jun 2016 01:50:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 01:50:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 29 03:50:35 2016 Return-path: Envelope-to: geh-help-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 1bI4eA-0003N0-0L for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2016 03:50:34 +0200 Original-Received: from localhost ([::1]:40625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI4e5-00042J-Ql for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 21:50:29 -0400 X-Received: by 10.157.33.27 with SMTP id i27mr5568157otb.11.1467164931687; Tue, 28 Jun 2016 18:48:51 -0700 (PDT) X-Received: by 10.36.110.134 with SMTP id w128mr269326itc.3.1467164931645; Tue, 28 Jun 2016 18:48:51 -0700 (PDT) Original-Path: usenet.stanford.edu!r1no5898964ige.0!news-out.google.com!d62ni4309ith.0!nntp.google.com!r1no5898954ige.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=115.189.96.144; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 115.189.96.144 User-Agent: G2/1.0 Injection-Date: Wed, 29 Jun 2016 01:48:51 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218340 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110649 Archived-At: On Wednesday, June 29, 2016 at 2:22:01 AM UTC+12, Drew Adams wrote: > > > The old behavior is preferable so I know which file the advice > > > is coming from. > > > > Could someone tell me how to get the old behavior back? > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14734 > ("REGRESSION: defadvice broken wrt doc strings (C-h f)") > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14070 > ("incorrect doc from `C-h f' when use `defadvice' with `before'") > > This post by Stefan provides the rationale behind the new advice > system. (You might want to read the rest of the thread too.) > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16402#31 > ("Document nadvice.el stuff in Elisp manual before Emacs 24.4") I tried the following code but it doesn't work. (advice-add 'describe-mode :around #'(lambda () (delete-other-windows) ad-do-it) ) Worse still, it brings up the following message when I try C-h f describe-mode RET :around advice: No documentation Where do I add the documentation to the advice mechanism?