bug#24482: 25.1; font setting in ".emacs" is not respected

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#24482: 25.1; font setting in ".emacs" is not respected

me-3
--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))




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#24482: 25.1; font setting in ".emacs" is not respected

martin rudalics
 > 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



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#24482: 25.1; font setting in ".emacs" is not respected

Drew Adams
>  > 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



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#24482: 25.1; font setting in ".emacs" is not respected

npostavs
In reply to this post by me-3
merge 24482 25228
quit

[hidden email] 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)



Loading...