From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: monnier@IRO.UMontreal.CA Newsgroups: gmane.emacs.bugs Subject: bug#9613: 24.0.90; Cannot debug-on-entry message-send-mail Date: Tue, 27 Sep 2011 14:20:39 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317147684 17631 80.91.229.12 (27 Sep 2011 18:21:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2011 18:21:24 +0000 (UTC) Cc: 9613@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 27 20:21:19 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 1R8cHM-0008Uq-6V for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2011 20:21:16 +0200 Original-Received: from localhost ([::1]:46579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8cHL-0003qQ-Nq for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2011 14:21:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8cHJ-0003qL-Lw for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2011 14:21:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8cHI-0008Og-HB for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2011 14:21:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8cHI-0008Oc-Fd for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2011 14:21:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R8cI6-0006PH-2n; Tue, 27 Sep 2011 14:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: monnier@IRO.UMontreal.CA 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:22:02 +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.131714770324594 (code B ref 9613); Tue, 27 Sep 2011 18:22:02 +0000 Original-Received: (at 9613) by debbugs.gnu.org; 27 Sep 2011 18:21:43 +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 1R8cHm-0006Oa-MA for submit@debbugs.gnu.org; Tue, 27 Sep 2011 14:21:43 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R8cHk-0006OT-F1 for 9613@debbugs.gnu.org; Tue, 27 Sep 2011 14:21:41 -0400 Original-Received: from asado (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p8RIKjeu026538; Tue, 27 Sep 2011 14:20:45 -0400 Original-Received: by asado (Postfix, from userid 20848) id 35F8A50094; Tue, 27 Sep 2011 14:20:45 -0400 (EDT) In-Reply-To: (Michael Welsh Duggan's message of "Tue, 27 Sep 2011 11:55:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3993=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3993> : streams <685694> : uri <969947> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Sep 2011 14:22:02 -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:51931 Archived-At: > 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.