[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30769: 25.3; server-delete-client:X protocol error using Lucid

From: stef204
Subject: bug#30769: 25.3; server-delete-client:X protocol error using Lucid
Date: Mon, 12 Mar 2018 09:40:08 -0600

11.03.2018, 12:58, "Noam Postavsky" <address@hidden>:
> stef204 <address@hidden> writes:
>>  Using --with-x-toolkit=lucid results in error:
>>  server-delete-client: X protocol error: BadFont (invalid Font parameter)
>>  on protocol request 46
> What do you do exactly to get this error?

*Edit:*  In my previous email, it looks like I inadvertently pasted part of the 
text in the wrong sequence, making it hard to understand.
Please cancel (delete) that reply and replace with this one.

Reply starts here:


My setup is as such:

- emacs server+client
- I start emacs on every boot using a systemd --user unit:

% cat ~/.config/systemd/user/emacs.service
Description=Emacs: the extensible, self-documenting text editor

ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"


THEN, let's say I want to work or edit file xyz.txt. I run:
% ec xyz,txt

ec is a script I use to run emacsclient
% whence ec | xargs cat
exec /usr/bin/env emacsclient -a "" -c "$@"

THEN I edit the file, etc.
All is fine up to this point.

The problem starts now where, once DONE editing the file, I SHOULD use 
"server-edit" or "C-x #" to exit/close this buffer and get my terminal "back".
AT THAT POINT, emacsclient SEEMS to close but in reality does not exit cleanly, 
i.e. the frame is destroyed, etc., I get back to terminal but it is still 
waiting for emacsclient to terminate and release terminal. Also, the buffer is 
still open, it does not get killed.
I have to use Ctrl+c to get my terminal back; THEN open emacsclient again, look 
for the buffer for xyz.txt (which is still open) and kill it with "C-x k"

Using emacs compiled with gtk3, I do not run into any of that. ONLY with lucid 
(and i do prefer lucid over gtk3 so this is important.)

Screenshots attached so you can see the state after using "server-edit" with 

file 1: server-edit1-screenshot_2018-03-12-134754.png is state AFTER using 
"server-edit" to exit server buffer. You can see how terminal still waiting 
(and THAT seems to be when the "server-delete-client: X protocol error: BadFont 
(invalid Font parameter) on protocol request 46" gets written to Message buffer.

file 2: server-edit2-screenshot_2018-03-12-134754.png is AFTER I get my 
terminal back using Ctrl-c and then restart emacsclient and look at what 
buffers are opened. You can see the file "PKGBUILD" (e.g. the "xyz.txt" 
mentioned above, any file at all) still open, it never got killed.

Please let me know if you need anything else so I can help troubleshoot.

Thank you.


Attachment: server-edit1-screenshot_2018-03-12-134754.png
Description: PNG image

Attachment: server-edit2-screenshot_2018-03-12-134858.png
Description: PNG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]