From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.devel Subject: Re: NS port crashes when interacting with the profiler on the menu bar Date: Sun, 17 Jun 2018 16:54:44 +0100 Message-ID: References: <20180612193933.GA889@breton.holly.idiocy.org> <124c265f-9c41-6041-8a7f-ba2e3fcabd07@gmail.com> <20180613195749.GA31667@breton.holly.idiocy.org> <20180616114552.GB45123@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ef3828056ed878a7" X-Trace: blaine.gmane.org 1529250791 28223 195.159.176.226 (17 Jun 2018 15:53:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 15:53:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 17 17:53:07 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUZzH-0007FB-Bm for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2018 17:53:07 +0200 Original-Received: from localhost ([::1]:55627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUa1O-0003mn-Ft for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2018 11:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUa1C-0003lY-7l for emacs-devel@gnu.org; Sun, 17 Jun 2018 11:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUa1B-0003D0-Ce for emacs-devel@gnu.org; Sun, 17 Jun 2018 11:55:06 -0400 Original-Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]:37887) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUa1B-0003Cu-6M for emacs-devel@gnu.org; Sun, 17 Jun 2018 11:55:05 -0400 Original-Received: by mail-it0-x233.google.com with SMTP id l6-v6so8852483iti.2 for ; Sun, 17 Jun 2018 08:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LgrGuXUy0nV3b0XF2WSTiyexMqdh4seqRQNhqDGh5Hg=; b=g8leUSAGaXmt7kvtpkbCd8qSr+tHrZuIH9bwVWh1agUrA0EalO7BLsfeTGtJnNK8fX FlNFgs5inP02MMjV/NNA7ekDztiBnJuOT+4wQWkWPr5e+etqBhq34Zri3JUQLOMa5WWA aQ0wRAObJlbb6O8c6CtLgxxiJznN+n9hqsZQdqqp4+6ze+5bjj4TO69cPpJhQpTzcYn1 btnKTWt3RP26b1un1at8vEVNqh9hnxxHXF43BmmqLgQQ5pwD0e36jTDdDkjeXs6W/79C vDfVFJeXj5/fYiZpPq8ib+1CQtPzt67n8V27lfGIpwGKDPTnt5pX35yUatXLep/qV+EI +hzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LgrGuXUy0nV3b0XF2WSTiyexMqdh4seqRQNhqDGh5Hg=; b=pfCv4p4ZnnC6LY5ESHuaKciWIfygdBAWS16vNQZp4BNsbeldtDPaBLRjld+zPGghCQ b926IIh6W3ldriunGBeowLWB7F6GzHR79vlu0VyWTlvZwX0okpqU6yKBLdM5GsvcpONV +Nw1Mub/hhygMkQXzx364mFycHPJGuQ6umXDzKvg1zaChtYbhIL07ZnjWo9eNeYD6UXT VempANtAchkiOB0dHua7+EPm1N/XWmWlZUA1FEZk8lhDzvHYIRpnot6gvByuRRUoPbkY A+3nbBYG3roUwbnzFeMqzjbp0DGR3o2S7f+X8wjTou3ZdK1Ye+4rMAZ7juajgnVwcHcm GAUg== X-Gm-Message-State: APt69E0XVI6yZeAyMoLwR75gQuihm2m/AqonSz1vObJIbYFetQl7cYgm v8Lz2z0wpG5yzhxufF6QRJB/wiTpG7aZIzFcgD1Wb/MQ X-Google-Smtp-Source: ADUXVKLAiEUkFdV77SVylvUD/f0bXjqxXmDhfQ6LdQk0rpqNyhjvIIqRS2U1jidkkD0kqZ5poP4Lb55a/9EUhOIR4BM= X-Received: by 2002:a02:996:: with SMTP id 22-v6mr7505164jam.145.1529250904485; Sun, 17 Jun 2018 08:55:04 -0700 (PDT) Original-Received: by 2002:a02:9869:0:0:0:0:0 with HTTP; Sun, 17 Jun 2018 08:54:44 -0700 (PDT) In-Reply-To: <20180616114552.GB45123@breton.holly.idiocy.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226413 Archived-At: --000000000000ef3828056ed878a7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D major-mode icon)) face-prop) (setq mode-name icon))))) On Sat, Jun 16, 2018 at 12:45 PM, Alan Third 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=3D major-mode ic= on)) > > face-prop) > > (setq mode-name icon)))))) > > I can=E2=80=99t get all-the-icons to work (it=E2=80=99s looking for memoi= ze?), 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 > --000000000000ef3828056ed878a7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have those fonts installed, but whether The way you prod= uce the crash is to visit a file with C-x C-f.

;; Comm= enting this line is makes the crash go away, 'prepend also makes the cr= ash go away
(set-fontset-font "fontset-default" &#= 39;unicode "Apple Color Emoji" nil 'append)
(require 'all-the-icons)

;; This i= s the actual culprit. Even with 'append, not inserting the icon into th= e mode line
;; after change major mode will not produce a crash.<= /div>
(add-hook 'after-change-major-mode-hook
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (lambda ()
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 (let* ((icon (all-the-icons-icon-for-mode major= -mode))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0(face-prop (and (stringp icon) (purecopy (get-text-prop= erty 0 'face icon)))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (when (and (stringp icon) (not (string=3D major-mode icon= )) face-prop)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (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
>=C2=A0 =C2=A0:config
>=C2=A0 =C2=A0(add-hook 'after-change-major-mode-hook
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(lambda ()
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let* ((icon (al= l-the-icons-icon-for-mode major-mode))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (face-prop (and (stringp icon) (purecopy
> (get-text-property 0 'face icon)))))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(when (an= d (stringp icon) (not (string=3D major-mode icon))
> face-prop)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(s= etq mode-name icon))))))

I can=E2=80=99t get all-the-icons to work (it=E2=80=99s 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

--000000000000ef3828056ed878a7--