From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#981: 23.0.60; doc of debug-on-error Date: Sun, 14 Sep 2008 14:59:11 -0700 Message-ID: <006001c916b5$1eec3ce0$0200a8c0@us.oracle.com> Reply-To: Drew Adams , 981@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221430216 25197 80.91.229.12 (14 Sep 2008 22:10:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Sep 2008 22:10:16 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 00:11:12 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kezmj-00038H-GA for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 00:09:37 +0200 Original-Received: from localhost ([127.0.0.1]:51332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kezli-0005kG-EX for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 18:08:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kezkp-0005NM-Gu for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 18:07:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kezkm-0005Mr-BQ for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 18:07:37 -0400 Original-Received: from [199.232.76.173] (port=41680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kezkm-0005Mm-5p for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 18:07:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58335) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kezkl-0007FT-VF for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 18:07:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8EM7YBi027845; Sun, 14 Sep 2008 15:07:34 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8EM55x0026576; Sun, 14 Sep 2008 15:05:05 -0700 X-Loop: don@donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 14 Sep 2008 22:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 981 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122142954823817 (code B ref -1); Sun, 14 Sep 2008 22:05:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 14 Sep 2008 21:59:08 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8ELx4pD023811 for ; Sun, 14 Sep 2008 14:59:05 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:47120) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kezah-0003mn-EP for emacs-pretest-bug@gnu.org; Sun, 14 Sep 2008 17:57:11 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KezcQ-0005Ki-Aa for emacs-pretest-bug@gnu.org; Sun, 14 Sep 2008 17:59:03 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:16482) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KezcP-0005K6-R6 for emacs-pretest-bug@gnu.org; Sun, 14 Sep 2008 17:58:58 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m8ELwrtg017849 for ; Sun, 14 Sep 2008 16:58:54 -0500 Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m8ELwnbF012522 for ; Sun, 14 Sep 2008 15:58:52 -0600 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Sep 2008 21:58:49 +0000 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AckWtR6RYSWkUMbmQMKbkCRqLE0xlQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 14 Sep 2008 18:07:37 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20544 gmane.emacs.pretest.bugs:23050 Archived-At: `debug-on-error' does not control what happens during Lisp rexpression evaluation. But you cannot know this by looking at only the doc of `debug-on-error'. For example, evaluate this using either `C-x C-e' in buffer *scratch or via `M-:': (unwind-protect jjjjjjj (message "XXXX")) `eval-expression-debug-on-error' is what controls this behavior. In the Elisp manual, the doc for `debug-on-error' is on the same page as the doc for `eval-expression-debug-on-error', but even so, a reader might read only the `debug-on-error' part if that's what s?he is looking up. The `debug-on-error' description in the manual needs a "see below" mention of `eval-expression-debug-on-error' and of the fact that `debug-on-error' alone does not control what happens during such sexp evaluation. The `debug-on-error' doc string, likewise, needs to mention this and cross-reference the doc string for `eval-expression-debug-on-error'. I think what happened was that when `eval-expression-debug-on-error' was introduced in Emacs 21 this doc dependency was overlooked - the doc for `eval-expression-debug-on-error' was added but the doc for `debug-on-error' was not updated accordingly. In Emacs 20, `debug-on-error' is all there is, so its doc is complete and sufficient. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-09-03 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping'