unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Subject: Re: Dot at start of symbols confuses edebug
Date: Sat, 30 Oct 2004 04:11:33 +0300	[thread overview]
Message-ID: <87hdocgasa.fsf@jurta.org> (raw)
In-Reply-To: <yoijbrelulfl.fsf@frealaf.dd.chalmers.se> (Johan Bockgård's message of "Sat, 30 Oct 2004 01:57:50 +0200")

bojohan+news@dd.chalmers.se (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	other threads:[~2004-10-30  1:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29 23:57 Dot at start of symbols confuses edebug Johan Bockgård
2004-10-30  1:11 ` Juri Linkov [this message]
2004-10-30 14:20   ` Richard Stallman
2004-10-30 23:02     ` Juri Linkov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hdocgasa.fsf@jurta.org \
    --to=juri@jurta.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).