unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [bug-report] e65c307 breaks font-height
@ 2016-03-29 12:48 Rostislav Svoboda
  2016-03-30  1:47 ` Paul Eggert
  0 siblings, 1 reply; 4+ messages in thread
From: Rostislav Svoboda @ 2016-03-29 12:48 UTC (permalink / raw)
  To: emacs-devel@gnu.org Development, Paul Eggert

It looks like the semicolon in ":user-spec" causes unexpected
font-height increase.
I'm not sure if screenshots help:
http://picpaste.com/emacs-bad-e65c307.png
http://picpaste.com/emacs-good-c8b868b.png

Is there a problem in the e65c307 or in my emacs configuration?

thx Bost


~/dev/emacs-25 $ git show
commit e65c3079c65595d95749348366af9811fafff062
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun Mar 27 15:02:37 2016 -0700

    * src/font.c (QCuser_spec): Add missing colon to :user-spec.

diff --git a/src/font.c b/src/font.c
index 5ab3b3e..2519599 100644
--- a/src/font.c
+++ b/src/font.c
@@ -5317,7 +5317,7 @@ syms_of_font (void)
   DEFSYM (Qja, "ja");
   DEFSYM (Qko, "ko");

-  DEFSYM (QCuser_spec, "user-spec");
+  DEFSYM (QCuser_spec, ":user-spec");

   staticpro (&scratch_font_spec);
   scratch_font_spec = Ffont_spec (0, NULL);



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [bug-report] e65c307 breaks font-height
  2016-03-29 12:48 [bug-report] e65c307 breaks font-height Rostislav Svoboda
@ 2016-03-30  1:47 ` Paul Eggert
  2016-03-31  9:10   ` Rostislav Svoboda
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggert @ 2016-03-30  1:47 UTC (permalink / raw)
  To: Rostislav Svoboda, emacs-devel@gnu.org Development

On 03/29/2016 05:48 AM, Rostislav Svoboda wrote:
> It looks like the semicolon in ":user-spec" causes unexpected
> font-height increase.
> I'm not sure if screenshots help:
> http://picpaste.com/emacs-bad-e65c307.png
> http://picpaste.com/emacs-good-c8b868b.png
>
> Is there a problem in the e65c307 or in my emacs configuration?

It's pretty clear that the intent here (and elsewhere in Emacs) is that 
the C identifier 'QCuser_spec' stands for the Emacs symbol ':user-spec', 
not for the Emacs symbol 'user-spec'.

It is possible that the change exposed some other bug in Emacs (perhaps 
related to font-setting-change-default-font? perhaps you could put a 
breakpoint on that function and see what it's doing). Or, it's 
conceivable that your Emacs configuration uses 'user-spec' where it 
should use ':user-spec'.

> thx Bost
>
>
> ~/dev/emacs-25 $ git show
> commit e65c3079c65595d95749348366af9811fafff062
> Author: Paul Eggert<eggert@cs.ucla.edu>
> Date:   Sun Mar 27 15:02:37 2016 -0700
>
>      * src/font.c (QCuser_spec): Add missing colon to :user-spec.
>
> diff --git a/src/font.c b/src/font.c
> index 5ab3b3e..2519599 100644
> --- a/src/font.c
> +++ b/src/font.c
> @@ -5317,7 +5317,7 @@ syms_of_font (void)
>     DEFSYM (Qja, "ja");
>     DEFSYM (Qko, "ko");
>
> -  DEFSYM (QCuser_spec, "user-spec");
> +  DEFSYM (QCuser_spec, ":user-spec");




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug-report] e65c307 breaks font-height
  2016-03-30  1:47 ` Paul Eggert
@ 2016-03-31  9:10   ` Rostislav Svoboda
  2016-04-01  9:24     ` Paul Eggert
  0 siblings, 1 reply; 4+ messages in thread
From: Rostislav Svoboda @ 2016-03-31  9:10 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel@gnu.org Development

>> Is there a problem in the e65c307 or in my emacs configuration?

Just to be sure - I did make clean && make bootstrap

After that I put a log-message right on the top of
font-setting-change-default-font in lisp/dynamic-setting.el and
byte-compiled the file.  I launch emacs in default configuration
using:
 ./src/emacs -q --eval "(set-face-attribute 'default nil :height 80)" &

A *scratch* with font-height 80 appears but immediatelly right after
that the font-height gets increased. Moreover my log-message does not
appear in the *Messages*.

So I think the e65c307 exposes some other bug indeed, but it is
specific to just one particular computer. On my other computer
everything is fine.

Do you have any other idea where should I take a look or put a
breakpoint?

thx Bost



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug-report] e65c307 breaks font-height
  2016-03-31  9:10   ` Rostislav Svoboda
@ 2016-04-01  9:24     ` Paul Eggert
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggert @ 2016-04-01  9:24 UTC (permalink / raw)
  To: Rostislav Svoboda; +Cc: emacs-devel@gnu.org Development

Rostislav Svoboda wrote:
> Do you have any other idea where should I take a look or put a
> breakpoint?

I'm afraid nothing comes to mind.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-01  9:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 12:48 [bug-report] e65c307 breaks font-height Rostislav Svoboda
2016-03-30  1:47 ` Paul Eggert
2016-03-31  9:10   ` Rostislav Svoboda
2016-04-01  9:24     ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).