all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Donald Curtis <d@milkbox.net>
To: rudalics@gmx.at
Cc: 16874@debbugs.gnu.org, damien.cassou@gmail.com
Subject: bug#16874: 24.3.50; Regression in active window detection
Date: Thu, 6 Mar 2014 22:31:37 -0800	[thread overview]
Message-ID: <CANJd5QvN=4kJkU3LMLz3WJiJ93z27BWDh7wxPYDmDJVwvh2yNA@mail.gmail.com> (raw)
In-Reply-To: <87eh2rftna.fsf@gmail.com>

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

apologies for taking my sweet time in responding.

so what I am trying to do is set the modeline to be a bit different
depending on which window is currently selected. as it stands, there is a
`mode-line` face and a `mode-line-inactive face`. somehow emacs changes the
default face for each mode-line depending on whether it is for the "active"
window or not. I want to be able to customize other parts of the mode-line
depending on whether it is selected or not.

for example, you cannot make the `mode-line-buffer-id` face different
depending on whether its being displayed in the active window or not.

so the code I had written was able to detect whether the mode-line was
being displayed in the active window or not.

now that things have changed, my code falls on its face. the currently
suggested method is to wrap advice around the "select-window" function and
add a few hooks.

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

  parent reply	other threads:[~2014-03-07  6:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-25  9:06 bug#16874: 24.3.50; Regression in active window detection Damien Cassou
2014-02-25 16:18 ` Eli Zaretskii
2014-02-25 16:28   ` Damien Cassou
2014-02-25 17:47     ` Eli Zaretskii
2014-02-26 10:16 ` martin rudalics
2014-03-07  6:31 ` Donald Curtis [this message]
2014-03-08  0:25   ` Stefan Monnier
2014-03-08  1:53     ` Donald Curtis
2014-03-18 22:18       ` Juanma Barranquero

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='CANJd5QvN=4kJkU3LMLz3WJiJ93z27BWDh7wxPYDmDJVwvh2yNA@mail.gmail.com' \
    --to=d@milkbox.net \
    --cc=16874@debbugs.gnu.org \
    --cc=damien.cassou@gmail.com \
    --cc=rudalics@gmx.at \
    /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.