From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#10805: 24.0.93; edebug-trace t may cause stuff being inserted into current buffer Date: Mon, 13 Feb 2012 23:29:39 +0100 Message-ID: <87y5s6l63w.fsf@web.de> Reply-To: michael_heerdegen@web.de NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1329172176 8991 80.91.229.3 (13 Feb 2012 22:29:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 22:29:36 +0000 (UTC) To: 10805@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 23:29:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rx4Os-0007ZX-Lv for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 23:29:34 +0100 Original-Received: from localhost ([::1]:45160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4Os-00052E-0C for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 17:29:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4Op-000526-ID for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:29:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx4Oo-00062J-8m for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:29:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4Oo-00062E-5n for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:29:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rx4QI-0002VS-Ba for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2012 22:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10805 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13291722129575 (code B ref -1); Mon, 13 Feb 2012 22:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Feb 2012 22:30:12 +0000 Original-Received: from localhost ([127.0.0.1]:39330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rx4PT-0002UN-Lp for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:30:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51197) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rx4PO-0002TU-LL for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:30:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx4No-0005gW-2r for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:28:28 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:59838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4No-0005gS-1N for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:28:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4Nn-0004pk-5J for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:28:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx4Nl-0005gA-Uy for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:28:27 -0500 Original-Received: from fmmailgate04.web.de ([217.72.192.242]:57093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4Nl-0005fv-QC for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:28:25 -0500 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate04.web.de (Postfix) with ESMTP id AD66A7184299 for ; Mon, 13 Feb 2012 23:28:17 +0100 (CET) Original-Received: from snow.dragon ([82.113.119.109]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0LlFOY-1SXlyh0UKs-00aquX; Mon, 13 Feb 2012 23:28:17 +0100 X-Provags-ID: V02:K0:6Ndh+Z2oldkXVBgZ/xJfcpJR+qDI2Fe4X+ihgrtcS51 yMMWkfpFaDHH3+NgSAw8QHkk1hADg4owtGuuUlSaGoh3cT6tEK Zg1Szn/LNdCA2/XTAo3LjIds75zBfqWi2K22LQ/7N8T/2QEd3p DG72zgdxG17aloCnXCUAZk4N15KEjI739/yEZwPlbfXY1Kv170 4XWNidU31VP/lpdl19b3WRXqRlVbPf30HIR7XECV88= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 (newer, 2) 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:56872 Archived-At: E.g. 1. emacs -Q 2. I write this into the scratch buffer: (defun f (x) (if (> x 0) (* x (f (1- x))) 0)) and do M-1 C-M-x 3. M-: (setq edebug-trace t) RET 4. M-: (f 5) RET Then, "{ f args: (5)" is inserted into *scratch*. The bug is related to this commented code at the end of `edebug-pop-to-buffer': ;; Selecting the window does not set the buffer until command loop. ;;(set-buffer buffer) If I uncomment this call to `set-buffer', the problem disappears. Seems the one who commented this line of code wanted to test if it is (still) needed - seems it is. Thanks, Michael. In GNU Emacs 24.0.93.1 (i486-pc-linux-gnu, GTK+ Version 3.2.3) of 2012-02-08 on zelenka, modified by Debian (emacs-snapshot package, version 2:20120208-1) Windowing system distributor `The X.Org Foundation', version 11.0.11103901 Configured using: `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.93/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.93/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''