From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#42539: 28.0.50 font face in mode line problem ? Date: Sat, 25 Jul 2020 21:21:36 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000707f6a05ab49005e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8601"; mail-complaints-to="usenet@ciao.gmane.io" To: 42539@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 25 21:22:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jzPkI-00028f-Ga for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jul 2020 21:22:10 +0200 Original-Received: from localhost ([::1]:55446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzPkH-0001EO-JB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jul 2020 15:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzPkA-0001EC-Jn for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 15:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzPkA-00029F-Ag for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 15:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzPkA-00019T-7G for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 15:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jul 2020 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42539 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15957049184415 (code B ref -1); Sat, 25 Jul 2020 19:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jul 2020 19:21:58 +0000 Original-Received: from localhost ([127.0.0.1]:51175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzPk5-000198-Pa for submit@debbugs.gnu.org; Sat, 25 Jul 2020 15:21:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzPk4-000191-Ah for submit@debbugs.gnu.org; Sat, 25 Jul 2020 15:21:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzPk4-0001Dt-3K for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 15:21:56 -0400 Original-Received: from mail-qv1-xf33.google.com ([2607:f8b0:4864:20::f33]:44573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzPk1-00028q-Sh for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 15:21:55 -0400 Original-Received: by mail-qv1-xf33.google.com with SMTP id di5so5662282qvb.11 for ; Sat, 25 Jul 2020 12:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zESFE+VSbmh96hGhoHf9Fe0836YwltOjadC12Cy/LQA=; b=k8v+m7UNrKDPqdvpG//G5iIXhU6hCRxS3I7RVjGb8EIf9DFPMB5WlS1mpajM9Gwa4o TcbYizRNmAT4ESlBoixrdiliCiZxYnG0hvW1F5+4xuBb5YnhIkzyqvIQ+VaKUJXyo2rn VaoM9t4VJFilQgVgWGP5jI0pqV41sqciMRD3rYRRvvZl8VRCn8G3oiS1k0i+19Mdko0n cj60nod/JDau5Y4Ol+L3HbF6Rt2mmqztSsE1ZvYuEgoufTTHULFt+zjfPLrgHWkWtc+c fdzVn8i6HooNGKe3GsFR7D1gsP5kOJNEVNQ/aUi+kou6A2E4J4kCS7AuHXzk7XF/NPD3 QiiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zESFE+VSbmh96hGhoHf9Fe0836YwltOjadC12Cy/LQA=; b=OJI7Xrztp7qPYU/liu973Vvn/7M8EIJd593U3qAt2Jvy9gS0qHSKtjIp/VKVJfC4bY vFg9msjvMuSn1xtZFl6exjZmFjtXRc8TYEsbFyE/5JDOqGMthWv1oyrk18e4XQxW5xRS oV+C/LhN49KRL+LbmZ45cNHMVaLS+bmZ6weP0ojo6h8ctlqjlM64er6Ll4MA4ncp43N3 PRZVRv3zoFrTRJ0HGGSp77syhyznyIIlRn7cWthl/DlYEAFd841icyVu3Zpm3nz9iKM6 tLoQk8lJeSWrkVq36y0EaJDzt+b+6aPxTjOpr81CQjApA39UcAeLv4fjBhrPdK9jymRb l0rQ== X-Gm-Message-State: AOAM530K1Wvdg0YvpN6iHOYnlIPrWEKON46RhqhHrhnN2SBubllMa2cZ gAjJ50nw4ukogrdwzwVZK/ejL2SqHk5ICYZRHN1CHG1CjzQ= X-Google-Smtp-Source: ABdhPJxH2JKqSeqdF+BMIpBIjRLwMSg1Z1BkPKVEYvhXOL5aH9z2GPHAQ1OWDvc5GxGRURp3MQ9M8eA/rK1kv2tWdfA= X-Received: by 2002:a0c:f214:: with SMTP id h20mr15283709qvk.131.1595704911886; Sat, 25 Jul 2020 12:21:51 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::f33; envelope-from=fabrice.popineau@gmail.com; helo=mail-qv1-xf33.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183545 Archived-At: --000000000000707f6a05ab49005e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I was trying elegant-emacs from: https://github.com/rougier/elegant-emacs and I hit a problem with displaying the =E2=98=B0 character in the mode lin= e. With elegant-emacs, it is simply replaced with its code (2630 hex) The code involved is: ><-------------------------------------------------------------------------= ----------->< (set-face-font 'default "Roboto Mono Light 14") (set-fontset-font "fontset-default" '(#x2600 . #x26ff) "Fira Code 16") (defun mode-line-render (left right) (let* ((available-width (- (window-width) (length left) ))) (format (format "%%s %%%ds" available-width) left right))) (setq-default mode-line-format '((:eval (mode-line-render (format-mode-line (list (propertize "=E2=98=B0" 'face `(:inherit mode-line-buffer-id) 'help-echo "Mode(s) menu" 'mouse-face 'mode-line-highlight 'local-map mode-line-major-mode-keymap) " %b " (if (and buffer-file-name (buffer-modified-p)) (propertize "(modified)" 'face `(:inherit face-faded))))) (format-mode-line (propertize "%4l:%2c " 'face `(:inherit face-faded))))))) ><-------------------------------------------------------------------------= ----------->< When evalutating this code from `emacs -Q', the intended character is never displayed (I assume that it is because it is not looked in the Fira Code font) So I tried the following with `emacs -Q' : (set-face-font 'default "Roboto Mono Light 14") (set-fontset-font "fontset-default" '(#x2600 . #x26ff) "Fira Code 16") (setq-default mode-line-format '("=E2=98=B0 %b")) and the =E2=98=B0 is displayed in the mode line, but not in the mode line o= f a second window if I split the window in 2 windows. Any help welcome here. Best regards, Fabrice In GNU Emacs 28.0.50 (build 3, x86_64-w64-mingw32) of 2020-07-25 built on CIBOLA Repository revision: ea3e1ed03719bf31bd72edfdc66c5c10e6634202 Repository branch: windows Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Education (v10.0.2009.19042.421) Configured using: 'configure --prefix=3D/c/Local/Emacs --without-imagemagick' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 Important settings: value of $LANG: fr_FR.UTF-8 locale-coding-system: cp1252 Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify dbusbind w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 242474 25276) (symbols 48 6473 1) (strings 32 17250 1474) (string-bytes 1 526893) (vectors 16 34742) (vector-slots 8 635323 22588) (floats 8 27 293) (intervals 56 350 15) (buffers 992 13)) --000000000000707f6a05ab49005e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I was trying elegant-emacs from:
and I hit a problem with displayin= g the =E2=98=B0 character in the mode line.
With elegant-emacs, i= t is simply replaced with its code (2630 hex)
The code involved i= s:

><---------------------------------------= ---------------------------------------------><
(set-face-f= ont 'default "Roboto Mono Light 14")

(set-fontset-font= "fontset-default" =C2=A0'(#x2600 . #x26ff) "Fira Code 1= 6")

(defun mode-line-render (left right)
=C2=A0 (let* ((avai= lable-width (- (window-width) (length left) )))
=C2=A0 =C2=A0 (format (f= ormat "%%s %%%ds" available-width) left right)))

(setq-def= ault mode-line-format
=C2=A0 =C2=A0 =C2=A0'((:eval
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 (mode-line-render
(format-mode-line
=C2=A0(list
= =C2=A0 (propertize "=E2=98=B0" 'face `(:inherit mode-line-b= uffer-id)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0'help-echo "Mode(s) menu"
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&#= 39;mouse-face 'mode-line-highlight
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'local-map =C2=A0 m= ode-line-major-mode-keymap)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&qu= ot; %b "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if (and buffer-f= ile-name (buffer-modified-p))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(propertize "(modified)" 'face `(:inherit face-f= aded)))))
(format-mode-line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (pro= pertize "%4l:%2c =C2=A0" 'face `(:inherit face-faded)))))))
><-------------------------------------------------= -----------------------------------><
When= evalutating this code from `emacs -Q', the intended character is never= displayed (I assume that it is because it is not looked in the Fira Code f= ont)

So I tried the following with `emacs -Q' = :

(set-face-font 'default "Roboto Mono Light 14"= ;)
(set-fontset-font "fontset-default" =C2=A0'(= #x2600 . #x26ff) "Fira Code 16")
(setq-default mode= -line-format '("=E2=98=B0 %b"))

= and the =E2=98=B0 is displayed in the mode line, but not in the mode line o= f a second window if I split the window in 2 windows.

<= div>Any help welcome here.

Best regards,

Fabrice



In GNU Emacs 28.0.50 (build 3= , x86_64-w64-mingw32)
=C2=A0of 2020-07-25 built on CIBOLA
Repository = revision: ea3e1ed03719bf31bd72edfdc66c5c10e6634202
Repository branch: wi= ndows
Windowing system distributor 'Microsoft Corp.', version 10= .0.19042
System Description: Microsoft Windows 10 Education (v10.0.2009.= 19042.421)

Configured using:
=C2=A0'configure --prefix=3D/c/L= ocal/Emacs --without-imagemagick'

Configured features:
XPM JP= EG TIFF GIF PNG RSVG SOUND DBUS NOTIFY W32NOTIFY ACL GNUTLS
LIBXML2 HARF= BUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER
LCMS2

= Important settings:
=C2=A0 value of $LANG: fr_FR.UTF-8
=C2=A0 locale-= coding-system: cp1252

Major mode: ELisp/d

Minor modes in effe= ct:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldo= c-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-sh= adow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2= =A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 li= ne-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows= :
None found.

Features:
(shadow sort mail-extr emacsbug messag= e rmc puny dired dired-loaddefs
rfc822 mml easymenu mml-sec password-cac= he epa derived epg epg-config
gnus-util rmail rmail-loaddefs text-proper= ty-search time-date subr-x seq
byte-opt gv bytecomp byte-compile cconv m= m-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mai= lheader cl-loaddefs cl-lib
sendmail rfc2047 rfc2045 ietf-drums mm-util m= ail-prsvr mail-utils
tooltip eldoc electric uniquify ediff-hook vc-hooks= lisp-float-type
mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win = w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringetabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-m= ode register page tab-bar menu-bar rfn-eshadow isearch timer
select scro= ll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-color= s frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnam= ese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew gr= eek romanian slovak czech european ethiopic indian
cyrillic chinese comp= osite charscript charprop case-table epa-hook
jka-cmpr-hook help simple = abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macro= exp files text-properties overlay sha1 md5
base64 format env code-pages = mule custom widget hashtable-print-readable
backquote threads w32notify = dbusbind w32 lcms2 multi-tty
make-network-process emacs)

Memory i= nformation:
((conses 16 242474 25276)
=C2=A0(symbols 48 6473 1)
= =C2=A0(strings 32 17250 1474)
=C2=A0(string-bytes 1 526893)
=C2=A0(ve= ctors 16 34742)
=C2=A0(vector-slots 8 635323 22588)
=C2=A0(floats 8 2= 7 293)
=C2=A0(intervals 56 350 15)
=C2=A0(buffers 992 13))
<= /div> --000000000000707f6a05ab49005e--