unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: yasq: unable to edebug-defun
Date: 18 Dec 2006 02:30:26 -0800	[thread overview]
Message-ID: <1166437825.969266.149490@73g2000cwn.googlegroups.com> (raw)
In-Reply-To: <1166209268.881749.8200@l12g2000cwl.googlegroups.com>

Mirko wrote:
> Robert Thorpe wrote:
> > Mirko wrote:
> > > Robert Thorpe wrote:
> > > > Mirko wrote:
<snip>

Demonstrating how authoritative my opinion isn't I wrote:-

> > This sounds like a bug to me.  I'm using Emacs21 which doesn't have
> > dump-map, so I can't test your code, but the variable map certainly
> > doesn't look void.  Eval-defun(M-C-x) and Eval-last-sexp(C-xC-e)
> > shouldn't behave differently here.
>
> Well, with your authoritative opinion,I will send this bug to emacs
> developers.  Next year.  Today is my last day before my vacation.

I was wrong.  It seems that M-C-x requires that lisp code be properly
formatted, in particular that the defun is the only thing beginning in
column 1.  If you format the code:-

(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))))))

Then it will work.

  reply	other threads:[~2006-12-18 10:30 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 [this message]
2006-12-16 15:34     ` Johan Bockgård
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=1166437825.969266.149490@73g2000cwn.googlegroups.com \
    --to=rthorpe@realworldtech.com \
    /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).