GNU bug report logs - #35250
Add simplest Advice example possible first

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Fri, 12 Apr 2019 22:49:03 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 35250 <at> debbugs.gnu.org
Subject: bug#35250: Add simplest Advice example possible first
Date: Fri, 12 Apr 2019 23:19:32 +0800
(info "(elisp) Advising Functions") starts out with a complicated
example.

        For example, in order to trace the calls to the process filter of a
     process PROC, you could use:

          (defun my-tracing-function (proc string)
            (message "Proc %S received %S" proc string))

          (add-function :before (process-filter PROC) #'my-tracing-function)

Please first add the simplest example possible:

Function A prints "a".

Make it print "ab" from now on.




This bug report was last modified 6 years and 36 days ago.

Previous Next


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