* bug#18869: 25.0.50; Font-related problems when starting with --daemon
@ 2014-10-28 10:34 Peder O. Klingenberg
2014-10-29 14:46 ` Dmitry Antipov
0 siblings, 1 reply; 5+ messages in thread
From: Peder O. Klingenberg @ 2014-10-28 10:34 UTC (permalink / raw)
To: 18869; +Cc: peder
Emacs was built from a checkout of the (git mirror of) emacs trunk as of
2014-10-27 (latest commit:
Author: Katsumi Yamaoka <yamaoka@jpl.org>
Date: Mon Oct 27 12:51:18 2014 +0900
)
I have recently switched my default font, and through experimentation,
found that I liked what I saw when I eval'ed (set-face-attribute
'default nil :font "Monospace-11") in a running emacs. So I added that
to my init file. Starting emacs normally works fine.
However, emacs --daemon now fails to start up. Steps
to reproduce:
pok@luna:/opt/software/emacs/emacs-git$ src/emacs -Q --daemon=test --eval="(set-face-attribute 'default nil :font \"Monospace-11\")"
Starting Emacs daemon.
Backtrace:
src/emacs[0x50767b]
src/emacs[0x4e82ad]
src/emacs[0x5075ee]
src/emacs[0x508eb3]
src/emacs[0x508f35]
/lib/libpthread.so.0(+0xf8f0)[0x7f29696d08f0]
src/emacs[0x572be7]
src/emacs[0x5790e4]
src/emacs[0x5799fb]
src/emacs[0x4ba865]
src/emacs[0x4b97e1]
src/emacs[0x565477]
src/emacs[0x59be4d]
src/emacs[0x564ee6]
src/emacs[0x5642db]
src/emacs[0x5645da]
src/emacs[0x56645a]
src/emacs[0x5654a4]
src/emacs[0x59be4d]
src/emacs[0x565204]
src/emacs[0x59be4d]
src/emacs[0x565204]
src/emacs[0x59be4d]
src/emacs[0x5642db]
src/emacs[0x5645da]
src/emacs[0x56645a]
src/emacs[0x563e1b]
src/emacs[0x4f5dd6]
src/emacs[0x563f68]
src/emacs[0x4f5b25]
src/emacs[0x4f5bd5]
src/emacs[0x4f5d3d]
src/emacs[0x4ea7d8]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f2966eedc8d]
src/emacs[0x413b99]
Error: server did not start correctly
After this the emacs process crashed, leaving a core dump. gdb-ing this
core file was not exactly helpful:
pok@luna:/opt/software/emacs/emacs-git/src$ gdb --core=../core
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
[New Thread 21850]
[New Thread 21851]
Core was generated by `src/emacs -Q --daemon=test --eval=(set-face-attribute 'default nil :font "Monos'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f29696d07bb in ?? ()
/opt/software/emacs/emacs-git/src/.gdbinit:19: Error in sourced command file:
No symbol table is loaded. Use the "file" command.
(gdb) bt full
#0 0x00007f29696d07bb in ?? ()
No symbol table info available.
#1 0x00000000004e82d5 in ?? ()
No symbol table info available.
#2 0x0000000000000400 in ?? ()
No symbol table info available.
#3 0x0000000000000000 in ?? ()
No symbol table info available.
Starting emacs normally and doing M-x describe-font<RET><RET> tells me
it's using "-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1".
So I tried using that instead when starting the daemon:
pok@luna:/opt/software/emacs/emacs-git$ src/emacs -Q --daemon=test --eval="(set-face-attribute 'default nil :font \"-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1\")"
Starting Emacs daemon.
And there it hangs. I can C-c to get the shell prompt back, and the
emacs process is still running, but I can't connect to it with
emacsclient:
pok@luna:/opt/software/emacs/emacs-git$ ps -ef |grep emacs | grep test
pok 21871 1 0 10:20 ? 00:00:00 src/emacs -Q --daemon=test --eval=(set-face-attribute 'default nil :font "-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1")
pok@luna:/opt/software/emacs/emacs-git$ emacsclient -nc -s test
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: error accessing socket "test"
I can attach a gdb to it:
(gdb) bt full
#0 0x00007f88fb2fcf0e in pselect () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000005de63a in xg_select (fds_lim=8, rfds=0x7fff16526f40,
wfds=0x7fff16526ec0, efds=<value optimized out>, timeout=<value optimized out>,
sigmask=<value optimized out>) at xgselect.c:105
all_rfds = {
fds_bits = {128, 0 <repeats 15 times>}
}
all_wfds = {
fds_bits = {0 <repeats 16 times>}
}
tmo = {
tv_sec = 1414488023,
tv_nsec = 896240894
}
tmop = 0x7fff16527200
context = 0x13eb970
have_wfds = <value optimized out>
gfds_buf = {{
fd = 7,
events = 1,
revents = 0
}, {
fd = 5,
events = 0,
revents = 0
}, {
fd = 10008000,
events = 0,
revents = 0
}, {
fd = 5881421,
events = 0,
revents = 0
}, {
fd = 10,
events = 0,
revents = 0
}, {
fd = 10,
events = 0,
revents = 0
}, {
fd = 10009456,
events = 0,
revents = 0
}, {
fd = 374499208,
events = 32767,
revents = 0
}, {
fd = 11171523,
events = 0,
revents = 0
}, {
fd = 10009401,
events = 0,
revents = 0
}, {
fd = 11171510,
events = 0,
revents = 0
}, {
fd = 374499856,
events = 32767,
revents = 0
}, {
fd = 13,
events = 0,
revents = 0
}, {
fd = -991970560,
events = 25264,
revents = 20706
}, {
fd = 10008000,
events = 0,
revents = 0
}, {
fd = 11728984,
events = 0,
revents = 0
}, {
fd = 288,
---Type <return> to continue, or q <return> to quit---
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 3,
events = 0,
revents = 0
}, {
fd = 374499496,
events = 32767,
revents = 0
}, {
fd = 374499600,
events = 32767,
revents = 0
}, {
fd = 5654622,
events = 0,
revents = 0
}, {
fd = 16817782,
events = 0,
revents = 0
}, {
fd = 10007864,
events = 0,
revents = 0
}, {
fd = 10007869,
events = 0,
revents = 0
}, {
fd = 10007736,
events = 0,
revents = 0
}, {
fd = 3,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 3,
revents = 0
}, {
fd = 9,
events = 0,
revents = 0
}, {
fd = 10009401,
events = 0,
revents = 0
}, {
fd = 10009453,
events = 0,
revents = 0
}, {
fd = 16,
events = 0,
revents = 0
}, {
fd = 374499776,
events = 32767,
revents = 0
}, {
fd = 20589968,
events = 0,
revents = 0
}, {
fd = 20589648,
events = 0,
revents = 0
}, {
fd = 1,
events = 0,
revents = 0
}, {
fd = 10007864,
---Type <return> to continue, or q <return> to quit---
events = 0,
revents = 0
}, {
fd = 10009390,
events = 0,
revents = 0
}, {
fd = -991970560,
events = 25264,
revents = 20706
}, {
fd = 2,
events = 0,
revents = 0
}, {
fd = 8841606,
events = 0,
revents = 0
}, {
fd = 56,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 5,
events = 0,
revents = 0
}, {
fd = 10009144,
events = 0,
revents = 0
}, {
fd = 374499744,
events = 32767,
revents = 0
}, {
fd = 5666097,
events = 0,
revents = 0
}, {
fd = 10009510,
events = 0,
revents = 0
}, {
fd = 12331938,
events = 0,
revents = 0
}, {
fd = 12331938,
events = 0,
revents = 0
}, {
fd = 374499952,
events = 32767,
revents = 0
}, {
fd = 143,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 5584802,
events = 0,
revents = 0
}, {
fd = 192,
events = 0,
revents = 0
}, {
fd = 5647940,
events = 0,
revents = 0
}, {
fd = 374499616,
---Type <return> to continue, or q <return> to quit---
events = 32767,
revents = 0
}, {
fd = 3,
events = 0,
revents = 0
}, {
fd = 374499952,
events = 32767,
revents = 0
}, {
fd = 143,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 5,
events = 0,
revents = 0
}, {
fd = 10009144,
events = 0,
revents = 0
}, {
fd = 5881503,
events = 0,
revents = 0
}, {
fd = 374500016,
events = 32767,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 10009374,
events = 0,
revents = 0
}, {
fd = 10009494,
events = 0,
revents = 0
}, {
fd = 16817782,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 2,
events = 0,
revents = 0
}, {
fd = 6,
events = 0,
revents = 0
}, {
fd = 6,
events = 0,
revents = 0
}, {
fd = 10009144,
events = 0,
revents = 0
}, {
fd = 374499768,
events = 32767,
revents = 0
}, {
fd = 11171669,
events = 0,
revents = 0
}, {
fd = 10009105,
---Type <return> to continue, or q <return> to quit---
events = 0,
revents = 0
}, {
fd = 11171524,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 6,
events = 0,
revents = 0
}, {
fd = -991970560,
events = 25264,
revents = 20706
}, {
fd = 20273869,
events = 0,
revents = 0
}, {
fd = 10009056,
events = 0,
revents = 0
}, {
fd = 10009061,
events = 0,
revents = 0
}, {
fd = 10003664,
events = 0,
revents = 0
}, {
fd = 1,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 5656294,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 9017221,
events = 0,
revents = 0
}, {
fd = 374500264,
events = 32767,
revents = 0
}, {
fd = 20589808,
events = 0,
revents = 0
}, {
fd = 20589648,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 1,
events = 0,
revents = 0
}, {
fd = 12331890,
---Type <return> to continue, or q <return> to quit---
events = 0,
revents = 0
}, {
fd = 5552614,
events = 0,
revents = 0
}, {
fd = 2,
events = 0,
revents = 0
}, {
fd = 167772160,
events = 0,
revents = 16384
}, {
fd = 1056964608,
events = 0,
revents = 16384
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 374500304,
events = 32767,
revents = 0
}, {
fd = 5707835,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 41,
events = 0,
revents = 0
}, {
fd = 374500264,
events = 32767,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 16817782,
events = 0,
revents = 0
}, {
fd = 20589648,
events = 0,
revents = 0
}, {
fd = 20589744,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 42730790,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 12331890,
events = 0,
revents = 0
}, {
fd = 42730789,
events = 0,
revents = 0
}, {
fd = 1,
---Type <return> to continue, or q <return> to quit---
events = 0,
revents = 0
}, {
fd = 374500328,
events = 32767,
revents = 0
}, {
fd = 1,
events = 0,
revents = 0
}, {
fd = 42730774,
events = 0,
revents = 0
}, {
fd = 42730785,
events = 0,
revents = 0
}, {
fd = 374500272,
events = 32767,
revents = 0
}, {
fd = 375387924,
events = 32767,
revents = 0
}}
gfds = <value optimized out>
n_gfds = <value optimized out>
retval = <value optimized out>
our_fds = <value optimized out>
max_fds = <value optimized out>
i = <value optimized out>
nfds = 374500384
tmo_in_millisec = -1
sa_must_free = false
#2 0x00000000005a45a6 in wait_reading_process_output (time_limit=<value optimized out>,
nsecs=<value optimized out>, read_kbd=-1, do_display=<value optimized out>,
wait_for_cell=12331890, wait_proc=0x0, just_wait_proc=0) at process.c:4602
timeout_reduced_for_timers = false
channel = -514
nfds = <value optimized out>
Available = {
fds_bits = {0 <repeats 16 times>}
}
Writeok = {
fds_bits = {0 <repeats 16 times>}
}
check_write = true
check_delay = 0
no_avail = 2
xerrno = 4
proc = <value optimized out>
timeout = {
tv_sec = 100000,
tv_nsec = 0
}
end_time = {
tv_sec = 0,
tv_nsec = 0
}
got_some_input = <value optimized out>
#3 0x00000000004f8bfe in kbd_buffer_get_event (commandflag=<value optimized out>,
map=<value optimized out>, prev_event=<value optimized out>,
used_mouse_menu=<value optimized out>, end_time=0x0) at keyboard.c:3953
No locals.
#4 read_event_from_main_queue (commandflag=<value optimized out>,
map=<value optimized out>, prev_event=<value optimized out>,
used_mouse_menu=<value optimized out>, end_time=0x0) at keyboard.c:2254
save_jump = {{
__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0},
__mask_was_saved = 0,
__saved_mask = {
__val = {0 <repeats 16 times>}
}
}}
kb = <value optimized out>
#5 read_decoded_event_from_main_queue (commandflag=<value optimized out>,
map=<value optimized out>, prev_event=<value optimized out>,
used_mouse_menu=<value optimized out>, end_time=0x0) at keyboard.c:2320
frame = <value optimized out>
terminal = <value optimized out>
events = {0 <repeats 16 times>}
n = <value optimized out>
---Type <return> to continue, or q <return> to quit---
#6 read_char (commandflag=<value optimized out>, map=<value optimized out>,
prev_event=<value optimized out>, used_mouse_menu=<value optimized out>,
end_time=0x0) at keyboard.c:2916
c = <value optimized out>
local_getcjmp = {{
__jmpbuf = {20589712, -4161914647908252293, 20589680, 0, 12383680, 0,
4162388735646041467, -4161912394306091653},
__mask_was_saved = 0,
__saved_mask = {
__val = {5828329379127606016, 12364178, 12364178, 140733567891440,
12358405, 18446744073709551615, 4, 140733567891048, 5624893, 0, 0, 0,
12358400, 12358400, 0, 1}
}
}}
save_jump = {{
__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0},
__mask_was_saved = 0,
__saved_mask = {
__val = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5991539, 0, 12541058, 4, 12364178,
0}
}
}}
tem = <value optimized out>
save = <value optimized out>
previous_echo_area_message = 12331890
also_record = 12331890
reread = false
polling_stopped_here = true
orig_kboard = 0xbcf5c0
#7 0x00000000004fb0e3 in read_key_sequence (keybuf=<value optimized out>,
prompt=<value optimized out>, dont_downcase_last=<value optimized out>,
can_return_switch_frame=<value optimized out>,
fix_current_buffer=<value optimized out>, prevent_redisplay=<value optimized out>,
bufsize=<value optimized out>) at keyboard.c:9193
interrupted_kboard = 0xbcf5c0
key = <value optimized out>
used_mouse_menu = false
echo_local_start = 0
t = 0
echo_start = 0
keys_start = 0
current_binding = 42732134
fkey = {
parent = 15689094,
map = 15689094,
start = 0,
end = 0
}
keytran = {
parent = 12312134,
map = 12312134,
start = 0,
end = 0
}
indec = {
parent = 15689110,
map = 15689110,
start = 0,
end = 0
}
shift_translated = false
original_uppercase = 20589680
#8 0x00000000004fc532 in command_loop_1 () at keyboard.c:1462
cmd = 20589680
keybuf = {140733567892216, 2, 140226419238016, 5828329379127606016,
140733567892232, 4611686018628714496, 20258114, 2, 4611686018595160064,
4611686019484352512, 140733567892352, 19512006, 140733567892288, 16383282,
12331890, 4000, 4294967295, 5658116, 12379474, 19512006, 8692385, 16383282,
140733567892288, 5199862, 12379522, 19512006, 12331890, 5200228, 12331776,
5828329379127606016}
i = 20589680
prev_modiff = 0
prev_buffer = 0x0
#9 0x0000000000563e1b in internal_condition_case (bfun=<value optimized out>,
handlers=<value optimized out>, hfun=<value optimized out>) at eval.c:1344
val = -514
c = <value optimized out>
#10 0x00000000004f5e0e in command_loop_2 (ignore=<value optimized out>)
at keyboard.c:1197
val = -514
#11 0x0000000000563f68 in internal_catch (tag=12379522, func=<value optimized out>,
arg=<value optimized out>) at eval.c:1105
val = -514
c = <value optimized out>
---Type <return> to continue, or q <return> to quit---
#12 0x00000000004f5b3d in command_loop () at keyboard.c:1176
No locals.
#13 0x00000000004f5bd5 in recursive_edit_1 () at keyboard.c:786
val = <value optimized out>
#14 0x00000000004f5d3d in Frecursive_edit () at keyboard.c:857
buffer = <value optimized out>
#15 0x00000000004ea7d8 in main (argc=4, argv=0x7fff16527e38) at emacs.c:1623
dummy = 140226419014056
stack_bottom_variable = 0 '\000'
do_initial_setlocale = <value optimized out>
dumping = <value optimized out>
skip_args = 1
rlim = {
rlim_cur = 8720000,
rlim_max = 18446744073709551615
}
no_loadup = false
junk = 0x0
dname_arg = 0x7fff1652983f "test"
ch_to_dir = 0x5f4560 "H\211l$\330L\211d$\340H\215-..µ$"
original_pwd = 0x4 <Address 0x4 out of bounds>
(gdb) xbacktrace
(gdb)
When running through my normal .emacs, with the long font name instead
of just "Monospace-11", I found that the server started normally, but
the parts of my .emacs after the (set-face-attribute 'default nil :font
...) were not evaluated.
As a final data point: I have various X resources set to use
Monospace-11:
Emacs*font: Monospace-11
Emacs*menubar*Font: Monospace-11
Emacs*popup*Font: Monospace-11
starting from 'emacs -Q', doing 'M-: (setq confirm-kill-emacs 'y-or-n-p)'
and using the mouse to click on the window close, triggers a popup
asking "Really exit Emacs?" (as expected) and a warning "Warning: Cannot
convert string "Monospace-11" to type FontStruct" in the shell where
Emacs was started (not expected).
It seems that just relying on X resources works for me, so I have a
perfectly good workaround - I have just removed the font-setting from
my .emacs - but perhaps this can be fixed more elegantly upstream. Let
me know if there's more info I can provide.
In GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2014-10-27 on luna
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
System Description: Ubuntu 10.04.4 LTS
Configured using:
`configure --prefix=/usr/local/emacs-git
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.0.92/site-lisp:/usr/local/share/emacs/site-lisp/:/usr/share/emacs/24.0.92/site-lisp:/usr/share/emacs/site-lisp
--with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars
--with-pop=yes'
Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF NOTIFY
GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
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
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> M-x r e p o <tab>
r t <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-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 cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting x-toolkit x multi-tty emacs)
Memory information:
((conses 16 76698 6867)
(symbols 48 18057 0)
(miscs 40 42 88)
(strings 32 11851 4424)
(string-bytes 1 304623)
(vectors 16 10050)
(vector-slots 8 392497 13400)
(floats 8 76 243)
(intervals 56 221 6)
(buffers 976 12)
(heap 1024 41441 720))
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18869: 25.0.50; Font-related problems when starting with --daemon
2014-10-28 10:34 bug#18869: 25.0.50; Font-related problems when starting with --daemon Peder O. Klingenberg
@ 2014-10-29 14:46 ` Dmitry Antipov
2014-10-29 17:59 ` Peder O. Klingenberg
2014-10-30 0:50 ` Stefan Monnier
0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Antipov @ 2014-10-29 14:46 UTC (permalink / raw)
To: Peder O. Klingenberg; +Cc: 18869
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
On 10/28/2014 01:34 PM, Peder O. Klingenberg wrote:
> I have recently switched my default font, and through experimentation,
> found that I liked what I saw when I eval'ed (set-face-attribute
> 'default nil :font "Monospace-11") in a running emacs. So I added that
> to my init file. Starting emacs normally works fine.
>
> However, emacs --daemon now fails to start up.
Please try this.
Dmitry
[-- Attachment #2: bug18869.patch --]
[-- Type: text/x-diff, Size: 824 bytes --]
=== modified file 'src/xfaces.c'
--- src/xfaces.c 2014-10-12 22:56:45 +0000
+++ src/xfaces.c 2014-10-29 14:42:46 +0000
@@ -3116,9 +3116,10 @@
/* FIXME:
If frame is t, and selected frame is a tty frame, the font
can't be realized. An improvement would be to loop over frames
- for a non-tty frame and use that. See discussion in
- bug#18573. */
- if (f->terminal->type != output_termcap)
+ for a non-tty frame and use that. See discussion in Bug#18573.
+ For a daemon, frame may be an initial frame (Bug#18869). */
+ if (f->terminal->type != output_termcap
+ && f->terminal->type != output_initial)
{
if (! FONT_OBJECT_P (value))
{
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18869: 25.0.50; Font-related problems when starting with --daemon
2014-10-29 14:46 ` Dmitry Antipov
@ 2014-10-29 17:59 ` Peder O. Klingenberg
2017-02-05 21:41 ` npostavs
2014-10-30 0:50 ` Stefan Monnier
1 sibling, 1 reply; 5+ messages in thread
From: Peder O. Klingenberg @ 2014-10-29 17:59 UTC (permalink / raw)
To: Dmitry Antipov; +Cc: 18869
On Wed, Oct 29 2014 at 17:46, Dmitry Antipov wrote:
> Please try this.
Thank you, that fixes it.
...Peder...
--
I wish a new life awaited _me_ in some off-world colony.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18869: 25.0.50; Font-related problems when starting with --daemon
2014-10-29 14:46 ` Dmitry Antipov
2014-10-29 17:59 ` Peder O. Klingenberg
@ 2014-10-30 0:50 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2014-10-30 0:50 UTC (permalink / raw)
To: Dmitry Antipov; +Cc: 18869, Peder O. Klingenberg
> + if (f->terminal->type != output_termcap
> + && f->terminal->type != output_initial)
Should we use FRAME_WINDOW_P instead?
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18869: 25.0.50; Font-related problems when starting with --daemon
2014-10-29 17:59 ` Peder O. Klingenberg
@ 2017-02-05 21:41 ` npostavs
0 siblings, 0 replies; 5+ messages in thread
From: npostavs @ 2017-02-05 21:41 UTC (permalink / raw)
To: Peder O. Klingenberg; +Cc: 18869, Dmitry Antipov
tags 18869 fixed
close 18869 25.1
quit
peder@klingenberg.no (Peder O. Klingenberg) writes:
> On Wed, Oct 29 2014 at 17:46, Dmitry Antipov wrote:
>
>> Please try this.
>
> Thank you, that fixes it.
This was pushed as [1: 66e773e997].
1: 2014-10-30 12:37:08 +0300 66e773e9974e4d7dbf85dd40d227b2269da76c22
* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to realize font on an initial frame when running as a daemon (Bug#18869).
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-02-05 21:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 10:34 bug#18869: 25.0.50; Font-related problems when starting with --daemon Peder O. Klingenberg
2014-10-29 14:46 ` Dmitry Antipov
2014-10-29 17:59 ` Peder O. Klingenberg
2017-02-05 21:41 ` npostavs
2014-10-30 0:50 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.