unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <mwd@cert.org>
To: "monnier\@iro.umontreal.ca" <monnier@iro.umontreal.ca>
Cc: "9613@debbugs.gnu.org" <9613@debbugs.gnu.org>
Subject: bug#9613: 24.0.90; Cannot debug-on-entry message-send-mail
Date: Tue, 27 Sep 2011 14:32:13 -0400	[thread overview]
Message-ID: <tntlit9g7ki.fsf@waterbuck.yellow.cert.org> (raw)
In-Reply-To: <jwvzkhpetk7.fsf-monnier+emacs@gnu.org> (monnier@iro.umontreal.ca's message of "Tue, 27 Sep 2011 14:20:39 -0400")

"monnier@iro.umontreal.ca" <monnier@iro.umontreal.ca> writes:

>> 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,

Yes, that does the trick.

> === 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.
>

-- 
Michael Welsh Duggan
(mwd@cert.org)





  reply	other threads:[~2011-09-27 18:32 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
2011-09-27 18:32   ` Michael Welsh Duggan [this message]
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

  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=tntlit9g7ki.fsf@waterbuck.yellow.cert.org \
    --to=mwd@cert.org \
    --cc=9613@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).