From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#14604: 24.3.50.1; Possibly incorrect behaviour of frame-selected-window Date: Thu, 13 Jun 2013 12:45:54 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074b7b03fa63d04df07acf1 X-Trace: ger.gmane.org 1371124032 25164 80.91.229.3 (13 Jun 2013 11:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Jun 2013 11:47:12 +0000 (UTC) To: 14604@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 13 13:47:12 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 1Un5zj-0005b5-7q for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2013 13:47:11 +0200 Original-Received: from localhost ([::1]:59583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5zi-0007YT-KV for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2013 07:47:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5zd-0007YN-SQ for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 07:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un5zb-0008DM-8f for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 07:47:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5zb-0008DH-55 for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 07:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Un5za-0007bo-Cb for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 07:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jun 2013 11:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14604 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.137112397429097 (code B ref -1); Thu, 13 Jun 2013 11:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jun 2013 11:46:14 +0000 Original-Received: from localhost ([127.0.0.1]:40972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Un5yn-0007ZA-0Y for submit@debbugs.gnu.org; Thu, 13 Jun 2013 07:46:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56351) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Un5yk-0007Ye-6l for submit@debbugs.gnu.org; Thu, 13 Jun 2013 07:46:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un5yc-0007gG-E3 for submit@debbugs.gnu.org; Thu, 13 Jun 2013 07:46:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5yc-0007gC-B6 for submit@debbugs.gnu.org; Thu, 13 Jun 2013 07:46:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5yZ-0006p5-Ik for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 07:46:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un5yW-0007eT-73 for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 07:45:59 -0400 Original-Received: from mail-qe0-f44.google.com ([209.85.128.44]:61449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5yV-0007eD-8J for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 07:45:55 -0400 Original-Received: by mail-qe0-f44.google.com with SMTP id 5so4017811qeb.3 for ; Thu, 13 Jun 2013 04:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/0QL0tiETNUpqwlnF7ipcg0Ph3dXXZWqPgfoQtAtjt4=; b=kSQukGmJOCwsQfmo/4t4FHq3AxTWUPwXlT2MNsDS/6fPzG/6tZ3TQ0rKOaCGFCYaVt 1C0sO39fTEMV/ADaybwR9u0UPGNNDVJ0TRiOcaWKVx4uFyPTUtmJUdah0QWw9GC9J6Eo ms7cBeRrZGfkZDr7i0lhDjDh1UWFgeLsRt8HIbYYAHIVV+MjEW9xyWizHcC2/cOy36zb jm/22F6Qloqa4QGJqVStuna7f9QbvvqnwsvA+qmm9uj3Og4jh0yxMQKEhaYu2wfOT9Xt xYtnJg/GpMyc+uSwtBJ1yo1Bfqv6T+9DKvMT1J04KRi+sF81IYPILLZJAHu5WW6PRum2 Stxg== X-Received: by 10.224.34.198 with SMTP id m6mr2574317qad.39.1371123954451; Thu, 13 Jun 2013 04:45:54 -0700 (PDT) Original-Received: by 10.49.96.226 with HTTP; Thu, 13 Jun 2013 04:45:54 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:75039 Archived-At: --20cf3074b7b03fa63d04df07acf1 Content-Type: text/plain; charset=ISO-8859-1 This works on 24.3, but on trunk all windows will be shown as "selected". (setq-default mode-line-format '(:eval (if (eq (frame-selected-window) (selected-window)) "selected" "not-selected"))) I don't know which behavior is correct, but being able to find which is the "really" selected window would be nice. --20cf3074b7b03fa63d04df07acf1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This works on=A024.3, but on trunk all windows will be s= hown as "selected".

(setq-default=A0
=A0mode-line-format
=A0'(:eval (if (eq (frame-selected-window)
=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0(selected-window))
=A0 =A0 =A0 =A0 =A0 =A0 =A0= "selected"
=A0 =A0 =A0 =A0 =A0 =A0 =A0"not-selecte= d")))

I don't know which behavior is correct, but being a= ble to find which is the "really" selected window would be nice.<= /div>
--20cf3074b7b03fa63d04df07acf1--