Subject: bug#25228: 25.1; GNU emacs 25.1: custom-set-faces from init file ~/.emacs ignored

From: Eli Zaretskii <[email-masked]>
Date: Wed, 21 Dec 2016 19:34:50 +0200

> Date: Wed, 21 Dec 2016 13:08:26 +0100
> From: "Dr. Werner Fink" <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> 
> ~"Lisp Backtrace:\n"
> ~"\"internal-set-lisp-face-attribute\""
> ~" (0xffffa740)\n"
> ~"\"set-face-attribute\""
> ~" (0xffffa930)\n"
> ~"\"font-setting-change-default-font\""
> ~" (0xffffab50)\n"
> ~"\"dynamic-setting-handle-config-changed-event\""
> ~" (0xffffae00)\n"
> ~"\"funcall-interactively\""
> ~" (0xffffadf8)\n"
> ~"\"call-interactively\""

This seems to indicate that a real font-changed event was received.
Can you look in your Gsettings and find where does this come from?

Anyway, how about if we simply introduce a defcustom that would
disable dynamic-setting-handle-config-changed-event from having any
effect?  Or maybe people who don't want this feature should be advised
to simply unbind this key binding:

  (define-key special-event-map [config-changed-event]
    'dynamic-setting-handle-config-changed-event)

WDYT?

In any case, Martin, I think you should install your patch on the
emacs-25 branch.