From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel Subject: Re: kill-buffer during *debugging* Date: Sun, 18 Feb 2007 09:56:22 +0100 (CET) Message-ID: <32083765.135971171788982404.JavaMail.www@wwinf4006> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171789003 28383 80.91.229.12 (18 Feb 2007 08:56:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Feb 2007 08:56:43 +0000 (UTC) To: "Emacs Dev [emacs-devel]" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 18 09:56:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HIhqX-0006yJ-CL for ged-emacs-devel@m.gmane.org; Sun, 18 Feb 2007 09:56:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIhqW-0007e7-Rs for ged-emacs-devel@m.gmane.org; Sun, 18 Feb 2007 03:56:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HIhqL-0007bW-2g for emacs-devel@gnu.org; Sun, 18 Feb 2007 03:56:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HIhqJ-0007ZR-Cr for emacs-devel@gnu.org; Sun, 18 Feb 2007 03:56:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIhqJ-0007ZL-8y for emacs-devel@gnu.org; Sun, 18 Feb 2007 03:56:23 -0500 Original-Received: from smtp1.voila.fr ([193.252.22.174]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HIhqI-0005t4-Vq for emacs-devel@gnu.org; Sun, 18 Feb 2007 03:56:23 -0500 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4006.voila.fr (SMTP Server) with ESMTP id 736CA1C013EB for ; Sun, 18 Feb 2007 09:56:22 +0100 (CET) Original-Received: from wwinf4006 (wwinf4006 [172.22.157.33]) by mwinf4006.voila.fr (SMTP Server) with ESMTP id 654C61C013A1 for ; Sun, 18 Feb 2007 09:56:22 +0100 (CET) X-ME-UUID: 20070218085622415.654C61C013A1@mwinf4006.voila.fr X-Originating-IP: [86.107.96.49] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-REPLYTO: |~| X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66502 Archived-At: > 3. WITHOUT STOPPING the debugger kill the buffer using C-x k. > > Here is the bug. The *debugging* mode is still active. > > Could you explain that more concretely? What does it mean to say > "still active" in this case? The *debugging* mode is "still active" = If I am killing the buffer while I am debugging with edebug - that means I am killing the buffer when the *debugging* is active as a minor mode (we see minor modes in the mode line if `minor-mode-alist is set in `default-mode-line-format) -, in the MODE LINE one can still see *debugging*. So the debugging mode is still active, even if the buffer was closed. My code from that little patch makes 2 things: 1. stop the debugger (using the (top-level), as it is used in present when pressing "q") 2. kill the buffer. It runs "a la fois" 2 commands: ((top-level) (kill-buffer)) This is executed in a lambda function associated to C-x k. Without my patch, when I press C-x k and the debugger is running, the buffer is killed, but the debugger is not stopped (is still active).