From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#5405: select-frame losing current-buffer Date: Mon, 18 Jan 2010 09:11:44 +0100 Message-ID: <4B5417C0.4030706@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263804222 3642 80.91.229.12 (18 Jan 2010 08:43:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2010 08:43:42 +0000 (UTC) To: Uday S Reddy , 5405@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 18 09:43:35 2010 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.50) id 1NWnCv-0007M7-8a for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jan 2010 09:43:33 +0100 Original-Received: from localhost ([127.0.0.1]:54216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWnCv-0006ch-VI for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jan 2010 03:43:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWn8z-0003BV-7j for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 03:39:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWn8s-00038p-FY for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 03:39:27 -0500 Original-Received: from [199.232.76.173] (port=47106 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWn8s-00038c-5E for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 03:39:22 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:45536) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWn8r-0000T3-IO for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 03:39:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWn8q-0008VX-Qc for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 03:39:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NWmiP-0003YL-PC; Mon, 18 Jan 2010 03:12:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2010 08:12:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5405 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5405-submit@debbugs.gnu.org id=B5405.126380231313649 (code B ref 5405); Mon, 18 Jan 2010 08:12:01 +0000 Original-Received: (at 5405) by debbugs.gnu.org; 18 Jan 2010 08:11:53 +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 1NWmiG-0003Y6-Ea for submit@debbugs.gnu.org; Mon, 18 Jan 2010 03:11:52 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NWmiD-0003Xy-Ma for 5405@debbugs.gnu.org; Mon, 18 Jan 2010 03:11:51 -0500 Original-Received: (qmail invoked by alias); 18 Jan 2010 08:11:45 -0000 Original-Received: from 62-47-62-48.adsl.highway.telekom.at (EHLO [62.47.62.48]) [62.47.62.48] by mail.gmx.net (mp047) with SMTP; 18 Jan 2010 09:11:45 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18nFBclVK8nxE6gQM4OBBqhkvXDB8lJJaq74L0v8K cP3YQa0AqSZwgv User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72999999999999998 X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.5 (--) Resent-Date: Mon, 18 Jan 2010 03:12:01 -0500 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:34448 Archived-At: > The documentation of make-frame says that current-buffer continues to > selected in the new frame. The documentation also says that The previously selected frame remains selected. However, the window system may select the new frame for its own reasons, for instance if the frame appears under the mouse pointer and your setup is for focus to follow the pointer. so the current buffer may change (as described below) in some cases. > The documentation of select-frame doesn't > say anything about the matter, but one would normally expect that the > current-buffer should still remain the same. The documentation of `select-frame' says Subsequent editing commands apply to its selected window. which inherently means that that frame's selected window becomes the selected window. Selecting a window WINDOW means to assure that If WINDOW is not already selected, make WINDOW's buffer current and make WINDOW the frame's selected window. Which doesn't mean that the documentation can't be improved ;-) > I presume that the space at the beginning of the buffer name is > a partial cause of this misbehaviour. It's not related. martin