From: Herbert Euler <herberteuler@hotmail.com>
To: <bug-gnu-emacs@gnu.org>
Subject: bug#2147: Default font in Emacs
Date: Mon, 2 Feb 2009 11:06:35 +0800 [thread overview]
Message-ID: <BAY143-W310FD2E108689FF598816ADAC50@phx.gbl> (raw)
Package: Emacs
Version: 23.0.90.1
Because I prefer the FreeMono font to the default font provided, I
tweak it in my ~/.emacs like this:
(let ((font (cond ((eq window-system 'w32)
"-outline-courier new-normal-r-normal-normal-16-120-96-96-c-*-fontset-auto2"
)
((eq window-system 'x)
"FreeMono-13"
))))
(set-default-font font)
(add-to-list 'default-frame-alist `(font . ,font)))
When I start emacs as a daemon:
$ emacs --daemon
The cons cell added to `default-frame-alist' seems to be '(font
. nil). This causes a segfault when running `emacsclient -c':
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb700f700 (LWP 28215)]
0x0806f438 in estimate_mode_line_height (f=0xa832b38, face_id=MODE_LINE_INACTIVE_FACE_ID) at xdisp.c:1646
1646 int height = FONT_HEIGHT (FRAME_FONT (f));
(gdb) p FRAME_FONT (f)
$1 = (struct font *) 0x0
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/photos.aspx
next reply other threads:[~2009-02-02 3:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200902020557.n125vJFY007048@rodan.ics.uci.edu>
2009-02-02 3:06 ` Herbert Euler [this message]
2009-02-02 6:05 ` bug#2147: marked as done (Default font in Emacs) Emacs bug Tracking System
2009-02-02 15:45 ` bug#2147: marked as done (Crash when adding (font . nil) to `default-frame-alist') Emacs bug Tracking System
2009-02-03 21:40 ` Emacs bug Tracking System
2009-02-06 16:55 ` Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY143-W310FD2E108689FF598816ADAC50@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=2147@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).