all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: E Sabof <esabof@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 14604@debbugs.gnu.org
Subject: bug#14604: 24.3.50.1; Possibly incorrect behaviour of frame-selected-window
Date: Thu, 13 Jun 2013 14:47:15 +0100	[thread overview]
Message-ID: <CAEp6Dyawkf3nwHgQrXprE7qnCtimubaQO_hqPKaR=H8NuUf-JQ@mail.gmail.com> (raw)
In-Reply-To: <83ppvqw4dy.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]

On Thu, Jun 13, 2013 at 2:02 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Thu, 13 Jun 2013 12:45:54 +0100
> > From: E Sabof <esabof@gmail.com>
> >
> >
> > [1:text/plain Hide]
> >
> > 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.
>
> When the mode-line format is evaluated, Emacs makes its window the
> selected window.  If it didn't, how could it show values for that
> window in the mode line?
>

(frame-selected-window) used to remain bound to the window which the user
would consider selected, and only (selected-window) changed. I don't know
whether it was a bug, or intentional.

If it was a bug, I suppose I could get the desired results with command
hooks.

[-- Attachment #2: Type: text/html, Size: 1776 bytes --]

  reply	other threads:[~2013-06-13 13:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13 11:45 bug#14604: 24.3.50.1; Possibly incorrect behaviour of frame-selected-window E Sabof
2013-06-13 13:02 ` Eli Zaretskii
2013-06-13 13:47   ` E Sabof [this message]
2013-06-13 14:35 ` Stefan Monnier
2013-06-13 14:59   ` E Sabof
2013-06-13 16:04     ` Eli Zaretskii
2013-06-13 16:16       ` E Sabof
2013-10-30 17:50     ` Stefan Monnier
2013-10-30 19:23       ` E Sabof
2013-10-30 22:40         ` E Sabof
2013-10-30 23:30           ` Stefan Monnier
2013-11-01 21:13             ` E Sabof
2022-02-13  9:21 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEp6Dyawkf3nwHgQrXprE7qnCtimubaQO_hqPKaR=H8NuUf-JQ@mail.gmail.com' \
    --to=esabof@gmail.com \
    --cc=14604@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.