From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
To: Alan Third <alan@idiocy.org>
Cc: emacs-devel@gnu.org
Subject: Re: NS port crashes when interacting with the profiler on the menu bar
Date: Sun, 17 Jun 2018 16:54:44 +0100 [thread overview]
Message-ID: <CAKDRQS7PquRz6Drui8qP_LBSijtX_8WdEHiWg225ZVkr1DaA2g@mail.gmail.com> (raw)
In-Reply-To: <20180616114552.GB45123@breton.holly.idiocy.org>
[-- Attachment #1: Type: text/plain, Size: 1876 bytes --]
I have those fonts installed, but whether The way you produce the crash is
to visit a file with C-x C-f.
;; Commenting this line is makes the crash go away, 'prepend also makes the
crash go away
(set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil
'append)
(require 'all-the-icons)
;; This is the actual culprit. Even with 'append, not inserting the icon
into the mode line
;; after change major mode will not produce a crash.
(add-hook 'after-change-major-mode-hook
(lambda ()
(let* ((icon (all-the-icons-icon-for-mode major-mode))
(face-prop (and (stringp icon) (purecopy
(get-text-property 0 'face icon)))))
(when (and (stringp icon) (not (string= major-mode icon))
face-prop)
(setq mode-name icon)))))
On Sat, Jun 16, 2018 at 12:45 PM, Alan Third <alan@idiocy.org> wrote:
> On Fri, Jun 15, 2018 at 01:51:58AM +0100, Jimmy Yuen Ho Wong wrote:
> > I've finally isolated my problem with this code block:
> >
> > (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil
> > 'append)
> >
> > (use-package all-the-icons
> > :config
> > (add-hook 'after-change-major-mode-hook
> > (lambda ()
> > (let* ((icon (all-the-icons-icon-for-mode major-mode))
> > (face-prop (and (stringp icon) (purecopy
> > (get-text-property 0 'face icon)))))
> > (when (and (stringp icon) (not (string= major-mode icon))
> > face-prop)
> > (setq mode-name icon))))))
>
> I can’t get all-the-icons to work (it’s looking for memoize?), but I
> notice it comes with a bunch of fonts.
>
> Do you have those fonts installed? If so, does completely removing the
> set-fontset-font line for Apple Color Emoji still result in a crash?
> --
> Alan Third
>
[-- Attachment #2: Type: text/html, Size: 2824 bytes --]
prev parent reply other threads:[~2018-06-17 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKDRQS7Dz=CPF+2vbim2T1x-CePJZvETCUcS31kgKVLSOY9pcQ@mail.gmail.com>
2018-06-12 19:39 ` NS port crashes when interacting with the profiler on the menu bar Alan Third
2018-06-12 20:02 ` Jimmy Yuen Ho Wong
2018-06-13 19:57 ` Alan Third
2018-06-15 0:51 ` Jimmy Yuen Ho Wong
2018-06-16 11:45 ` Alan Third
2018-06-17 15:54 ` Jimmy Yuen Ho Wong [this message]
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=CAKDRQS7PquRz6Drui8qP_LBSijtX_8WdEHiWg225ZVkr1DaA2g@mail.gmail.com \
--to=wyuenho@gmail.com \
--cc=alan@idiocy.org \
--cc=emacs-devel@gnu.org \
/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.