GNU bug report logs - #24482
25.1; font setting in ".emacs" is not respected

Previous Next

Package: emacs;

Reported by: me <at> beroal.in.ua

Date: Tue, 20 Sep 2016 16:46:01 UTC

Severity: normal

Tags: patch

Merged with 25228, 26340, 40419, 40461

Found in versions 25.1, 26.0.50, 26.3

To reply to this bug, email your comments to 24482 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24482; Package emacs. (Tue, 20 Sep 2016 16:46:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to me <at> beroal.in.ua:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 20 Sep 2016 16:46:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: me <at> beroal.in.ua
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; font setting in ".emacs" is not respected
Date: Tue, 20 Sep 2016 19:24:53 +0300
--text follows this line--

I change the default font via "Easy Customization" and save it. The 
contents of the file
".emacs" is below.
{{{
(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 "Nimbus Roman" :foundry "UKWN" :slant normal 
:weight normal :height 201 :width normal)))))
}}}

After I restart Emacs, the font shown is not the font I chose. Actually,
I see how Emacs changes the font I chose to another font promptly.

This bug appeared after upgrading from 24.5 to 25.1.



In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9)
 of 2016-09-18 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft
 'CFLAGS=-march=x86-64 -mtune=generic -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 GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: uk_UA.utf8
  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

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message idna dired format-spec rfc822
mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core 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 charscript case-table epa-hook
jka-cmpr-hook help simple abbrev 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 89255 4158)
 (symbols 48 19778 0)
 (miscs 40 99 121)
 (strings 32 14457 4856)
 (string-bytes 1 414237)
 (vectors 16 11874)
 (vector-slots 8 436804 4847)
 (floats 8 164 55)
 (intervals 56 243 13)
 (buffers 976 20))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24482; Package emacs. (Tue, 20 Sep 2016 17:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 24482 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: me <at> beroal.in.ua, 24482 <at> debbugs.gnu.org
Subject: Re: bug#24482: 25.1; font setting in ".emacs" is not respected
Date: Tue, 20 Sep 2016 19:08:17 +0200
> I change the default font via "Easy Customization" and save it. The contents of the file
> ".emacs" is below.
> {{{
> (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 "Nimbus Roman" :foundry "UKWN" :slant normal :weight normal :height 201 :width normal)))))
> }}}
>
> After I restart Emacs, the font shown is not the font I chose. Actually,
> I see how Emacs changes the font I chose to another font promptly.
>
> This bug appeared after upgrading from 24.5 to 25.1.

See the thread "Note on e65c307 breaks font-height" on emacs-devel.

martin




Added indication that bug 24482 blocks21966 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 20 Sep 2016 17:18:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24482; Package emacs. (Tue, 20 Sep 2016 18:10:02 GMT) Full text and rfc822 format available.

Message #13 received at 24482 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: martin rudalics <rudalics <at> gmx.at>, me <at> beroal.in.ua, 24482 <at> debbugs.gnu.org
Subject: RE: bug#24482: 25.1; font setting in ".emacs" is not respected
Date: Tue, 20 Sep 2016 11:08:52 -0700 (PDT)
>  > This bug appeared after upgrading from 24.5 to 25.1.
> 
> See the thread "Note on e65c307 breaks font-height" on emacs-devel.

This is the thread, in case it helps someone:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00557.html




Removed indication that bug 24482 blocks Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 10 Oct 2016 10:36:02 GMT) Full text and rfc822 format available.

Added indication that bug 24482 blocks24655 Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 10 Oct 2016 10:36:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24482; Package emacs. (Mon, 17 Jul 2017 01:50:01 GMT) Full text and rfc822 format available.

Message #20 received at 24482 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: me <at> beroal.in.ua
Cc: 24482 <at> debbugs.gnu.org
Subject: Re: bug#24482: 25.1; font setting in ".emacs" is not respected
Date: Sun, 16 Jul 2017 21:51:02 -0400
merge 24482 25228
quit

me <at> beroal.in.ua writes:

> I change the default font via "Easy Customization" and save it. The
> contents of the file
> ".emacs" is below.
> {{{
> (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 "Nimbus Roman" :foundry "UKWN" :slant normal
> :weight normal :height 201 :width normal)))))
> }}}
>
> After I restart Emacs, the font shown is not the font I chose. Actually,
> I see how Emacs changes the font I chose to another font promptly.
>
> This bug appeared after upgrading from 24.5 to 25.1.

Possible workarounds are

    (define-key special-event-map [config-changed-event] #'ignore)

or

    (advice-add 'dynamic-setting-handle-config-changed-event :override #'ignore)




Merged 24482 25228 26340. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Mon, 17 Jul 2017 01:50:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24482; Package emacs. (Sat, 02 Sep 2017 14:02:01 GMT) Full text and rfc822 format available.

Message #25 received at 24482 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: npostavs <at> users.sourceforge.net
Cc: me <at> beroal.in.ua, 24482 <at> debbugs.gnu.org
Subject: Re: bug#24482: 25.1; font setting in ".emacs" is not respected
Date: Sat, 02 Sep 2017 17:00:59 +0300
unblock 24655 by 24482
thanks

> From: npostavs <at> users.sourceforge.net
> Date: Sun, 16 Jul 2017 21:51:02 -0400
> Cc: 24482 <at> debbugs.gnu.org
> 
> > After I restart Emacs, the font shown is not the font I chose. Actually,
> > I see how Emacs changes the font I chose to another font promptly.
> >
> > This bug appeared after upgrading from 24.5 to 25.1.
> 
> Possible workarounds are
> 
>     (define-key special-event-map [config-changed-event] #'ignore)
> 
> or
> 
>     (advice-add 'dynamic-setting-handle-config-changed-event :override #'ignore)

With workarounds available, and no GTK expert on board to help us find
a better fix, I don't think this problem should block the release of
Emacs 26.1.

Thanks.




Merged 24482 25228 26340 40419 40461. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 19 Apr 2020 12:46:01 GMT) Full text and rfc822 format available.

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 156 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.