From: Lute Kamstra <Lute.Kamstra.lists@xs4all.nl>
Subject: debug declaration.
Date: Wed, 23 Mar 2005 16:54:15 +0100 [thread overview]
Message-ID: <87br9a8ijc.fsf@xs4all.nl> (raw)
I have problems writing a debug declaration for define-generic-mode.
Maybe someone can help me?
define-generic-mode is defined like this:
(defmacro define-generic-mode (mode comment-list keyword-list
font-lock-list auto-mode-list
function-list &optional docstring)
...)
I think that Edebug should instrument COMMENT-LIST, KEYWORD-LIST,
FONT-LOCK-LIST, AUTO-MODE-LIST, and FUNCTION-LIST. MODE is a symbol
(or a quoted symbol) and DOCSTRING a string constant. They should not
be instrumented.
In my understanding this debug declaration should do the trick:
(declare (debug (sexp form form form form form &optional stringp)))
However, when I instrument this call to define-generic-mode:
(define-generic-mode my-mode
(list ?# ?% (+ 50 9))
(list "abba" "ebbe" (concat "ob" "bo"))
nil
(list "\\.mm\\'")
nil
"This is My mode.")
then Edebug stops at these places (marked by `X') when I step through
the macro call:
X(define-generic-mode my-mode
(list ?# ?% (+ 50 9))
(list "abba" "ebbe" (concat "ob" "bo"))
nil
X(list "\\.mm\\'")X
nil
"This is My mode.")X
So it seems that only AUTO-MODE-LIST got instrumented and no other
arguments. Is this a bug or have I terribly misunderstood something?
Lute.
next reply other threads:[~2005-03-23 15:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-23 15:54 Lute Kamstra [this message]
2005-03-23 18:18 ` debug declaration Stefan Monnier
2005-03-25 11:06 ` Lute Kamstra
2005-03-25 15:14 ` Stefan Monnier
2005-03-27 3:52 ` Richard Stallman
2005-03-30 8:12 ` Lute Kamstra
2005-03-31 18:21 ` Richard Stallman
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=87br9a8ijc.fsf@xs4all.nl \
--to=lute.kamstra.lists@xs4all.nl \
/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.