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: Wed, 29 Jun 2016 00:01:13 -0700 (PDT) Message-ID: <88afb09b-caa5-47ec-ba99-8278072271a2@googlegroups.com> 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 1467183929 9403 80.91.229.3 (29 Jun 2016 07:05:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 07:05:29 +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 09:05:29 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 1bI9Yu-0003yf-Ic for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2016 09:05:28 +0200 Original-Received: from localhost ([::1]:41612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI9Yt-00054j-HG for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2016 03:05:27 -0400 X-Received: by 10.66.78.231 with SMTP id e7mr6251134pax.42.1467183674183; Wed, 29 Jun 2016 00:01:14 -0700 (PDT) X-Received: by 10.36.227.7 with SMTP id d7mr574491ith.3.1467183674132; Wed, 29 Jun 2016 00:01:14 -0700 (PDT) Original-Path: usenet.stanford.edu!jk6no6027930igb.0!news-out.google.com!o189ni9689ith.0!nntp.google.com!jk6no6027924igb.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=122.56.204.11; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 122.56.204.11 User-Agent: G2/1.0 Injection-Date: Wed, 29 Jun 2016 07:01:14 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218342 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:110651 Archived-At: On Wednesday, June 29, 2016 at 1:56:33 PM UTC+12, Michael Heerdegen wrote: > Davin Pearson writes: > > > I tried the following code but it doesn't work. > > > > (advice-add 'describe-mode > > :around > > #'(lambda () (delete-other-windows) ad-do-it) > > ) > > There is no `ad-do-it' pseudo variable/whatever in nadvice anymore. The > functions that are used as a piece of advice are simply called - and > how tells the doc of `add-function', or the manual. > > > 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? > > Document the function that "is" the advice. > > > Michael. Thanks for your helpful advice. I use defadvice a lot and I am still unsure why Stephen Monier removed that feature.