Subject: bug#16709: Regression: face-remap-alist not applied until the window is selected

From: E Sabof <[email-masked]>
Date: Mon, 10 Feb 2014 13:23:29 +0000

In emacs -Q, execute the following snippet:

(progn
  (set-window-buffer (split-window) (get-buffer-create "test-buffer1"))
  (with-current-buffer "test-buffer1"
    (insert "Quo sunt sicut et, est unde in ergo."))
  (run-with-timer 1 nil
                  (lambda ()
                    (with-current-buffer "test-buffer1"
                      (face-remap-add-relative
                       'default 'bold)))))

EXPECTED:

The face should change to bold in 1 second.

RESULT:

The face changes, only once the window of "test-buffer1" is selected.

Evgeni

GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2014-02-07 on ubuntu