* bug#40419: 26.3; Custom font face not respected even after saving options to .emacs
@ 2020-04-03 20:12 Samuel Falvo II
2020-04-04 6:51 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Samuel Falvo II @ 2020-04-03 20:12 UTC (permalink / raw)
To: 40419
[-- Attachment #1: Type: text/plain, Size: 5281 bytes --]
From: kc5tja@arrl.net (Samuel A. Falvo II)
To: bug-gnu-emacs@gnu.org
Subject: 26.3; Custom font face not respected even after saving options to
.emacs
--text follows this line--
1. Launch Emacs under Pop_OS! 64-bit Linux.
2. M-x menu-set-font
3. Select your favorite font of choice (in my case, Pet Me 2Y Medium).
4. Select Options >> Save Options
5. C-x C-f ~/.emacs and make sure the file both exists and contains
the preferred font setting.
6. C-x C-c to exit out of Emacs.
7. Re-launch Emacs.
8. Observe **brief** moment in minibuffer when preferred font is in
effect, but then
reverts back to system default.
In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11)
of 2019-09-23, modified by Debian built on lgw01-amd64-032
Windowing system distributor 'The X.Org Foundation', version 11.0.12005000
System Description: Pop!_OS 19.10
Recent messages:
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50gforth.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --enable-libsystemd --with-pop=yes
--enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp
--with-sound=alsa --without-gconf --with-mailutils --build
x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
--libexecdir=/usr/lib --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd
--with-pop=yes
--enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp
--with-sound=alsa --without-gconf --with-mailutils --with-x=yes
--with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/emacs-wvqver/emacs-26.3+1=.
-fstack-protector-strong
-Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2
Important settings:
value of $LC_MONETARY: en_US.UTF-8
value of $LC_NUMERIC: en_US.UTF-8
value of $LC_TIME: en_US.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
global-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
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils speedbar sb-image ezimage
dframe easymenu elec-pair time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame 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 minibuffer 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 dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 103109 14256)
(symbols 48 21015 1)
(miscs 40 98 129)
(strings 32 30137 1607)
(string-bytes 1 791284)
(vectors 16 14680)
(vector-slots 8 512988 12032)
(floats 8 52 101)
(intervals 56 405 0)
(buffers 992 13))
--
Samuel A. Falvo II
[-- Attachment #2: Type: text/html, Size: 5950 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#40419: 26.3; Custom font face not respected even after saving options to .emacs
2020-04-03 20:12 bug#40419: 26.3; Custom font face not respected even after saving options to .emacs Samuel Falvo II
@ 2020-04-04 6:51 ` Eli Zaretskii
2020-04-05 0:19 ` Noam Postavsky
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2020-04-04 6:51 UTC (permalink / raw)
To: Samuel Falvo II; +Cc: 40419
> From: Samuel Falvo II <sam.falvo@gmail.com>
> Date: Fri, 3 Apr 2020 13:12:46 -0700
>
> 1. Launch Emacs under Pop_OS! 64-bit Linux.
> 2. M-x menu-set-font
> 3. Select your favorite font of choice (in my case, Pet Me 2Y Medium).
> 4. Select Options >> Save Options
> 5. C-x C-f ~/.emacs and make sure the file both exists and contains
> the preferred font setting.
> 6. C-x C-c to exit out of Emacs.
> 7. Re-launch Emacs.
> 8. Observe **brief** moment in minibuffer when preferred font is in effect, but then
> reverts back to system default.
This probably means something else resets the font after startup. Do
you have anything else in your ~/.emacs, besides the font setting
saved by the above recipe? could those additional customizations be
the culprit? Or maybe you have some system resources that require
specific fonts to be used by Emacs?
FWIW, I cannot reproduce this, the saved font setting is used when I
restart Emacs.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#40419: 26.3; Custom font face not respected even after saving options to .emacs
2020-04-04 6:51 ` Eli Zaretskii
@ 2020-04-05 0:19 ` Noam Postavsky
2020-04-05 16:28 ` Samuel Falvo II
0 siblings, 1 reply; 4+ messages in thread
From: Noam Postavsky @ 2020-04-05 0:19 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 40419, Samuel Falvo II
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Samuel Falvo II <sam.falvo@gmail.com>
>> Date: Fri, 3 Apr 2020 13:12:46 -0700
>>
>> 1. Launch Emacs under Pop_OS! 64-bit Linux.
>> 2. M-x menu-set-font
>> 3. Select your favorite font of choice (in my case, Pet Me 2Y Medium).
>> 4. Select Options >> Save Options
>> 5. C-x C-f ~/.emacs and make sure the file both exists and contains
>> the preferred font setting.
>> 6. C-x C-c to exit out of Emacs.
>> 7. Re-launch Emacs.
>> 8. Observe **brief** moment in minibuffer when preferred font is in effect, but then
>> reverts back to system default.
>
> This probably means something else resets the font after startup. Do
> you have anything else in your ~/.emacs, besides the font setting
> saved by the above recipe? could those additional customizations be
> the culprit? Or maybe you have some system resources that require
> specific fonts to be used by Emacs?
>
> FWIW, I cannot reproduce this, the saved font setting is used when I
> restart Emacs.
Maybe this is Bug#25228 "custom-set-faces from init file ~/.emacs
ignored"? Does adding
(define-key special-event-map [config-changed-event] 'ignore)
to .emacs help?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#40419: 26.3; Custom font face not respected even after saving options to .emacs
2020-04-05 0:19 ` Noam Postavsky
@ 2020-04-05 16:28 ` Samuel Falvo II
0 siblings, 0 replies; 4+ messages in thread
From: Samuel Falvo II @ 2020-04-05 16:28 UTC (permalink / raw)
To: Noam Postavsky; +Cc: 40419
[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]
I'll apply that change and see what happens.
Unfortunately, while it was a repeatable issue when I filed the bug, it
strangely started respecting my preferences as of mid-day yesterday. Could
be a race condition of some kind? I'll add the (define-key) and hopefully
it'll more consistently maintain preferences.
Thanks for looking into things. It's appreciated!
On Sat, Apr 4, 2020 at 5:19 PM Noam Postavsky <npostavs@gmail.com> wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Samuel Falvo II <sam.falvo@gmail.com>
> >> Date: Fri, 3 Apr 2020 13:12:46 -0700
> >>
> >> 1. Launch Emacs under Pop_OS! 64-bit Linux.
> >> 2. M-x menu-set-font
> >> 3. Select your favorite font of choice (in my case, Pet Me 2Y Medium).
> >> 4. Select Options >> Save Options
> >> 5. C-x C-f ~/.emacs and make sure the file both exists and contains
> >> the preferred font setting.
> >> 6. C-x C-c to exit out of Emacs.
> >> 7. Re-launch Emacs.
> >> 8. Observe **brief** moment in minibuffer when preferred font is in
> effect, but then
> >> reverts back to system default.
> >
> > This probably means something else resets the font after startup. Do
> > you have anything else in your ~/.emacs, besides the font setting
> > saved by the above recipe? could those additional customizations be
> > the culprit? Or maybe you have some system resources that require
> > specific fonts to be used by Emacs?
> >
> > FWIW, I cannot reproduce this, the saved font setting is used when I
> > restart Emacs.
>
> Maybe this is Bug#25228 "custom-set-faces from init file ~/.emacs
> ignored"? Does adding
>
> (define-key special-event-map [config-changed-event] 'ignore)
>
> to .emacs help?
>
>
>
--
Samuel A. Falvo II
[-- Attachment #2: Type: text/html, Size: 2520 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-04-05 16:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-03 20:12 bug#40419: 26.3; Custom font face not respected even after saving options to .emacs Samuel Falvo II
2020-04-04 6:51 ` Eli Zaretskii
2020-04-05 0:19 ` Noam Postavsky
2020-04-05 16:28 ` Samuel Falvo II
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).