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

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

Re: Beginner lisp problem


From: David Kastrup
Subject: Re: Beginner lisp problem
Date: 15 Jul 2004 03:23:46 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

exits funnel <address@hidden> writes:

> I'm just starting to write my first lisp and I've got
> a quick question.  I've added the following to my
> .emacs:
> 
> (defun my-debug-mode-hook (ar)
>  (message "In Hook")
> )
> (add-hook 'jde-dbs-debugger-hook 'my-debug-mode-hook)
> 
> and I see my message printed as I'd expect.  The hook
> is called when the debugger starts and when it quits
> and the value of the passed argument indicates which
> is the case.  I'd like to have separate customizations
> for each case so I modified my hook as follows:
> 
> (defun my-debug-mode-hook (ar)
>   (if (ar)
>     (message "Exits: Debugger Starting")
>     (message "Exits: Debugger Qutting")
>   )
> )

`ar' is not a function, so you should not call it.  Use

(if ar
  (message ...

instead.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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