From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: debug declaration. Date: Wed, 23 Mar 2005 16:54:15 +0100 Message-ID: <87br9a8ijc.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111594544 29749 80.91.229.2 (23 Mar 2005 16:15:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2005 16:15:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 17:15:44 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DE8L7-0007Zn-3g for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2005 17:04:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DE8cd-0006D0-EB for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2005 11:22:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DE8bB-0005fJ-2V for emacs-devel@gnu.org; Wed, 23 Mar 2005 11:20:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DE8b4-0005bR-VU for emacs-devel@gnu.org; Wed, 23 Mar 2005 11:20:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DE8b3-0005Zh-KY for emacs-devel@gnu.org; Wed, 23 Mar 2005 11:20:41 -0500 Original-Received: from [194.109.24.30] (helo=smtp-vbr10.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DE8BV-0007Hf-0L for emacs-devel@gnu.org; Wed, 23 Mar 2005 10:54:17 -0500 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr10.xs4all.nl (8.12.11/8.12.11) with ESMTP id j2NFsGFt033286 for ; Wed, 23 Mar 2005 16:54:16 +0100 (CET) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DE8BT-00043X-00 for ; Wed, 23 Mar 2005 16:54:15 +0100 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 44 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:35049 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35049 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.