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

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

Re: Dot at start of symbols confuses edebug


From: Juri Linkov
Subject: Re: Dot at start of symbols confuses edebug
Date: Sat, 30 Oct 2004 04:11:33 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

address@hidden (Johan Bockgård) writes:
> (let (.foo ) .foo)
> C-u C-M-x =>
>   edebug-syntax-error: Invalid read syntax: "Dotted spec required."
>
> (let (.foo) (ignore 0 .foo))
> C-u C-M-x =>
>   Debugger entered--Lisp error: (wrong-type-argument
>     number-or-marker-p ((16924 . 16927) . 16928))
>     edebug-inc-offset(((16924 . 16927) . 16928))
>     edebug-form((((ignore 0 . foo)) (16913 (16914 . 16920) (16921 .
>     16922) (16924 . 16927) . 16928) . 16929))
>
> (defun .foo (n))
> C-u C-M-x =>
>   Debugger entered--Lisp error: (invalid-read-syntax "Expected `)'")
>     signal(invalid-read-syntax ("Expected `)'"))
>     edebug-syntax-error("Expected `)'")

It seems there is no simple fix to support unusual variable names
in edebug.  However, if you need dots in variable names you can
add \ before dots:

(let (\.foo ) \.foo)
(let (\.foo) (ignore 0 \.foo))
(defun \.foo (n))

and C-u C-M-x works fine.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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