From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: yasq: unable to edebug-defun Date: Sat, 16 Dec 2006 16:34:59 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: References: <1166128326.307683.186800@n67g2000cwd.googlegroups.com> <1166188617.839990.291590@j72g2000cwa.googlegroups.com> <1166198144.214233.78100@73g2000cwn.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1166283669 27163 80.91.229.10 (16 Dec 2006 15:41:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2006 15:41:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 16 16:41:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gvbes-0007kS-A7 for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Dec 2006 16:41:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gvber-0000GW-Ok for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Dec 2006 10:41:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: gamma02.me.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1166283299 32365 129.16.50.72 (16 Dec 2006 15:34:59 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Sat, 16 Dec 2006 15:34:59 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:8HhjKqseh7xs1G3z5/dMdvKRDJo= Original-Xref: shelby.stanford.edu gnu.emacs.help:144031 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39634 Archived-At: "Mirko" 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