all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: monnier@IRO.UMontreal.CA
To: Michael Welsh Duggan <mwd@cert.org>
Cc: 9613@debbugs.gnu.org
Subject: bug#9613: 24.0.90; Cannot debug-on-entry message-send-mail
Date: Tue, 27 Sep 2011 14:20:39 -0400	[thread overview]
Message-ID: <jwvzkhpetk7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <tntty7yf08v.fsf@waterbuck.yellow.cert.org> (Michael Welsh Duggan's message of "Tue, 27 Sep 2011 11:55:44 -0400")

> From "emacs -Q":
> M-x load-library RET message RET
> M-x debug-on-entry RET message-send-mail RET

> This causes an "Args out of range" error.  This only happens on the byte
> code.  If I evaluate message.el, this error no longer occurs.

The patch below should fix it,


        Stefan


=== modified file 'lisp/emacs-lisp/debug.el'
--- lisp/emacs-lisp/debug.el	2011-09-21 17:43:48 +0000
+++ lisp/emacs-lisp/debug.el	2011-09-27 18:05:28 +0000
@@ -873,9 +873,9 @@
               `((,(if (memq '&rest args) #'apply #'funcall)
                  ,defn
                  ,@(remq '&rest (remq '&optional args))))))
-	(if (> (length defn) 5)
+	(if (and (> (length defn) 5) (aref defn 5))
 	    (push `(interactive ,(aref defn 5)) body))
-	(if (aref defn 4)
+	(if (and (> (length defn) 4) (aref defn 4))
 	    ;; Use `documentation' here, to get the actual string,
 	    ;; in case the compiled function has a reference
 	    ;; to the .elc file.






  reply	other threads:[~2011-09-27 18:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27 15:55 bug#9613: 24.0.90; Cannot debug-on-entry message-send-mail Michael Welsh Duggan
2011-09-27 18:20 ` monnier [this message]
2011-09-27 18:32   ` Michael Welsh Duggan
2011-09-28  1:20     ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=jwvzkhpetk7.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=9613@debbugs.gnu.org \
    --cc=mwd@cert.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.