all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: 25228@debbugs.gnu.org
Subject: bug#25228: 25.1; GNU emacs 25.1: custom-set-faces from init file ~/.emacs ignored
Date: Tue, 20 Dec 2016 19:55:23 +0200	[thread overview]
Message-ID: <83mvfq32pg.fsf@gnu.org> (raw)
In-Reply-To: <58596B9B.4050001@gmx.at> (message from martin rudalics on Tue, 20 Dec 2016 18:34:19 +0100)

> Date: Tue, 20 Dec 2016 18:34:19 +0100
> From: martin rudalics <rudalics@gmx.at>
> CC: werner@suse.de, 25228@debbugs.gnu.org
> 
>  >> Before e65c307 the disjunct
>  >>
>  >>            (or (font-get (face-attribute 'default :font f 'default)
>  >>                      :user-spec)
>  >>
>  >> in ‘font-setting-change-default-font’ always evaluated to nil.  After
>  >> e65c307 it returns some non-nil value and ‘frame-font’ gets set to that.
>  >
>  > And the value "Monospace 11" you quoted back then -- any idea where
>  > does that come from?
> 
> No idea.  But when I run emacs -Q and evaluate
> 
> (font-get (face-attribute 'default :font (selected-frame) 'default) :user-spec)
> 
> I get "Monospace 11".

So all this disaster happens because 96.281588447653434 compares not
equal to 96, is that right?  Would the problem be solved, both for you
and for Werner, if we compare these values after rounding them to the
nearest integer?  It looks to me that xsettings.c reads the new value
as an integer to begin with, so it makes no sense to compare
fractional values.  And AFAIK about DPI (which is very little, and
nothing about Gsettings and Xft), the DPI values are always integers.

WDYT?





  reply	other threads:[~2016-12-20 17:55 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-19 10:03 bug#25228: 25.1; GNU emacs 25.1: custom-set-faces from init file ~/.emacs ignored Dr. Werner Fink
2016-12-19 15:09 ` bug#25228: [emacs-bug] " Dr. Werner Fink
2016-12-19 17:37 ` Eli Zaretskii
2016-12-19 18:36   ` martin rudalics
2016-12-19 18:57     ` Eli Zaretskii
2016-12-19 20:20       ` martin rudalics
2016-12-19 20:43         ` Eli Zaretskii
2016-12-20 10:59           ` martin rudalics
2016-12-20 16:11             ` Eli Zaretskii
2016-12-20 16:25               ` martin rudalics
2016-12-20 17:06                 ` Eli Zaretskii
2016-12-20 17:28                   ` Dr. Werner Fink
2016-12-20 17:34                   ` martin rudalics
2016-12-20 17:55                     ` Eli Zaretskii [this message]
2016-12-20 18:18                       ` martin rudalics
2016-12-20 18:39                         ` Eli Zaretskii
2016-12-20 18:49                           ` martin rudalics
2016-12-20 19:31                             ` Eli Zaretskii
2016-12-20 19:11                           ` Rostislav Svoboda
2016-12-20 19:24                             ` Rostislav Svoboda
2016-12-20 19:34                               ` Eli Zaretskii
2016-12-20 21:50                                 ` Rostislav Svoboda
2016-12-21  7:42                                   ` martin rudalics
2016-12-21 11:03                                     ` Rostislav Svoboda
2016-12-21 17:25                                       ` Eli Zaretskii
2016-12-22  8:35                                       ` martin rudalics
2016-12-22 11:59                                         ` Rostislav Svoboda
2016-12-22 17:45                                           ` martin rudalics
2016-12-20 19:29                             ` martin rudalics
2016-12-21  8:11             ` Dr. Werner Fink
2016-12-21  8:47               ` bug#25228: [emacs-bug] " Dr. Werner Fink
2016-12-21  8:56                 ` martin rudalics
2016-12-21 11:08                   ` Dr. Werner Fink
2016-12-22  8:35                     ` martin rudalics
2016-12-22 11:46                       ` Dr. Werner Fink
2016-12-22 17:44                         ` martin rudalics
2016-12-23  7:20                           ` Dr. Werner Fink
2016-12-21 17:24                 ` Eli Zaretskii
2016-12-21 17:39                   ` Dr. Werner Fink
2016-12-21 18:04                     ` Eli Zaretskii
2016-12-21  8:48               ` martin rudalics
2016-12-21 12:08                 ` Dr. Werner Fink
2016-12-21 17:34                   ` Eli Zaretskii
2016-12-22  8:35                     ` martin rudalics
2016-12-22 17:30                       ` Eli Zaretskii
2016-12-22 17:45                         ` martin rudalics
2016-12-23  7:29                           ` Dr. Werner Fink
2016-12-20 11:18           ` Dr. Werner Fink
2016-12-20 16:15             ` Eli Zaretskii
2016-12-20 16:41               ` Dr. Werner Fink
2016-12-20 16:56                 ` bug#25228: [emacs-bug] " Dr. Werner Fink
2016-12-20 17:58                   ` Eli Zaretskii

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=83mvfq32pg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=25228@debbugs.gnu.org \
    --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.