bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35250: Add simplest Advice example possible first


From: 積丹尼 Dan Jacobson
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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]