From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Crappyness of Emacs Version 24.5.1 defadvice Date: Wed, 29 Jun 2016 03:55:57 +0200 Message-ID: <87eg7gvjv6.fsf@web.de> References: <51b6ce57-51f6-43b9-9ad0-20540a877dca@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467165481 9454 80.91.229.3 (29 Jun 2016 01:58:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 01:58:01 +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:57:54 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 1bI4lC-0000L4-KP for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2016 03:57:50 +0200 Original-Received: from localhost ([::1]:40652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI4l6-0001dz-Tz for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 21:57:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI4js-0008Vv-AT for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 21:56:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bI4jm-0002hz-Bb for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 21:56:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI4jm-0002ht-4J for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 21:56:22 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bI4ji-0007jB-2o for help-gnu-emacs@gnu.org; Wed, 29 Jun 2016 03:56:18 +0200 Original-Received: from p4fd85358.dip0.t-ipconnect.de ([79.216.83.88]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2016 03:56:18 +0200 Original-Received: from michael_heerdegen by p4fd85358.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2016 03:56:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4fd85358.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) Cancel-Lock: sha1:mi53Os21EhlBfKu8m3kaiMUggy4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:110650 Archived-At: 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.