From unknown Fri Aug 15 16:01:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18869 <18869@debbugs.gnu.org> To: bug#18869 <18869@debbugs.gnu.org> Subject: Status: 25.0.50; Font-related problems when starting with --daemon Reply-To: bug#18869 <18869@debbugs.gnu.org> Date: Fri, 15 Aug 2025 23:01:22 +0000 retitle 18869 25.0.50; Font-related problems when starting with --daemon reassign 18869 emacs submitter 18869 peder@klingenberg.no (Peder O. Klingenberg) severity 18869 normal tag 18869 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 28 06:35:40 2014 Received: (at submit) by debbugs.gnu.org; 28 Oct 2014 10:35:40 +0000 Received: from localhost ([127.0.0.1]:37197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj47l-0001mO-JM for submit@debbugs.gnu.org; Tue, 28 Oct 2014 06:35:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59021) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj47g-0001m7-GQ for submit@debbugs.gnu.org; Tue, 28 Oct 2014 06:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj47V-0006Lo-NK for submit@debbugs.gnu.org; Tue, 28 Oct 2014 06:35:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj47V-0006Lk-KY for submit@debbugs.gnu.org; Tue, 28 Oct 2014 06:35:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj47Q-0001GJ-I9 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 06:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj47L-0006Jy-EE for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 06:35:16 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:40890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj47L-00064u-0a for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 06:35:11 -0400 Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Xj46s-0007LT-8q; Tue, 28 Oct 2014 11:34:42 +0100 Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1Xj46s-0005ly-5b; Tue, 28 Oct 2014 11:34:42 +0100 From: peder@klingenberg.no (Peder O. Klingenberg) To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Font-related problems when starting with --daemon Organization: Persons in a Position to Know, inc. Date: Tue, 28 Oct 2014 11:34:28 +0100 Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-MailScanner-ID: 1Xj46s-0007LT-8q X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: peder@klingenberg.no MailScanner-NULL-Check: 1415097282.64058@M17z4TmyYD0ViQtx4EySuw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: peder@klingenberg.no X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Emacs was built from a checkout of the (git mirror of) emacs trunk as of 2014-10-27 (latest commit: Author: Katsumi Yamaoka 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 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: . [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 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=, timeout=, sigmask=) at xgselect.c:105 all_rfds = { fds_bits = {128, 0 } } all_wfds = { fds_bits = {0 } } tmo = { tv_sec = 1414488023, tv_nsec = 896240894 } tmop = 0x7fff16527200 context = 0x13eb970 have_wfds = 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 to continue, or q 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 to continue, or q 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 to continue, or q 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 to continue, or q 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 to continue, or q 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 to continue, or q 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 = n_gfds = retval = our_fds = max_fds = i = nfds = 374500384 tmo_in_millisec = -1 sa_must_free = false #2 0x00000000005a45a6 in wait_reading_process_output (time_limit=, nsecs=, read_kbd=-1, do_display=, wait_for_cell=12331890, wait_proc=0x0, just_wait_proc=0) at process.c:4602 timeout_reduced_for_timers = false channel = -514 nfds = Available = { fds_bits = {0 } } Writeok = { fds_bits = {0 } } check_write = true check_delay = 0 no_avail = 2 xerrno = 4 proc = timeout = { tv_sec = 100000, tv_nsec = 0 } end_time = { tv_sec = 0, tv_nsec = 0 } got_some_input = #3 0x00000000004f8bfe in kbd_buffer_get_event (commandflag=, map=, prev_event=, used_mouse_menu=, end_time=0x0) at keyboard.c:3953 No locals. #4 read_event_from_main_queue (commandflag=, map=, prev_event=, used_mouse_menu=, 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 } } }} kb = #5 read_decoded_event_from_main_queue (commandflag=, map=, prev_event=, used_mouse_menu=, end_time=0x0) at keyboard.c:2320 frame = terminal = events = {0 } n = ---Type to continue, or q to quit--- #6 read_char (commandflag=, map=, prev_event=, used_mouse_menu=, end_time=0x0) at keyboard.c:2916 c = 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 = save = previous_echo_area_message = 12331890 also_record = 12331890 reread = false polling_stopped_here = true orig_kboard = 0xbcf5c0 #7 0x00000000004fb0e3 in read_key_sequence (keybuf=, prompt=, dont_downcase_last=, can_return_switch_frame=, fix_current_buffer=, prevent_redisplay=, bufsize=) at keyboard.c:9193 interrupted_kboard = 0xbcf5c0 key = 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=, handlers=, hfun=) at eval.c:1344 val = -514 c = #10 0x00000000004f5e0e in command_loop_2 (ignore=) at keyboard.c:1197 val = -514 #11 0x0000000000563f68 in internal_catch (tag=12379522, func=, arg=) at eval.c:1105 val = -514 c = ---Type to continue, or q to quit--- #12 0x00000000004f5b3d in command_loop () at keyboard.c:1176 No locals. #13 0x00000000004f5bd5 in recursive_edit_1 () at keyboard.c:786 val = #14 0x00000000004f5d3d in Frecursive_edit () at keyboard.c:857 buffer = #15 0x00000000004ea7d8 in main (argc=4, argv=0x7fff16527e38) at emacs.c:1623 dummy = 140226419014056 stack_bottom_variable = 0 '\000' do_initial_setlocale = dumping = 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
(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: M-x r e p o r t 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)) From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 29 10:46:22 2014 Received: (at 18869) by debbugs.gnu.org; 29 Oct 2014 14:46:22 +0000 Received: from localhost ([127.0.0.1]:38906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjUVy-00026c-0L for submit@debbugs.gnu.org; Wed, 29 Oct 2014 10:46:22 -0400 Received: from forward7l.mail.yandex.net ([84.201.143.140]:44079) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjUVu-00026K-5p for 18869@debbugs.gnu.org; Wed, 29 Oct 2014 10:46:19 -0400 Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward7l.mail.yandex.net (Yandex) with ESMTP id CBF9DBC12AA; Wed, 29 Oct 2014 17:46:10 +0300 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id 628941B6062F; Wed, 29 Oct 2014 17:46:10 +0300 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VCXazd1qZU-k96mouEE; Wed, 29 Oct 2014 17:46:09 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: b272f1f3-4188-4047-8ea3-56888ffc6af5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1414593969; bh=Uoq9tgE+GFoe1WnSnjbtFOOOXItJLq8tnJzuO4Mktj4=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=lBTgYxYOHScWBGQcRce5TeB+q3/Tw3+PkLEhLSLmobZTHAKeN/0h7h6DbCeXISpd3 aTDT1Om08AGWIQAl+H4HXKJk+xhBPfV/dbx8n0E+8DF17Dr4VgzzCPVtg8fzcbiGLw sKunPDIfpyL+yiprGOkgQmB+p2UP2ilYICsWR/dE= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <5450FDB1.5020205@yandex.ru> Date: Wed, 29 Oct 2014 17:46:09 +0300 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "Peder O. Klingenberg" Subject: Re: bug#18869: 25.0.50; Font-related problems when starting with --daemon References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------090500050401030701080303" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18869 Cc: 18869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------090500050401030701080303 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090500050401030701080303 Content-Type: text/x-diff; name="bug18869.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug18869.patch" === 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)) { --------------090500050401030701080303-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 29 13:59:26 2014 Received: (at 18869) by debbugs.gnu.org; 29 Oct 2014 17:59:26 +0000 Received: from localhost ([127.0.0.1]:39307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjXWo-0000LA-0j for submit@debbugs.gnu.org; Wed, 29 Oct 2014 13:59:26 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:37234) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjXWl-0000Kw-3w for 18869@debbugs.gnu.org; Wed, 29 Oct 2014 13:59:23 -0400 Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1XjXWT-0001sJ-7T; Wed, 29 Oct 2014 18:59:05 +0100 Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1XjXWT-0003uG-4O; Wed, 29 Oct 2014 18:59:05 +0100 From: peder@klingenberg.no (Peder O. Klingenberg) To: Dmitry Antipov Subject: Re: bug#18869: 25.0.50; Font-related problems when starting with --daemon Organization: Persons in a Position to Know, inc. References: <5450FDB1.5020205@yandex.ru> Date: Wed, 29 Oct 2014 18:59:05 +0100 In-Reply-To: <5450FDB1.5020205@yandex.ru> (Dmitry Antipov's message of "Wed, 29 Oct 2014 17:46:09 +0300") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1XjXWT-0001sJ-7T X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: peder@klingenberg.no MailScanner-NULL-Check: 1415210345.51206@BNbghvxf1ug0mO8D0jz5Dg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18869 Cc: 18869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 29 20:50:23 2014 Received: (at 18869) by debbugs.gnu.org; 30 Oct 2014 00:50:23 +0000 Received: from localhost ([127.0.0.1]:39562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjdwU-0005s2-U6 for submit@debbugs.gnu.org; Wed, 29 Oct 2014 20:50:23 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:60599) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjdwS-0005rn-Cl for 18869@debbugs.gnu.org; Wed, 29 Oct 2014 20:50:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAMAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEEJy8jEAsOJhIUGA0kiFTLcgEBAQEBAQEDAQEBAQEdkQgHhEsFsiCBb4QUIYJ6AQEB X-IPAS-Result: AvAMAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEEJy8jEAsOJhIUGA0kiFTLcgEBAQEBAQEDAQEBAQEdkQgHhEsFsiCBb4QUIYJ6AQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95551837" Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Oct 2014 20:50:14 -0400 Received: by pastel.home (Postfix, from userid 20848) id 8888F7CFF; Wed, 29 Oct 2014 20:50:14 -0400 (EDT) From: Stefan Monnier To: Dmitry Antipov Subject: Re: bug#18869: 25.0.50; Font-related problems when starting with --daemon Message-ID: References: <5450FDB1.5020205@yandex.ru> Date: Wed, 29 Oct 2014 20:50:14 -0400 In-Reply-To: <5450FDB1.5020205@yandex.ru> (Dmitry Antipov's message of "Wed, 29 Oct 2014 17:46:09 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18869 Cc: 18869@debbugs.gnu.org, "Peder O. Klingenberg" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > + if (f->terminal->type != output_termcap > + && f->terminal->type != output_initial) Should we use FRAME_WINDOW_P instead? Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 05 16:41:05 2017 Received: (at 18869) by debbugs.gnu.org; 5 Feb 2017 21:41:05 +0000 Received: from localhost ([127.0.0.1]:56978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caUYT-0004UM-68 for submit@debbugs.gnu.org; Sun, 05 Feb 2017 16:41:05 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:36320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caUYQ-0004Tf-9L; Sun, 05 Feb 2017 16:41:03 -0500 Received: by mail-io0-f193.google.com with SMTP id q20so7497807ioi.3; Sun, 05 Feb 2017 13:41:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=HlQ3GaWQiS5bnEnygWA/w7X9cbyNXTkgKraLuEPKE1U=; b=CHaG3pSGX3JZnM/4SvLBMygky9nDhiuB9xJhB+Wvlw6GE21XIhdXu52wBDEJrRjsy3 RJXxQpmjYXkp4cZHr3Jg2CPK+baxTdEmXiizYFm6cQFs5+AkIAOE/zWn10dabmU8E7iJ b3h+sttgNgk82yF2R01XcaYLbWhwLrhIq8HcdkF9Pr+cOk/B1mav+vMBkrWQOqFzaKQv BRZfF4Imub46IJ+UJI4PkU+ZwbYDbfUmlIhCcZyDYWHQX8/0fUElEjYZN+YM8MC9MtVe llFb4g2OdR5NaSFMnCBGqciEPWHgT55agc3i1d3gM0yL9rvs2AgNzCj9veg3fvg7un4T 8C4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=HlQ3GaWQiS5bnEnygWA/w7X9cbyNXTkgKraLuEPKE1U=; b=DG/BmmBsJVh4v8V1Aq6idNb+30+3wnoXX8vtl+bSLFmqelKbxx21uvus3ejRQ0ILtF l/XVL5qm4ZqeFIrXhpJLuZLH/HcRLWlPbIgJGN/ReeK9iVUVvG+CKHZsreQojx7nqcFd 7tOlEkHfwkJN3qtxdRnK3qJqjE8ayo2Q4MQzRms2H22ipjq7dxxTTcQEC+Gg2fPS6xe1 Bcrhsd7/hkdr/OcVgaHlV6ex20qeOxbp5bo5gHCmoBNeqcJ5DSvBIjYNFrVQgNBRmw70 63B681+Z2rEgmx5e/XWQV7jb0JQn3i3waLla8CKvRMs3QB6joN4UAGTtH5dCYE/Ai/hB 6d2g== X-Gm-Message-State: AMke39nRiYtOJeB34yLqJQRdCoh2U0/xl0ZZLp0rodxet28As1VcCNe0QYCYHbIFJ/L5FA== X-Received: by 10.107.201.138 with SMTP id z132mr4700712iof.104.1486330856576; Sun, 05 Feb 2017 13:40:56 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 188sm3129862itm.12.2017.02.05.13.40.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Feb 2017 13:40:56 -0800 (PST) From: npostavs@users.sourceforge.net To: peder@klingenberg.no (Peder O. Klingenberg) Subject: Re: bug#18869: 25.0.50; Font-related problems when starting with --daemon References: <5450FDB1.5020205@yandex.ru> Date: Sun, 05 Feb 2017 16:41:47 -0500 In-Reply-To: (Peder O. Klingenberg's message of "Wed, 29 Oct 2014 18:59:05 +0100") Message-ID: <87inoonwmc.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 18869 Cc: 18869@debbugs.gnu.org, Dmitry Antipov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) 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). From unknown Fri Aug 15 16:01:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 06 Mar 2017 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator