From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Trey Jackson Newsgroups: gmane.emacs.devel Subject: Re: Emacs 24.4 and advice Date: Fri, 31 Oct 2014 11:02:58 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11331faea1bcbc0506bbce25 X-Trace: ger.gmane.org 1414785194 21659 80.91.229.3 (31 Oct 2014 19:53:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2014 19:53:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 31 20:53:04 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XkIFo-0003s7-El for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 20:53:00 +0100 Original-Received: from localhost ([::1]:42168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkIFo-0006LD-16 for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 15:53:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGXN-00078c-RE for emacs-devel@gnu.org; Fri, 31 Oct 2014 14:03:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkGXM-0004lS-VH for emacs-devel@gnu.org; Fri, 31 Oct 2014 14:03:01 -0400 Original-Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:65172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGXM-0004lI-Mz for emacs-devel@gnu.org; Fri, 31 Oct 2014 14:03:00 -0400 Original-Received: by mail-pa0-f43.google.com with SMTP id eu11so8170703pac.16 for ; Fri, 31 Oct 2014 11:02:59 -0700 (PDT) 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=bH16kEpBbYkoCkCOeZlhTbFWF4qFkXGMXhM4g2UStAA=; b=s+zZHxySycHOv7HjyS/uI6zWOWEcXxFwz514M3Jm0jtm4MRgGm++OSI/7aHOLrdS1E mtWDbCm79Dh0HgRG7gyqOMvW0l9HbADTzhHUyNB/5/EFo91Z/X82Ojz9mWsFNgisFkIx K15AZ71DpE79dVhBtZreK0HDHHy8HJ2sFnGHVBUeksztVYJH8RxocGb+GC+KX6c3a1SE FGwH/eFPemxDdfkwG+Ruo9O3PeBv2lDZhNz9L3GY8jT8SzkE6cTAb40bJYQSwebQ1wYr /v9LMQgHUu9UJsuap5PSoCEgGJh848Q/JjOcokfeZfg50gDw+7VGA7L4xMX8b/hReIHT CtSA== X-Received: by 10.68.140.203 with SMTP id ri11mr3053041pbb.169.1414778578908; Fri, 31 Oct 2014 11:02:58 -0700 (PDT) Original-Received: by 10.70.123.230 with HTTP; Fri, 31 Oct 2014 11:02:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176147 Archived-At: --001a11331faea1bcbc0506bbce25 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Oct 31, 2014 at 10:47 AM, Stefan Monnier wrote: > > What do you use them for? It's left over code, I presume they were there because, upon first read of the documentation, it looked as though you needed to call (ad-start-advice) to get things going. > Whatever you think of people (over)using 'advice, the 'ad-start-advice and > > 'ad-stop-advice were a part of the tutorial and documentation in 24.3. > > Which tutorial are you referring to? > advice.el (distributed with Emacs 24.3) lines 861-1694, beginning with: ;; @ Foo games: An advice tutorial ;; =============================== ;; The following tutorial was created in Emacs 18.59. Left-justified ;; s-expressions are input forms followed by one or more result forms. ;; First we have to start the advice magic: ;; ;; (ad-start-advice) ;; nil Though it's also in the info pages installed on my machine - I have no idea where/when they're from. TJ -- Trey Jackson bigfaceworm@gmail.com "Like any truly useful program, `hello' contains a built-in mail reader." -- GNU's Bulletin, July 1996 --001a11331faea1bcbc0506bbce25 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On F= ri, Oct 31, 2014 at 10:47 AM, Stefan Monnier <monnier@iro.umontrea= l.ca> wrote:
What do you use them for?

It's left ove= r code, I presume they were there because, upon first read of the documenta= tion, it looked as though you needed to call (ad-start-advice) to get thing= s going.

> Whateve= r you think of people (over)using 'advice, the 'ad-start-advice and=
> 'ad-stop-advice were a part of the tutorial and documentation in 2= 4.3.

Which tutorial are you referring to?

=
advice.el (distributed with Emacs 24.3) lines 861-1694, beginning with= :

;; @ Foo games: An advice tutorial
;; = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
;; The following tutorial was created in Emacs= 18.59. Left-justified
;; s-expressions are input forms followed = by one or more result forms.
;; First we have to start the advice= magic:
;;
;; (ad-start-advice)
;; nil
<= div>

Though it's also in the info pages in= stalled on my machine - I have no idea where/when they're from.


TJ=A0

--
Trey Jackson
bigfaceworm@gmail.com
=
"Like any truly useful program, `hello' contains a built-in ma= il reader."
-- GNU's Bulletin, July 1996

--001a11331faea1bcbc0506bbce25--