GNU bug report logs - #58632
Setting Apple's emoji font on macOS in daemon mode

Previous Next

Package: emacs;

Reported by: Tor Kringeland <tor.kringeland <at> ntnu.no>

Date: Wed, 19 Oct 2022 12:22:01 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Kangas <stefankangas <at> gmail.com>

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 58632 in the body.
You can then email your comments to 58632 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#58632; Package emacs. (Wed, 19 Oct 2022 12:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tor Kringeland <tor.kringeland <at> ntnu.no>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 19 Oct 2022 12:22:02 GMT) Full text and rfc822 format available.

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

From: Tor Kringeland <tor.kringeland <at> ntnu.no>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Setting Apple's emoji font on macOS in daemon mode
Date: Wed, 19 Oct 2022 12:20:53 +0000
Minimal reproducing example:

Run

  emacs -Q --daemon --eval "(set-fontset-font t 'unicode \"Apple Color Emoji\")"

and insert an emoji.  It will not be rendered by the Apple Color Emoji
font.  This wasn't the case on the build from a week or two ago (and
builds for many months before that).  It works if I do not run Emacs in
daemon mode or explicitly set the font after having connected a client.
Is this a bug or is there another way I should specify the emoji font?

(Using an Emacs build from today's sources.)



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58632; Package emacs. (Wed, 19 Oct 2022 13:28:01 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Tor Kringeland <tor.kringeland <at> ntnu.no>
Cc: 58632 <at> debbugs.gnu.org
Subject: Re: bug#58632: Setting Apple's emoji font on macOS in daemon mode
Date: Wed, 19 Oct 2022 15:27:22 +0200
>>>>> On Wed, 19 Oct 2022 12:20:53 +0000, Tor Kringeland <tor.kringeland <at> ntnu.no> said:

    Tor> Minimal reproducing example:
    Tor> Run

    Tor>   emacs -Q --daemon --eval "(set-fontset-font t 'unicode \"Apple Color Emoji\")"

    Tor> and insert an emoji.  It will not be rendered by the Apple Color Emoji
    Tor> font.  This wasn't the case on the build from a week or two ago (and
    Tor> builds for many months before that).

I find that surprising, Iʼd expect it to never work. Can you identify
exactly when it changed? And please do

    (set-fontset-font t 'emoji \"Apple Color Emoji\")

What you have slows down font lookup for all codepoints.

    Tor> It works if I do not run Emacs in
    Tor> daemon mode or explicitly set the font after having connected a client.
    Tor> Is this a bug or is there another way I should specify the emoji font?

Emacs in daemon mode doesnʼt have a gui frame to work with, so things
like setting fonts tend not to work [1]. You can either use
`default-frame-alist' to set the `font' frame parameter, or you can
add code to `server-after-make-frame-hook' to set it.

Iʼm not saying there isnʼt a bug, but Iʼm not saying there is one
either 😀

Robert

Footnotes:
[1]  Iʼll admit to not understanding the attraction of daemon-mode,
     but I guess tastes differ.

-- 




Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 12 Nov 2022 20:58:04 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Sun, 03 Sep 2023 09:32:01 GMT) Full text and rfc822 format available.

Notification sent to Tor Kringeland <tor.kringeland <at> ntnu.no>:
bug acknowledged by developer. (Sun, 03 Sep 2023 09:32:01 GMT) Full text and rfc822 format available.

Message #15 received at 58632-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Tor Kringeland <tor.kringeland <at> ntnu.no>, 58632-done <at> debbugs.gnu.org
Subject: Re: bug#58632: Setting Apple's emoji font on macOS in daemon mode
Date: Sun, 3 Sep 2023 02:31:21 -0700
Robert Pluim <rpluim <at> gmail.com> writes:

>>>>>> On Wed, 19 Oct 2022 12:20:53 +0000, Tor Kringeland <tor.kringeland <at> ntnu.no> said:
>
>     Tor> Minimal reproducing example:
>     Tor> Run
>
>     Tor>   emacs -Q --daemon --eval "(set-fontset-font t 'unicode \"Apple Color Emoji\")"
>
>     Tor> and insert an emoji.  It will not be rendered by the Apple Color Emoji
>     Tor> font.  This wasn't the case on the build from a week or two ago (and
>     Tor> builds for many months before that).
>
> I find that surprising, Iʼd expect it to never work. Can you identify
> exactly when it changed? And please do
>
>     (set-fontset-font t 'emoji \"Apple Color Emoji\")
>
> What you have slows down font lookup for all codepoints.

More information was requested, but none was given within close to a
year, so I'm closing this bug.  If this is still an issue, please reply
to this email (use "Reply to all" in your email client) and we can
reopen the bug report.

>
>     Tor> It works if I do not run Emacs in
>     Tor> daemon mode or explicitly set the font after having connected a client.
>     Tor> Is this a bug or is there another way I should specify the emoji font?
>
> Emacs in daemon mode doesnʼt have a gui frame to work with, so things
> like setting fonts tend not to work [1]. You can either use
> `default-frame-alist' to set the `font' frame parameter, or you can
> add code to `server-after-make-frame-hook' to set it.
>
> Iʼm not saying there isnʼt a bug, but Iʼm not saying there is one
> either 😀
>
> Robert
>
> Footnotes:
> [1]  Iʼll admit to not understanding the attraction of daemon-mode,
>      but I guess tastes differ.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 01 Oct 2023 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 199 days ago.

Previous Next


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