--------------------------------------------------------------------------------------------
(create-fontset-from-fontset-spec
"-*-Bitstream Vera Sans Mono-*-*-*-*-14-*-*-*-*-*-fontset-xwin")
(dolist (charset '(han cjk-misc bopomofo gb18030))
(set-fontset-font "fontset-xwin"
charset
(font-spec :family "Microsoft YaHei" :size 14)))
(dolist (charset '(symbol arabic bengali devanagari gujarati hebrew kannada lao
malayalam oriya tamil telugu thai tibetan))
(set-fontset-font "fontset-xwin"
charset
(font-spec :family "Arial Unicode MS") nil 'append))
;; This makes scaling right: c-x c-[+-0]
(defadvice frame-notice-user-settings (before my:rescale-alist)
(message "set face-font-rescale-alist")
(setq face-font-rescale-alist '((".*[Hh]ei.*" . 1.2)
(".*雅黑*" . 1.2)
(".*Myungjo.*" . 1.2)
(".*Osaka.*" . 1.2))))
(ad-activate 'frame-notice-user-settings)
(setq initial-frame-alist '((top . 2) (left . 2)
(width . 100) (height . 63)
(menu-bar-lines . 1)
(tool-bar-lines . 0)))
(setq default-frame-alist '((foreground-color . "white")
(background-color . "black")
(cursor-color . "red")
(menu-bar-lines . 1)
(tool-bar-lines . 0)
(width . 100)
(height . 63)
(font . "fontset-xwin")))
(server-start)
--------------------------------------------------------------------------------------------
$ emacs
Fatal error 8: Floating point exception
Backtrace:
emacs[0x4f88b9]
emacs[0x4dfd2c]
emacs[0x4f75be]
emacs[0x4f7773]
emacs[0x4f7819]
/lib64/libpthread.so.0(+0x10680)[0x7ffa66960680]
emacs[0x413b18]
emacs[0x414b3f]
emacs[0x41ae45]
emacs[0x41f4c6]
emacs[0x4cdb8c]
emacs[0x5523a3]
emacs[0x587106]
emacs[0x551df2]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x5531e3]
emacs[0x5522a9]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x553078]
emacs[0x55325c]
emacs[0x550adb]
emacs[0x58afde]
emacs[0x58f82f]
emacs[0x41cc72]
emacs[0x4eb941]
emacs[0x4ec52a]
emacs[0x4ee0be]
emacs[0x5509c7]
emacs[0x4e031c]
emacs[0x5508bb]
...
Floating point exception
$
In GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, cairo version 1.14.2)
of 2015-10-31
Repository revision: b692d6aa4309360e5009e42a0cb1ba477775e333
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description: NAME=Gentoo
Configured using:
'configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --disable-dependency-tracking
--disable-silent-rules --libdir=/usr/lib64
--program-suffix=-emacs-25-vcs --infodir=/usr/share/info/emacs-25-vcs
--localstatedir=/var
--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
--with-gameuser=:gamestat --without-compress-install
--with-file-notification=inotify --enable-acl --with-dbus --with-gnutls
--with-gpm --with-hesiod --with-kerberos --with-kerberos5 --with-xml2
--without-selinux --without-wide-int --with-zlib --with-sound=alsa
--with-x --without-ns --without-gconf --without-gsettings
--without-toolkit-scroll-bars --with-gif --with-jpeg --with-png
--with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft
--with-cairo --without-libotf --without-m17n-flt --with-x-toolkit=no
GENTOO_PACKAGE=app-editors/emacs-vcs-25.0.9999-r1 EGIT_BRANCH=master
EGIT_VERSION=b692d6aa4309360e5009e42a0cb1ba477775e333 'CFLAGS=-O2
-march=native -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''
Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL
GNUTLS LIBXML2 FREETYPE XFT ZLIB X11
Important settings:
value of $LC_CTYPE: zh_CN.UTF-8
value of $LANG: en_US.iso88591
value of $XMODIFIERS: @im=fcitx
locale-coding-system: utf-8-unix
Major mode: Emacs-Lisp
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-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
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
Loading dictionary-init...done
For information about GNU Emacs and the GNU system, type C-h C-a.
set face-font-rescale-alist
Mark set
Mark deactivated
Making completion list...
Quit
Load-path shadows:
/usr/share/emacs/site-lisp/cjk-latex/thai-word hides /usr/share/emacs/25.0.50/lisp/language/thai-word
Features:
(shadow sort gnus-util mail-extr emacsbug message idna dired format-spec
rfc822 mml mml-sec 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 server advice site-gentoo preview-latex bbdb-autoloads bbdb
timezone tex-site auto-loads time-date mule-util china-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 font-render-setting cairo x multi-tty
make-network-process emacs)
Memory information:
((conses 16 87549 3351)
(symbols 48 19982 0)
(miscs 40 160 122)
(strings 32 15293 4423)
(string-bytes 1 464894)
(vectors 16 13206)
(vector-slots 8 552121 35334)
(floats 8 140 123)
(intervals 56 442 0)
(buffers 976 15)
(heap 1024 28358 931))