unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: yasq: unable to edebug-defun
Date: Sat, 16 Dec 2006 16:34:59 +0100	[thread overview]
Message-ID: <yoijac1n26sc.fsf@gamma02.me.chalmers.se> (raw)
In-Reply-To: 1166198144.214233.78100@73g2000cwn.googlegroups.com

"Mirko" <mvukovic@nycap.rr.com> writes:

> Here is my example defun (this is for example only, I get similar
> behavior with other defuns)
>
> (defun map-to-buffer (map buffer)
> (interactive)
> (switch-to-buffer buffer)
> (save-excursion
>   (save-window-excursion
>     (save-match-data
>       (widen)
>       (goto-char (point-min))
>       (insert "\\begin{document}\n"
>       (dump-map map)
>       (goto-char (point-max))
>       (insert "\n\\end{document")
>       (indent-region (point-min) (point-max) nil)
>       )))))
>
> If I put it into *scratch* to avoid interference with other dangling
> parenthesis (which I did not find) and put the point after the last
> parenthesis and do M-C-x, I get:
> Debugger entered--Lisp error: (void-variable map)

Indent your code correctly. To Emacs it looks like the defun begins
here:

(save-excursion
 ...



-- 
Johan Bockgård

  parent reply	other threads:[~2006-12-16 15:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14 20:32 yasq: unable to edebug-defun Mirko
2006-12-15 13:16 ` Robert Thorpe
2006-12-15 15:55   ` Mirko
2006-12-15 16:47     ` Robert Thorpe
2006-12-15 19:01       ` Mirko
2006-12-18 10:30         ` Robert Thorpe
2006-12-16 15:34     ` Johan Bockgård [this message]
2006-12-18 22:20     ` Kevin Rodgers

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=yoijac1n26sc.fsf@gamma02.me.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    /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.
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).