From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7728: 24.0.50; GDB backtrace from abort Date: Wed, 12 Jan 2011 12:48:32 -0500 Message-ID: References: <30041A5C411E45A7B7AF7A9ECA3AA0BE@us.oracle.com> <83y67echvm.fsf@gnu.org> <837heopknq.fsf@gnu.org> <4D2D5E29.3010502@gmx.at> <4D2DE81F.5040002@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1294855266 23535 80.91.229.12 (12 Jan 2011 18:01:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 18:01:06 +0000 (UTC) Cc: 7728@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 12 19:01:02 2011 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.69) (envelope-from ) id 1Pd50F-0000UI-Jy for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 19:01:01 +0100 Original-Received: from localhost ([127.0.0.1]:56477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd4xL-0003cv-4Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 12:57:59 -0500 Original-Received: from [140.186.70.92] (port=48530 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd4to-0001vx-Vf for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 12:54:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd4tl-0005yQ-OI for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 12:54:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd4tl-0005yL-KN for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 12:54:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pd4hu-0001yM-IC; Wed, 12 Jan 2011 12:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jan 2011 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7728-submit@debbugs.gnu.org id=B7728.12948540697520 (code B ref 7728); Wed, 12 Jan 2011 17:42:02 +0000 Original-Received: (at 7728) by debbugs.gnu.org; 12 Jan 2011 17:41:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pd4h1-0001xF-Uj for submit@debbugs.gnu.org; Wed, 12 Jan 2011 12:41:08 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pd4gz-0001wk-Ev for 7728@debbugs.gnu.org; Wed, 12 Jan 2011 12:41:06 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pd4oC-00037K-7n; Wed, 12 Jan 2011 12:48:32 -0500 In-reply-to: <4D2DE81F.5040002@gmx.at> (message from martin rudalics on Wed, 12 Jan 2011 18:42:55 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 Jan 2011 12:42:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:43300 Archived-At: > Date: Wed, 12 Jan 2011 18:42:55 +0100 > From: martin rudalics > CC: Stefan Monnier , 7728@debbugs.gnu.org > > > Are you saying tha this isn't kosher, because the body of > > save-window-excursion is not allowed to select a different frame? > > I doubt it's kosher because if the old selected window is not on the > restored frame and a window on the restored frame gets selected, the > point of the buffer whose window is deselected is not stored in the old > selected window's pointm which is certainly not TRT. But I bet Drew's code works just fine, when it does not crash. Anyway, if switching away of the frame inside save-window-excursion is not allowed, we should detect that and signal an error. That would solve this bug cleanly, with no need for any low-level hacking or kludges. > To avoid the present crash we could try something like the attached > patch (which does not try to solve anything but that crash). But if you say that switching a frame inside save-window-excursion is not supported, why do we need to change code to support it? What am I missing?