From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#13061: 24.3.50; regressions: 1) Redefining a function should cancel `debug-on-entry', 2) doc Date: Sun, 2 Dec 2012 11:47:06 -0800 Message-ID: <4D9429E5C68E4B88A5B315E911D9EA47@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354477686 9300 80.91.229.3 (2 Dec 2012 19:48:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2012 19:48:06 +0000 (UTC) To: 13061@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 20:48:15 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TfFWC-0001h6-5x for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2012 20:48:00 +0100 Original-Received: from localhost ([::1]:58409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfFW0-0000l2-L9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2012 14:47:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfFVx-0000kx-QO for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 14:47:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfFVw-0000ZW-Oh for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 14:47:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfFVw-0000ZS-L2 for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 14:47:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TfFYA-0007vl-Bd for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 14:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Dec 2012 19:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13061 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.135447778630455 (code B ref -1); Sun, 02 Dec 2012 19:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2012 19:49:46 +0000 Original-Received: from localhost ([127.0.0.1]:50441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfFXt-0007vA-Tz for submit@debbugs.gnu.org; Sun, 02 Dec 2012 14:49:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57682) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfFXq-0007v2-Fp for submit@debbugs.gnu.org; Sun, 02 Dec 2012 14:49:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfFVb-0000O3-5W for submit@debbugs.gnu.org; Sun, 02 Dec 2012 14:47:24 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:39752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfFVb-0000N7-1G for submit@debbugs.gnu.org; Sun, 02 Dec 2012 14:47:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfFVa-0000kp-2G for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 14:47:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfFVY-0000KP-Rc for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 14:47:21 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:22047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfFVY-0000KI-KL for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 14:47:20 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qB2JlH01011547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 2 Dec 2012 19:47:18 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qB2JlGdN008891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 2 Dec 2012 19:47:17 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qB2JlGpX020183 for ; Sun, 2 Dec 2012 13:47:16 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 02 Dec 2012 11:47:16 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac3Qxc7sC+zx21nKSFiXdmZcNcuLEQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:67799 Archived-At: 1. emacs -Q (defun foo (&optional n) (interactive "p") (forward-char n)) M-x debug-on-entry RET foo RET M-x foo ; enters the debugger Then C-M-x on the defun above, to redefine foo. M-x foo ; STILL enters the debugger You can even add a doc string or make another change, then C-M-x, and you will STILL enter the debugger when `foo' is invoked. Redefining foo should cancel the `debug-on-entry'. See (elisp) `Function Debugging': *Warning:* if you redefine a function after using `debug-on-entry' on it, the code to enter the debugger is discarded by the redefinition. In effect, redefining the function cancels the break-on-entry feature for that function. This feature has now been broken. Please restore it. It is a hell of a lot easier to hit C-M-x on foo's definition than it is to do `M-x cancel-debug-on-entry RET foo RET'. 2. In the Elisp manual, this should NOT be a *Warning*. This is an intentional, longstanding FEATURE, not something bad to be warned about. And this WAS NOT a *Warning* but a simple *Note*, prior to Emacs 22. This mania of introducing "*WARNING*" everywhere really should stop. This occurrence is a second regression. "*Note*", and its attendant sanity, should be restored here. It would not be surprising if some misguided soul removed this feature of debug cancellation by function redefinition precisely because of a misunderstanding introduced by this *Warning*, thinking that this is not a feature but something bad - a bug to be "fixed". Far from being warned, as if this were about some bug workaround, users should be positively informed about this feature. That's what the original *Note* was for: to draw their attention to this positively, not to warn them about it as if it were something to avoid. In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2012-11-19 on MS-W7-DANI Bzr revision: 110950 monnier@iro.umontreal.ca-20121119182725-5p6w4wjimm7epggr Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -Ic:/emacs/libs/libXpm-3.5.10/include -Ic:/emacs/libs/libXpm-3.5.10/src -Ic:/emacs/libs/libpng-1.2.37-lib/include -Ic:/emacs/libs/zlib-1.2.5 -Ic:/emacs/libs/giflib-4.1.4-1-lib/include -Ic:/emacs/libs/jpeg-6b-4-lib/include -Ic:/emacs/libs/tiff-3.8.2-1-lib/include -Ic:/emacs/libs/libxml2-2.7.8-w32-bin/include/libxml2 -Ic:/emacs/libs/gnutls-3.0.9-w32-bin/include -Ic:/emacs/libs/libiconv-1.9.2-1-lib/include'