GNU bug report logs -
#26340
26.0.50; default font not applied
Previous Next
To reply to this bug, email your comments to 26340 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26340
; Package
emacs
.
(Sun, 02 Apr 2017 14:26:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"fr.poulet" <fr.poulet <at> laposte.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 02 Apr 2017 14:26:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello, here is a little problem I have, I don't really
know how to fix or work around properly in my conf. I am running
emacs in X11.
- (optional) using an new empty login account to ensure no
configuration exists (no .emacs, .emacs.d, X11, fonts or
whatever)
- starting emacs
- selecting a default font in menu: Options/Set Default font...
- font is correctly applied
- saving the options in menu: Options/Save Options
- status bar indicates ~/.emacs is created
- exiting emacs
- the file .emacs (included below) is as expected
- starting emacs again
- the default font configuration is NOT applied as expected
(though the X11 window starts large and is resized as if the
configured font was applied then another default one overloads
it - just a guess though)
- doing M-x load-file with .emacs applies the correct font
- I added a (message "...") in the .emacs file and with the
--debug-init, I can see the file is correctly loaded, no errors
mentionned
The .emacs file :
(message "yolo")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:family "Bitstream Vera Sans Mono" :foundry "Bits" :slant normal :weight normal :height 120 :width normal)))))
This problem already exists in the default emacs version in
my linux distro (Arch Linux, emacs 25.1-4). The version I used
here was built from git (Arch Linux AUR, emacs-git 26.0.50.128822-1)
In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.10)
of 2017-04-02 built on pc19
Repository revision: a184a7edc58e1e053aa317a0f162df7e225597e1
Windowing system distributor 'The X.Org Foundation', version 11.0.11903000
System Description: Arch Linux
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
--with-sound=alsa --with-xft --with-modules --with-x-toolkit=gtk3
--without-gconf --with-gsettings 'CFLAGS=-march=native -O2 -pipe
-fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 MODULES LIBSYSTEMD
Important settings:
value of $LANG: en_US
locale-coding-system: iso-latin-1-unix
Major mode: Lisp Interaction
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
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 puny seq byte-opt subr-x gv
bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib
dired dired-loaddefs format-spec rfc822 mml easymenu 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 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 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 dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 96870 7564)
(symbols 48 20186 1)
(miscs 40 50 114)
(strings 32 17653 4543)
(string-bytes 1 564399)
(vectors 16 14656)
(vector-slots 8 483309 4287)
(floats 8 48 101)
(intervals 56 284 297)
(buffers 976 11))
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26340
; Package
emacs
.
(Sun, 02 Apr 2017 14:55:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 26340 <at> debbugs.gnu.org (full text, mbox):
"fr.poulet" <fr.poulet <at> laposte.net> writes:
> - the default font configuration is NOT applied as expected
> (though the X11 window starts large and is resized as if the
> configured font was applied then another default one overloads
> it - just a guess though)
Yes, I think this is a dup of #25228 "custom-set-faces from init file
~/.emacs ignored". Does adding
(define-key special-event-map [config-changed-event]
'dynamic-setting-handle-config-changed-event)
to your .emacs help?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26340
; Package
emacs
.
(Sun, 02 Apr 2017 19:43:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 26340 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 04/02/2017 04:55 PM, npostavs <at> users.sourceforge.net wrote:
> Yes, I think this is a dup of #25228 "custom-set-faces from init file
> ~/.emacs ignored". Does adding
>
> (define-key special-event-map [config-changed-event]
> 'dynamic-setting-handle-config-changed-event)
>
> to your .emacs help?
>
Hi, thanks for the quick reply. It looks indeed like a duplicate of #25228, sorry for not properly checking.
I did the change as you asked, but it didn't help. I also tried the workaround mentionned in the other bug:
(defalias 'dynamic-setting-handle-config-changed-event 'ignore)
and this one made it work (I removed your line).
Just to provide complete information, as it seems the problem is related to Gconf and Gnome stuff, I am using Xfce4 for my X11 environment.
Thanks,
François
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26340
; Package
emacs
.
(Sun, 02 Apr 2017 20:23:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 26340 <at> debbugs.gnu.org (full text, mbox):
merge 26340 25228
quit
"fr.poulet" <fr.poulet <at> laposte.net> writes:
> On 04/02/2017 04:55 PM, npostavs <at> users.sourceforge.net wrote:
>
> I did the change as you asked, but it didn't help. I also tried the workaround mentionned in the other bug:
>
> (defalias 'dynamic-setting-handle-config-changed-event 'ignore)
>
> and this one made it work (I removed your line).
Thanks for confirming. The reason my suggestion didn't work is because
I accidentally posted the code that *causes* the bug instead of the code
to fix it, oops! I should have said
(define-key special-event-map [config-changed-event] 'ignore)
as suggested in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228#152.
Merged 25228 26340.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Sun, 02 Apr 2017 20:23:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26340
; Package
emacs
.
(Mon, 03 Apr 2017 02:29:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 26340 <at> debbugs.gnu.org (full text, mbox):
> From: npostavs <at> users.sourceforge.net
> Date: Sun, 02 Apr 2017 16:23:40 -0400
> Cc: 26340 <at> debbugs.gnu.org
>
> "fr.poulet" <fr.poulet <at> laposte.net> writes:
>
> > On 04/02/2017 04:55 PM, npostavs <at> users.sourceforge.net wrote:
> >
> > I did the change as you asked, but it didn't help. I also tried the workaround mentionned in the other bug:
> >
> > (defalias 'dynamic-setting-handle-config-changed-event 'ignore)
> >
> > and this one made it work (I removed your line).
>
> Thanks for confirming. The reason my suggestion didn't work is because
> I accidentally posted the code that *causes* the bug instead of the code
> to fix it, oops! I should have said
>
> (define-key special-event-map [config-changed-event] 'ignore)
>
> as suggested in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228#152.
How about adding the description of the problem and its solution to
etc/PROBLEMS?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26340
; Package
emacs
.
(Mon, 03 Apr 2017 17:53:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 26340 <at> debbugs.gnu.org (full text, mbox):
npostavs <at> users.sourceforge.net writes:
>> I did the change as you asked, but it didn't help. I also tried the workaround mentionned in the other bug:
>>
>> (defalias 'dynamic-setting-handle-config-changed-event 'ignore)
>>
>> and this one made it work (I removed your line).
>
> Thanks for confirming. The reason my suggestion didn't work is because
> I accidentally posted the code that *causes* the bug instead of the code
> to fix it, oops! I should have said
>
> (define-key special-event-map [config-changed-event] 'ignore)
>
> as suggested in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228#152.
For me, this workaround only helps to keep the customizations the first
frame when emacs starts. If I create a new frame with C-x 5 2, the
customized font is ignored in the new frame. Does this happen to anyone
else?
-Bruce
Added tag(s) patch.
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 06 Mar 2025 09:27:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.