From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#9613: 24.0.90; Cannot debug-on-entry message-send-mail Date: Tue, 27 Sep 2011 14:32:13 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317148404 22791 80.91.229.12 (27 Sep 2011 18:33:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2011 18:33:24 +0000 (UTC) Cc: "9613@debbugs.gnu.org" <9613@debbugs.gnu.org> To: "monnier\@iro.umontreal.ca" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 27 20:33:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R8cSy-0005NX-Qv for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2011 20:33:17 +0200 Original-Received: from localhost ([::1]:37306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8cSy-0006XI-84 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2011 14:33:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8cSv-0006Ws-3L for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2011 14:33:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8cSt-0002i6-V5 for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2011 14:33:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8cSt-0002i2-Oc for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2011 14:33:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R8cTh-0006ha-Ew; Tue, 27 Sep 2011 14:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 27 Sep 2011 18:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9613 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 9613-submit@debbugs.gnu.org id=B9613.131714838625692 (code B ref 9613); Tue, 27 Sep 2011 18:34:01 +0000 Original-Received: (at 9613) by debbugs.gnu.org; 27 Sep 2011 18:33:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R8cSo-0006gK-6S for submit@debbugs.gnu.org; Tue, 27 Sep 2011 14:33:06 -0400 Original-Received: from euclid.red.cert.org ([192.88.209.48]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R8cSm-0006gD-K0 for 9613@debbugs.gnu.org; Tue, 27 Sep 2011 14:33:05 -0400 Original-Received: from bucknell.indigo.cert.org (bucknell.indigo.cert.org [10.60.10.121]) by euclid.red.cert.org (8.14.4/8.14.4) with ESMTP id p8RISWtU017213; Tue, 27 Sep 2011 14:28:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cert.org; s=jthatj15xw2j; t=1317148112; bh=43SHzpOEtxUU3TjlMZqIh1OBW0eYYpeDoW28UT7laCs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender:Reply-To; b=Pnv5XWmqAenOwXF2jam6eA9IfV/2QVMHS+7S9wc7WLYT9+3C2rUufbClvxv9ymH9D hTC+smJFopvVCpEAHX0+bPw2bckMYBkKyktDuz9nq+l1JAKNGaFs2j41t4w/XInh9C zl/sjquKuJiRqV9rq2KHL4WKIvRWSDiD6McRmA7g= Original-Received: from waterbuck.yellow.cert.org (waterbuck.yellow.cert.org [10.20.128.84]) by bucknell.indigo.cert.org (8.14.4/8.14.4/2.79) with ESMTP id p8RIWDrr024263; Tue, 27 Sep 2011 14:32:13 -0400 Original-Received: (from mwd@localhost) by waterbuck.yellow.cert.org (8.14.4/8.14.4/Submit/1.6) id p8RIWDPP008572; Tue, 27 Sep 2011 14:32:13 -0400 In-Reply-To: (monnier@iro.umontreal.ca's message of "Tue, 27 Sep 2011 14:20:39 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Sep 2011 14:34:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51935 Archived-At: "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)