From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#10114: 24.0.91; (not (eq (current-buffer) (window-buffer (selected-window)))) Date: Tue, 22 Nov 2011 23:11:31 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1322003512 16235 80.91.229.12 (22 Nov 2011 23:11:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Nov 2011 23:11:52 +0000 (UTC) To: 10114@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 23 00:11:46 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RSzVB-0002ZT-KH for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Nov 2011 00:11:45 +0100 Original-Received: from localhost ([::1]:49736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSzVA-0001QH-MG for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Nov 2011 18:11:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSzV7-0001Q1-TB for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 18:11:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSzV6-00012G-Vn for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 18:11:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSzV6-00012C-RQ for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 18:11:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RSzWQ-00084l-LI for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 18:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2011 23:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10114 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.132200358031033 (code B ref -1); Tue, 22 Nov 2011 23:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Nov 2011 23:13:00 +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 1RSzWO-00084U-38 for submit@debbugs.gnu.org; Tue, 22 Nov 2011 18:13:00 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RSzWL-00084L-9W for submit@debbugs.gnu.org; Tue, 22 Nov 2011 18:12:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSzV0-00011x-9Q for submit@debbugs.gnu.org; Tue, 22 Nov 2011 18:11:35 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:57312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSzV0-00011t-7u for submit@debbugs.gnu.org; Tue, 22 Nov 2011 18:11:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSzUz-0001NS-94 for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 18:11:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSzUy-00011h-At for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 18:11:33 -0500 Original-Received: from mail-qw0-f48.google.com ([209.85.216.48]:48392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSzUy-00011d-8a for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 18:11:32 -0500 Original-Received: by qam2 with SMTP id 2so1025042qam.0 for ; Tue, 22 Nov 2011 15:11:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=x/QSsC9wonGuhvIGKML1YaVxPKYeJEdRtN5V63yi1tI=; b=vT06Qpq0Q/hR0zyfdOumfLpEcIAnbWmCQyjMblG0s1lZQrjSRsVgIdH5oDN355BWng UL1UaxCSTKnOBBJHzU79G6cdUmolLGNvi61/frOynJxtVfrRxlvtpa4t1ls0L+Nqw6s8 HybG916XQBc6TJzd+VxMz+SrYjSjfuL8pDmyE= Original-Received: by 10.182.77.196 with SMTP id u4mr7944837obw.19.1322003491276; Tue, 22 Nov 2011 15:11:31 -0800 (PST) Original-Received: by 10.182.15.42 with HTTP; Tue, 22 Nov 2011 15:11:31 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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.11 Precedence: list Resent-Date: Tue, 22 Nov 2011 18:13:02 -0500 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:54190 Archived-At: When you remove the current buffer from the selected window, the buffer that gets displayed in the selected window isn't always the same as the buffer that gets made the new current buffer. The command M-x test (see below) manifests the problem for me from runemacs -Q. Output on Emacs 23.3: Current: *Test*<2>; Selected: *Test*<2>; [...] Current: *Test*<1>; Selected: *Test*<1>; [...] Output on Emacs bzr trunk: Current: *Test*<2>; Selected: *Test*<2>; [...] Current: *Test*<1>; Selected: *scratch*; [...] (defun test () (interactive) (progn ;; This seems to sow enough confusion. (switch-to-buffer-other-window "*Test*<1>") (switch-to-buffer-other-window "*Test*<2>") (delete-other-windows)) (while (progn (message "Current: %s; Selected: %s; \ type k to kill current buffer, \ any other key to quit" (current-buffer) (window-buffer (selected-window))) (and (eq (read-event) ?k) (kill-buffer)))) (clear-this-command-keys t)) In GNU Emacs 24.0.91.1 (i386-mingw-nt6.1.7601) of 2011-11-20 on MACHINE Windowing system distributor `Microsoft Corp.', version 6.1.7601 configured using `configure --with-gcc (4.6)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENG value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)