GNU bug report logs -
#2147
Crash when adding (font . nil) to `default-frame-alist'
Previous Next
Reported by: Herbert Euler <herberteuler <at> hotmail.com>
Date: Mon, 2 Feb 2009 03:15:03 UTC
Severity: normal
Found in version 23.0.90.1
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #21 received at 2147-done <at> emacsbugs.donarmstrong.com (full text, mbox):
>> 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':
>
> Emacs just does what you told him to. The same problem happens if you
> start "emacs -nw" and then M-x make-frame-on-display.
> In both cases `window-system' is neither `w32' nor `x' so your `font'
> variable is set to nil.
Hehe, when I combined the code in my config file that is currently not
suitable to use with terminal and the daemon usage, my intention was
really not to tell Emacs to crash :)
I've changed my config file to avoid the crash and feel okay with it,
though I think in general having to change application code to avoid
certain problems such as an unnecessary crash usually indicates a
shortcoming of the program the application uses/relies on.
Regards,
Guanpeng Xu
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/photos.aspx
This bug report was last modified 16 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.