From: exits funnel <exitsfunnel@yahoo.com>
Subject: Beginner lisp problem
Date: Wed, 14 Jul 2004 17:59:52 -0700 (PDT) [thread overview]
Message-ID: <20040715005952.57629.qmail@web52905.mail.yahoo.com> (raw)
In-Reply-To: <40F35982.5060001@verizon._NO.SPAM_.net>
Hello,
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")
)
)
(add-hook 'jde-dbs-debugger-hook 'my-debug-mode-hook)
Unfortunately, now I get the following error when the
hook is called:
Debugger entered--Lisp error: (void-function ar)
(ar)
(if (ar) (message "Exits: Debugger Starting")
(message "Exits: Debugger Qutting"))
my-debug-mode-hook(t)
run-hook-with-args(my-debug-mode-hook t)
jde-dbs-debugger([object jde-dbs-debugger "JDEbug"
"JDEbug" "*JDEbug*" unbound unbound nil unbound nil
unbound nil unbound unbound unbound nil])
apply(jde-dbs-debugger [object jde-dbs-debugger
"JDEbug" "JDEbug" "*JDEbug*" unbound unbound nil
unbound nil unbound nil unbound unbound unbound nil])
(setq rval (apply (car ...) newargs))
(let ((scoped-class ...) (eieio-generic-call-key
...)) (setq found t) (setq rval (apply ... newargs)))
(if (car lambdas) (let (... ...) (setq found t)
(setq rval ...)))
(while lambdas (if (car lambdas) (let ... ... ...))
(setq lambdas (cdr lambdas) keys (cdr keys)))
(let ((rval nil) (found nil)) (while lambdas (if ...
...) (setq lambdas ... keys ...)) (if (not found) (if
... ... ...)) rval)
(let ((newargs nil) (mclass nil) (lambdas nil)
(tlambdas nil) (keys nil) (static nil)
(eieio-generic-call-methodname method)
(eieio-generic-call-arglst args) (firstarg nil)) (setq
newargs args firstarg (car newargs)) (if (and ... ...
... ...) (load ...)) (cond (... ...) (... ...)) (if
static (progn ... ...) (setq tlambdas ...) (setq
lambdas ... keys ...) (setq tlambdas ...) (setq
lambdas ... keys ...) (setq tlambdas ...) (setq
lambdas ... keys ...)) (let (... ...) (while lambdas
... ...) (if ... ...) rval))
eieio-generic-call(jde-dbs-debugger-start ([object
jde-dbs-debugger "JDEbug" "JDEbug" "*JDEbug*" unbound
unbound nil unbound nil unbound nil unbound unbound
unbound nil]))
jde-dbs-debugger-start([object jde-dbs-debugger
"JDEbug" "JDEbug" "*JDEbug*" unbound unbound nil
unbound nil unbound nil unbound unbound unbound nil])
jde-bug-debug-app()
jde-debug()
call-interactively(jde-debug)
I'm sure my mistake is obvious to anyone who knows
some lisp but I can't get it sorted out and would
appreciate a jumpstart. Thanks in advance!
-exits
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next prev parent reply other threads:[~2004-07-15 0:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.534.1089563158.22971.help-gnu-emacs@gnu.org>
2004-07-13 3:39 ` Getting Emacs to start in fullscreen Bruce Ingalls
2004-07-15 0:59 ` exits funnel [this message]
[not found] <mailman.1014.1089853356.22971.help-gnu-emacs@gnu.org>
2004-07-15 1:23 ` Beginner lisp problem David Kastrup
2004-07-15 2:21 ` exits funnel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040715005952.57629.qmail@web52905.mail.yahoo.com \
--to=exitsfunnel@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.