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#13336: 24.3.50; `next-frame' should not choose a frame (e.g. *Backtrace*) that did not exist when it was invoked Date: Wed, 2 Jan 2013 10:13:01 -0800 Message-ID: <1776CE98469A44C484752764DD29E2DE@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 1357150437 22163 80.91.229.3 (2 Jan 2013 18:13:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2013 18:13:57 +0000 (UTC) To: 13336@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 02 19:14:13 2013 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 1TqSpH-0005Un-Pv for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jan 2013 19:14:04 +0100 Original-Received: from localhost ([::1]:34404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSp2-0001ib-Hm for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jan 2013 13:13:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSow-0001iW-2r for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 13:13:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqSou-00032e-VE for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 13:13:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSou-00032T-Rj for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 13:13:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TqSqE-0001m4-I6 for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 13:15: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: Wed, 02 Jan 2013 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13336 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.13571504816771 (code B ref -1); Wed, 02 Jan 2013 18:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jan 2013 18:14:41 +0000 Original-Received: from localhost ([127.0.0.1]:40337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TqSps-0001l9-Jn for submit@debbugs.gnu.org; Wed, 02 Jan 2013 13:14:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33375) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TqSpn-0001kx-SN for submit@debbugs.gnu.org; Wed, 02 Jan 2013 13:14:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqSoR-0002oY-Vb for submit@debbugs.gnu.org; Wed, 02 Jan 2013 13:13:13 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:43962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSoR-0002oT-Td for submit@debbugs.gnu.org; Wed, 02 Jan 2013 13:13:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSoP-0001I5-EX for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 13:13:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqSoL-0002lR-Qa for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 13:13:09 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:24987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSoL-0002kn-K3 for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 13:13:05 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r02ID37X007916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 2 Jan 2013 18:13:04 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r02ID225016411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 Jan 2013 18:13:03 GMT Original-Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r02ID2Ri009495 for ; Wed, 2 Jan 2013 12:13:02 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 02 Jan 2013 10:13:02 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac3pFM0cFxygXXvERK2RBLrZpx1PTg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] 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:69295 Archived-At: Set `special-display-regexps' or other so that `*Backtrace*' gets displayed in its own (special-display) frame. Evaluate the source code for `next-frame', then M-x debug-on-entry next-frame, then C-x o. When stepping through the debugger, the next frame should never be *Backtrace* (unless a *Backtrace* frame existed before invoking `next frame'), but it can be. This is a bug IMO. Debugger entered--returning value: # next-frame(#) * (setq frame (next-frame frame)) * (while (> arg 0) (setq frame (next-frame frame)) (while (not (eq (frame-visible-p frame) t)) (setq frame (next-frame frame))) (setq arg (1- arg))) * (let ((frame (selected-frame))) (while (> arg 0) (setq frame (next-frame frame)) (while (not (eq (frame-visible-p frame) t)) (setq frame (next-frame frame))) (setq arg (1- arg))) (while (< arg 0) (setq frame (previous-frame frame)) (while (not (eq (frame-visible-p frame) t)) (setq frame (previous-frame frame))) (setq arg (1+ arg))) (select-frame-set-input-focus frame)) * (lambda (arg) "Select the ARGth different visible frame on current display, and raise it.\nAll frames are arranged in a cyclic order.\nThis command selects the frame ARG steps away in that order.\nA negative ARG moves in the opposite order.\n\nTo make this command work properly, you must tell Emacs\nhow the system (or the window manager) generally handles\nfocus-switching between windows. If moving the mouse onto a window\nselects it (gives it focus), set `focus-follows-mouse' to t.\nOtherwise, that variable should be nil." (interactive "p") (let ((frame (selected-frame))) (while (> arg 0) (setq frame (next-frame frame)) (while (not (eq (frame-visible-p frame) t)) (setq frame (next-frame frame))) (setq arg (1- arg))) (while (< arg 0) (setq frame (previous-frame frame)) (while (not (eq (frame-visible-p frame) t)) (setq frame (previous-frame frame))) (setq arg (1+ arg))) (select-frame-set-input-focus frame)))(1) * apply((lambda (arg) "Select the ARGth different visible frame on current display, and raise it.\nAll frames are arranged in a cyclic order.\nThis command selects the frame ARG steps away in that order.\nA negative ARG moves in the opposite order.\n\nTo make this command work properly, you must tell Emacs\nhow the system (or the window manager) generally handles\nfocus-switching between windows. If moving the mouse onto a window\nselects it (gives it focus), set `focus-follows-mouse' to t.\nOtherwise, that variable should be nil." (interactive "p") (let ((frame (selected-frame))) (while (> arg 0) (setq frame (next-frame frame)) (while (not (eq (frame-visible-p frame) t)) (setq frame (next-frame frame))) (setq arg (1- arg))) (while (< arg 0) (setq frame (previous-frame frame)) (while (not (eq (frame-visible-p frame) t)) (setq frame (previous-frame frame))) (setq arg (1+ arg))) (select-frame-set-input-focus frame))) 1) * other-frame(1) In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2012-12-31 on ODIEONE Bzr revision: 111388 rudalics@gmx.at-20121231113513-subz2dazg6yjukzh Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'