GNU bug report logs - #45636
[feature/native-comp] new (X11) windows don't use configured face/font

Previous Next

Package: emacs;

Reported by: Christian Thaeter <ct <at> pipapo.org>

Date: Sun, 3 Jan 2021 20:01:02 UTC

Severity: normal

Merged with 45635

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45636 in the body.
You can then email your comments to 45636 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#45636; Package emacs. (Sun, 03 Jan 2021 20:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Thaeter <ct <at> pipapo.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 03 Jan 2021 20:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christian Thaeter <ct <at> pipapo.org>
To: bug-gnu-emacs <at> gnu.org
Cc: akrl <at> sdf.org
Subject: [feature/native-comp] new (X11) windows don't use configured face/font
Date: Sun, 3 Jan 2021 16:35:45 +0100
Opening a new emacs window under X11 falls back to
"Bitstream Vera Sans" not honoring the default face I have configured.

I can change the face, but opening a new window still falls back.

When I compile the exact same source tree without '--with-nativecomp'
then the Problem vanishes.

My tree here is native-comp (a3f2373bfb604af5570c86b4ffefb23296a5bfdd)
merged with master (825b4ec338e82869dc656c7041ab2483b6c22479).

	Cheers Christian




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45636; Package emacs. (Sun, 03 Jan 2021 20:15:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Christian Thaeter <ct <at> pipapo.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: [feature/native-comp] new (X11) windows don't use configured
 face/font
Date: Sun, 03 Jan 2021 20:14:44 +0000
Christian Thaeter <ct <at> pipapo.org> writes:

> Opening a new emacs window under X11 falls back to
> "Bitstream Vera Sans" not honoring the default face I have configured.
>
> I can change the face, but opening a new window still falls back.
>
> When I compile the exact same source tree without '--with-nativecomp'
> then the Problem vanishes.
>
> My tree here is native-comp (a3f2373bfb604af5570c86b4ffefb23296a5bfdd)
> merged with master (825b4ec338e82869dc656c7041ab2483b6c22479).
>
> 	Cheers Christian

Hi Christian,

could you provide a minimal reproducer I can use to investigate?

Thanks!

  Andrea




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45636; Package emacs. (Sun, 03 Jan 2021 20:30:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christian Thäter <ct <at> pipapo.org>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: [feature/native-comp] new (X11) windows don't use configured
 face/font
Date: Sun, 3 Jan 2021 21:29:10 +0100
On 2021-01-03 20:14, Andrea Corallo wrote:

>Christian Thaeter <ct <at> pipapo.org> writes:
>
>> Opening a new emacs window under X11 falls back to
>> "Bitstream Vera Sans" not honoring the default face I have
>> configured.
>>
>> I can change the face, but opening a new window still falls back.
>>
>> When I compile the exact same source tree without '--with-nativecomp'
>> then the Problem vanishes.
>>
>> My tree here is native-comp
>> (a3f2373bfb604af5570c86b4ffefb23296a5bfdd) merged with master
>> (825b4ec338e82869dc656c7041ab2483b6c22479).
>>
>> 	Cheers Christian  
>
>Hi Christian,
>
>could you provide a minimal reproducer I can use to investigate?

I am just bisecting it and will give you reply in a moment.

For now (untested by me) you may reproduce it by

- Set the 'default' face to 'Comic Sans' or anything you never ever
  use. Either from menu-bar, editing .emacs manually or through
  customize.

- Save that.

- Confirm it got saved correctly.

- Restart Emacs.

- Still no 'Comic Sans' :(

	o/

>
>Thanks!
>
>  Andrea





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45636; Package emacs. (Sun, 03 Jan 2021 21:25:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christian Thäter <ct <at> pipapo.org>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: [feature/native-comp] new (X11) windows don't use configured
 face/font
Date: Sun, 3 Jan 2021 22:24:48 +0100
On 2021-01-03 20:14, Andrea Corallo wrote:

>Christian Thaeter <ct <at> pipapo.org> writes:
>
>> Opening a new emacs window under X11 falls back to
>> "Bitstream Vera Sans" not honoring the default face I have
>> configured.
>>
>> I can change the face, but opening a new window still falls back.
>>
>> When I compile the exact same source tree without '--with-nativecomp'
>> then the Problem vanishes.
>>
>> My tree here is native-comp
>> (a3f2373bfb604af5570c86b4ffefb23296a5bfdd) merged with master
>> (825b4ec338e82869dc656c7041ab2483b6c22479).
>>
>> 	Cheers Christian
>
>Hi Christian,
>
>could you provide a minimal reproducer I can use to investigate?


FYI:

My system is Debian bullseye: emacs configured as following:

$ ./configure --with-nativecomp --with-cairo --enable-link-time-optimization

gives:

Configured for 'x86_64-pc-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -g3 -O2 -flto=24 -ffat-lto-objects
  Should Emacs use the GNU version of malloc?             no
    (The GNU allocators don't work with this system configuration.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK3
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use a png library?                           yes -lpng16 -lz
  Does Emacs use -lrsvg-2?                                yes
  Does Emacs use cairo?                                   yes
  Does Emacs use -llcms2?                                 no
  Does Emacs use imagemagick?                             no
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  yes
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               yes
  Does Emacs use a file notification library?             yes -lglibc (inotify)
  Does Emacs use access control lists?                    yes -lacl
  Does Emacs use -lselinux?                               yes
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              yes
  Does Emacs use HarfBuzz?                                yes
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   yes
  Does Emacs use -lxft?                                   no
  Does Emacs use -lsystemd?                               no
  Does Emacs use -ljansson?                               yes
  Does Emacs use -lgmp?                                   yes
  Does Emacs directly use zlib?                           yes
  Does Emacs have dynamic modules support?                yes
  Does Emacs use toolkit scroll bars?                     yes
  Does Emacs support Xwidgets (requires gtk3)?            no
  Does Emacs have threading support in lisp?              yes
  Does Emacs support the portable dumper?                 yes
  Does Emacs support legacy unexec dumping?               no
  Which dumping strategy does Emacs use?                  pdumper
  Does Emacs have native lisp compiler?                   yes

When testing I clean the eln-cache with:
 rm -rf ~/.emacs.d/eln-cache/*

to have a pristine new environment



And I underestimated how long bisecting takes, will continue tomorrow.

	cu Christian









>
>Thanks!
>
>  Andrea





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45636; Package emacs. (Mon, 04 Jan 2021 07:56:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christian Thäter <ct <at> pipapo.org>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: [feature/native-comp] new (X11) windows don't use configured
 face/font
Date: Mon, 4 Jan 2021 08:49:16 +0100
Bisect result:

c4efb49a27f05284d28eac7f60b28495c68f63fb is the first bad commit
commit c4efb49a27f05284d28eac7f60b28495c68f63fb
Author: Andrea Corallo <akrl <at> sdf.org>
Date:   Tue Dec 29 13:29:02 2020 +0100

    Constrain mvars under compare and branch with built-in predicates
    
            * lisp/emacs-lisp/comp.el (comp-emit-assume): Update.
            (comp-known-predicate-p): New function.
            (comp-add-cond-cstrs): Extend to pattern match predicate
    calls.
            * lisp/emacs-lisp/comp-cstr.el (comp-cstr-null-p)
            (comp-pred-to-cstr): New function.
            * test/src/comp-tests.el (comp-tests-type-spec-tests): Add a
            number of tests and fix comments.

 lisp/emacs-lisp/comp-cstr.el | 11 +++++++
 lisp/emacs-lisp/comp.el      | 69
 ++++++++++++++++++++++++++++++++++++++------ test/src/comp-tests.el
    | 69 +++++++++++++++++++++++++++++++++----------- 3 files changed,
 123 insertions(+), 26 deletions(-)


On 2021-01-03 20:14, Andrea Corallo wrote:

>Christian Thaeter <ct <at> pipapo.org> writes:
>
>> Opening a new emacs window under X11 falls back to
>> "Bitstream Vera Sans" not honoring the default face I have
>> configured.
>>
>> I can change the face, but opening a new window still falls back.
>>
>> When I compile the exact same source tree without '--with-nativecomp'
>> then the Problem vanishes.
>>
>> My tree here is native-comp
>> (a3f2373bfb604af5570c86b4ffefb23296a5bfdd) merged with master
>> (825b4ec338e82869dc656c7041ab2483b6c22479).
>>
>> 	Cheers Christian  
>
>Hi Christian,
>
>could you provide a minimal reproducer I can use to investigate?
>
>Thanks!
>
>  Andrea





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45636; Package emacs. (Mon, 04 Jan 2021 10:03:02 GMT) Full text and rfc822 format available.

Message #20 received at 45636 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Christian Thaeter <ct <at> pipapo.org>
Cc: 45636 <at> debbugs.gnu.org, akrl <at> sdf.org
Subject: Re: bug#45636: [feature/native-comp] new (X11) windows don't use
 configured face/font
Date: Mon, 04 Jan 2021 10:50:37 +0100
Christian Thaeter <ct <at> pipapo.org> writes:

> Opening a new emacs window under X11 falls back to
> "Bitstream Vera Sans" not honoring the default face I have configured.

This looks like a duplicate of 45635, which has a better recipe for
reproducing, so I'm merging the two bugs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Forcibly Merged 45635 45636. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 04 Jan 2021 10:03:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Feb 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.