Re: Function Arglist Displayer
Alexey Veretennikov <txm.fourier@gmail.com> writes:
> Thank you! works for the editor. However I cannot define the advice
> for a listener by some reason:
> (lispworks:defadvice ((method capi:interface-display (lw-tools:listener))
> change-listener-colors
> :before
> :documentation "Change listener colors.")
> (interface)
> (capi:map-pane-descendant-children interface 'set-listener-pane-colors))
>
> complains
> **++++ Error in (COMPILER::ADVICE-DEFINITION CAPI:INTERFACE-DISPLAY
> (METHOD CAPI:INTERFACE-DISPLAY (LISPWORKS-TOOLS:LISTENER))
> EDITOR-COLOR-THEME::CHANGE-LISTENER-COLORS :ADVICE-BEFORE):
> Undefined function #1=(METHOD CAPI:INTERFACE-DISPLAY
> (LISPWORKS-TOOLS:LISTENER)) in form (LISPWORKS:DEFADVICE #1#).
>
> In the class browser I can see this method however.
Looking at the timestamp of your message, my guess is that you had a
late night ;-) and saw the :before method of interface-display for
lw-tools:listener in the class browser when you still had the definition
in your init file or defined it yourself some other way. If I start
LispWorks (7.0 both Linux and Windows) without loading the init file
(http://www.lispworks.com/documentation/lw70/LW/html/lw-6.htm#pgfId-888833),
then I see no interface-display :before method for lw-tools:listener,
thus you cannot define an advice for it.
Also, when starting LispWorks from the command line on Linux with
David's interface-display :before methods, I see "Warning: Defining..."
for the listener, output-browser, shell and inspector, but "Warning:
**Re**defining..." for the editor (see below). Only the editor has 'n
predefined interface-display :before method, thus I only defined an
advice for the editor and defined :before methods for the other tools.
Warning: Defining (METHOD INTERFACE-DISPLAY :BEFORE (LISPWORKS-TOOLS:LISTENER)) visible from packages LISPWORKS-TOOLS, CAPI.
Warning: Redefining (METHOD INTERFACE-DISPLAY :BEFORE (LISPWORKS-TOOLS:EDITOR)) visible from packages LISPWORKS-TOOLS, CAPI.
Warning: Defining (METHOD INTERFACE-DISPLAY :BEFORE (LISPWORKS-TOOLS:OUTPUT-BROWSER)) visible from packages LISPWORKS-TOOLS, CAPI.
Warning: Defining (METHOD INTERFACE-DISPLAY :BEFORE (LISPWORKS-TOOLS:SHELL)) visible from packages LISPWORKS-TOOLS, CAPI.
Warning: Defining (METHOD INTERFACE-DISPLAY :BEFORE (LISPWORKS-TOOLS:INSPECTOR)) visible from packages LISPWORKS-TOOLS, CAPI.
Hth.
Nico
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html