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: eggert@cs.ucla.edu, emacs-devel@gnu.org
Subject: Re: Note on e65c307 breaks font-height
Date: Sat, 28 May 2016 13:17:58 +0300	[thread overview]
Message-ID: <8337p2zdt5.fsf@gnu.org> (raw)
In-Reply-To: <5748490A.6020906@gmx.at> (message from martin rudalics on Fri, 27 May 2016 15:18:02 +0200)

> Date: Fri, 27 May 2016 15:18:02 +0200
> From: martin rudalics <rudalics@gmx.at>
> 
>  > What exactly is in your .emacs file? That is, can you give a recipe to reproduce the problem?
> 
> It's reproducible here with my
> 
> (custom-set-faces
>   ;; custom-set-faces was added by Custom.
>   ;; If you edit it by hand, you could mess it up, so be careful.
>   ;; Your init file should contain only one such instance.
>   ;; If there is more than one, they won't work right.
>   '(default ((t (:stipple nil :background "grey92" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :foundry "outline" :family "Courier New")))))

Any reasons why you prefer specifying each of the font's attributes
separately, instead of just specifying a font?  IOW, how is the above
different from something like

  (add-to-list 'default-frame-alist '(font . "-outline-Courier New-normal-r-normal-normal-15-112-96-96-c-90-iso8859-1"))

(in your case, you may wish changing the size numbers, I think)?

The advantage of the full font specification is that it works around
the subtleties of the Emacs font selection procedure, whereby it could
effectively disregard some of the attributes as result.

> My analysis so far is as follows: In ‘font-setting-change-default-font’
> the disjunct (frame-parameter f 'font-parameter) always evaluates to
> nil here.  Before your patch, the disjunct
> 
> 		 (or (font-get (face-attribute 'default :font f 'default)
> 			       :user-spec)

Why are we looking at the :font attribute, when you say the
problematic attribute is :height?

Anyway, I think the best way forward is to debug Emacs during startup,
putting a breakpoint where the :height attribute is being processed,
and see what happens before and after Paul's change of the :user-spec
symbol's definition.  (My guess is that the change is correct, and the
problems it uncovers are either unrelated bugs, or something that
isn't supposed to work in the first place, at least not reliably.)



  reply	other threads:[~2016-05-28 10:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-26 10:44 Note on e65c307 breaks font-height martin rudalics
2016-05-26 15:05 ` Paul Eggert
2016-05-26 15:22   ` Eli Zaretskii
2016-05-26 15:33     ` Paul Eggert
2016-05-26 15:50       ` Eli Zaretskii
2016-05-26 15:57         ` Paul Eggert
2016-05-26 16:33           ` Eli Zaretskii
2016-05-27 13:18   ` martin rudalics
2016-05-28 10:17     ` Eli Zaretskii [this message]
2016-05-29 13:43       ` martin rudalics
2016-05-29 15:07         ` Eli Zaretskii
2016-05-30  8:00           ` martin rudalics
2016-06-04  7:28             ` Eli Zaretskii
2016-06-04  9:48               ` martin rudalics
2016-06-04 10:52                 ` Eli Zaretskii
2016-06-04 13:07                   ` martin rudalics
2016-05-28 10:38     ` Paul Eggert
2016-05-29 13:43       ` martin rudalics
2016-05-29 17:14         ` Paul Eggert
2016-05-30  8:00           ` martin rudalics
2016-05-26 15:16 ` 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=8337p2zdt5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@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.