From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=A1bor?= Newsgroups: gmane.emacs.bugs Subject: bug#43888: 28.0.50; emacsclient not working properly Date: Tue, 13 Oct 2020 09:36:46 +0200 Message-ID: References: <87eem524ab.fsf@gnus.org> <86zh4t2bog.fsf@gmail.com> <83ft6k4u12.fsf@gnu.org> <87h7r0kmt8.fsf@web.de> <83zh4r33d4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e0b8e705b1887a68" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33375"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , Lars Ingebrigtsen , Noam Postavsky , 43888@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 13 09:40:47 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSEvL-0008WI-OW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 09:40:43 +0200 Original-Received: from localhost ([::1]:45248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSEvK-0004Dt-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 03:40:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSEsl-0001th-QD for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:38:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSEsk-0005kF-Cx for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSEsk-0001B7-8Z for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?G=C3=A1bor?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2020 07:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43888 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 43888-submit@debbugs.gnu.org id=B43888.16025746294466 (code B ref 43888); Tue, 13 Oct 2020 07:38:02 +0000 Original-Received: (at 43888) by debbugs.gnu.org; 13 Oct 2020 07:37:09 +0000 Original-Received: from localhost ([127.0.0.1]:45051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSErt-00019y-0P for submit@debbugs.gnu.org; Tue, 13 Oct 2020 03:37:09 -0400 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:34703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSEro-00019H-OM for 43888@debbugs.gnu.org; Tue, 13 Oct 2020 03:37:07 -0400 Original-Received: by mail-wm1-f48.google.com with SMTP id l15so15133006wmh.1 for <43888@debbugs.gnu.org>; Tue, 13 Oct 2020 00:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=htP3zC2e8vov9n7PuT9cIDWFJZoxPvm1rR7cSHHYDlE=; b=g/lUGucfg+yCPHx5nOY5yiPeFX7J9jBxO2O+FGdQLaEwX6WnGBR8mR4CDC1KopV+yn 4jOb9zceAIZU7XKsiceSpBN4THPaelpnfJaniFgE03TxLylVXiDJVo0itvmjiMXv9e9n pPzoCdpn31L2VH0VlZdtUxnaRKojs8t93OOyHhVkDtOZnHj0UUadW3HQ4LKlkunSAEoY rIiHO2NDKnnUNVE+Nb4KGRVyDPX+J6LWS2PCVSZuKzOtSNPgwCgJQAm2GyxeLLqclWZh MBU70O9ZPNjTYZNgGI0q0k5/Fi2/ngarN2HzjDJ+XHg9OFWdgZfh8YOkOWWmDoU9X2CB /xyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=htP3zC2e8vov9n7PuT9cIDWFJZoxPvm1rR7cSHHYDlE=; b=FF5FLQjadXXq0S2qteOa0WhhrYqC6Mmyt2Gg/+wv8YNBonAZWZ8inKKjZeoPfd7GnG MFGC37RZX/pleRR7mRowEJOSNbOXPecWPjaRRTxOXwydSh/wt/cQrMQWvg/gfTl0QR7W FdAkmvE6uVYdRXS5KAaTHY9cCpP+rm97f9aPTBYm2S1vbdomxTVkslT4hbdv8CkPICDt GPJKCkUeq9+gPBQLXqPzr0fGIiSO5H/AgniNuwJXvJlMKa4iqfXEoG6EQIpUFGbxfjIU hJ+7VPm0zNV+p82Hd08oGuOuynchg1aIv3+kr+dlxmV5HTzUSR1Rpu8A2cBd3ns4IqC4 rZuw== X-Gm-Message-State: AOAM530J4XkvaFktyTN2EsnpeAVlHR6FTirJbqJQmcZ3oaG5IZ8joAWY Scj/TjoU+bti3FjTPS70OLSiBS44bujJTSNoyi0= X-Google-Smtp-Source: ABdhPJwhDjkPh5cC4cxIFCS6rbHdM4H/nbSqCIylMlcj+2c5od0AOOACmgQSgpKPAmVThJdzhHtUxtDXXiqjBVvoLdU= X-Received: by 2002:a1c:4056:: with SMTP id n83mr14187973wma.186.1602574618768; Tue, 13 Oct 2020 00:36:58 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190403 Archived-At: --000000000000e0b8e705b1887a68 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I get this error when I only have the following in my .emacs: (setq debug-on-signal t) (setq debug-on-error t) (server-start) G=C3=A1bor ezt =C3=ADrta (id=C5=91pont: 2020. okt. 13= ., K, 9:30): > I moved it to the top of my config, then I get the following error on > startup: > > Debugger entered--Lisp error: (void-variable server-use-tcp) > default-toplevel-value(server-use-tcp) > custom-initialize-reset(server-use-tcp (funcall #'#f(compiled-function > () #))) > custom-declare-variable(server-use-tcp (funcall #'#f(compiled-function > () #)) "If non-nil, use TCP sockets instead of > local socke..." :set #f(compiled-function (sym val) # 0xecd269cdbfc6f97>) :type boolean :version "22.1") > > byte-code("\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\31= 5\316\317\320\321&\11\210\306\322\310\311\323DD\324\316\325\320\321&\7\210\= 326\322\327\330#\210\306\331\310\311..." > [custom-declare-group server nil "Emacs running as a server process." > :group external custom-declare-variable server-use-tcp funcall function > #f(compiled-function () #) "If non-nil, use TCP > sockets instead of local socke..." :set #f(compiled-function (sym val) > #) :type boolean :version "22.1" server-host > #f(compiled-function () #) "The name or IP addre= ss > to use as host address of t..." (choice (string :tag "Name or IP address"= ) > (const :tag "Local" nil)) put risky-local-variable t server-port > #f(compiled-function () #) "The port number that > the server process should lis..." (choice (string :tag "Port number") > (const :tag "Random" nil)) "24.1" server-auth-dir #f(compiled-function () > #) "Directory for server authentication > files.\nWe only..." directory server-auth-key #f(compiled-function () > #) "Server authentication key.\nThis is only use= d > if `s..." (choice (const :tag "Random" nil) (string :tag "Password")) > "24.3" server-raise-frame #f(compiled-function () # 0x1e0000171e5d>) "If non-nil, raise frame when switching to a buffer..." > server-visit-hook #f(compiled-function () #) "Ho= ok > run when visiting a file for the Emacs server..." hook server-switch-hook > #f(compiled-function () #) "Hook run when > switching to a buffer for the Emacs ..." server-after-make-frame-hook ...= ] > 10) > (server-start) > eval-buffer(# nil "/home/username/.emacs" nil t) ; > Reading at buffer position 216 > load-with-code-conversion("/home/username/.emacs" > "/home/username/.emacs" t t) > load("~/.emacs" noerror nomessage) > startup--load-user-init-file(#f(compiled-function () # 0xcee8b0bce81ba0f>) #f(compiled-function () #= ) > t) > command-line() > normal-top-level() > > G=C3=A1bor ezt =C3=ADrta (id=C5=91pont: 2020. okt. = 13., K, 9:17): > >> I set them both to t, now I have the following error on startup: >> >> Debugger entered--Lisp error: (file-missing "make client process failed" >> "No such file or directory" :name "server-client-test" :family local >> :server nil :noquery t :service "/run/user/1000/emacs/server") >> make-network-process(:name "server-client-test" :family local :server >> nil :noquery t :service "/run/user/1000/emacs/server") >> server-running-p("server") >> server-start() >> eval-buffer(# nil "/home/username/.emacs" nil t) ; >> Reading at buffer position 27778 >> load-with-code-conversion("/home/username/.emacs" >> "/home/username/.emacs" t t) >> load("~/.emacs" noerror nomessage) >> startup--load-user-init-file(#f(compiled-function () #> 0xed8d667e6160a0f>) #f(compiled-function () #) >> t) >> command-line() >> normal-top-level() >> >> >> >> Eli Zaretskii ezt =C3=ADrta (id=C5=91pont: 2020. okt. 12.= , H, >> 16:50): >> >>> > From: Michael Heerdegen >>> > Cc: G=C3=A1bor , larsi@gnus.org, >>> > npostavs@gmail.com, >>> > 43888@debbugs.gnu.org >>> > Date: Mon, 12 Oct 2020 07:58:27 +0200 >>> > >>> > Eli Zaretskii writes: >>> > >>> > > > *ERROR*: Wrong number of arguments: (1 . 4), 5 >>> > >>> > > But since with "emacs -Q" it does work, it is still some of your >>> > > customizations that are the prime suspect. >>> > >>> > Is there a way for the user to get an error message more verbose than >>> > above? >>> >>> Yes, make sure debug-on-signal and debug-on-error are both non-nil in >>> the Emacs that runs the server, then you will have the backtrace pop >>> up in Emacs. Assuming there's some frame visible for the server, that >>> is. >>> >> --000000000000e0b8e705b1887a68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I get this error when I only have the following in my= .emacs:

(setq debug-on-signal t)
(setq debug-o= n-error t)
(server-start)

=
G=C3=A1bor <hajovonta@gmail.com> ezt =C3=ADrta (id=C5=91pont: 2= 020. okt. 13., K, 9:30):
I moved it to the top of my config, then I= get the following error on startup:

Debugger ente= red--Lisp error: (void-variable server-use-tcp)
=C2=A0 default-toplevel-= value(server-use-tcp)
=C2=A0 custom-initialize-reset(server-use-tcp (fun= call #'#f(compiled-function () #<bytecode 0x1e0000171e91>)))
= =C2=A0 custom-declare-variable(server-use-tcp (funcall #'#f(compiled-fu= nction () #<bytecode 0x1e0000171e91>)) "If non-nil, use TCP sock= ets instead of local socke..." :set #f(compiled-function (sym val) #&l= t;bytecode 0xecd269cdbfc6f97>) :type boolean :version "22.1")<= br>=C2=A0 byte-code("\300\301\302\303\304\305%\210\306\307\310\311\312= DD\313\314\315\316\317\320\321&\11\210\306\322\310\311\323DD\324\316\32= 5\320\321&\7\210\326\322\327\330#\210\306\331\310\311..." [custom-= declare-group server nil "Emacs running as a server process." :gr= oup external custom-declare-variable server-use-tcp funcall function #f(com= piled-function () #<bytecode 0x1e0000171e91>) "If non-nil, use T= CP sockets instead of local socke..." :set #f(compiled-function (sym v= al) #<bytecode 0xecd269cdbfc6f97>) :type boolean :version "22.1&= quot; server-host #f(compiled-function () #<bytecode 0x1e0000171e91>)= "The name or IP address to use as host address of t..." (choice = (string :tag "Name or IP address") (const :tag "Local" = nil)) put risky-local-variable t server-port #f(compiled-function () #<b= ytecode 0x1e0000171e91>) "The port number that the server process s= hould lis..." (choice (string :tag "Port number") (const :ta= g "Random" nil)) "24.1" server-auth-dir #f(compiled-fun= ction () #<bytecode 0xae5c6d90276fe>) "Directory for server auth= entication files.\nWe only..." directory server-auth-key #f(compiled-f= unction () #<bytecode 0x1e0000171e91>) "Server authentication ke= y.\nThis is only used if `s..." (choice (const :tag "Random"= nil) (string :tag "Password")) "24.3" server-raise-fra= me #f(compiled-function () #<bytecode 0x1e0000171e5d>) "If non-n= il, raise frame when switching to a buffer..." server-visit-hook #f(co= mpiled-function () #<bytecode 0x1e0000171e91>) "Hook run when vi= siting a file for the Emacs server..." hook server-switch-hook #f(comp= iled-function () #<bytecode 0x1e0000171e91>) "Hook run when swit= ching to a buffer for the Emacs ..." server-after-make-frame-hook ...]= 10)
=C2=A0 (server-start)
=C2=A0 eval-buffer(#<buffer =C2=A0*load= *> nil "/home/username/.emacs" nil t) =C2=A0; Reading at buffe= r position 216
=C2=A0 load-with-code-conversion("/home/username/.em= acs" "/home/username/.emacs" t t)
=C2=A0 load("~/.em= acs" noerror nomessage)
=C2=A0 startup--load-user-init-file(#f(comp= iled-function () #<bytecode 0xcee8b0bce81ba0f>) #f(compiled-function = () #<bytecode 0x81a386fa1b1b513>) t)
=C2=A0 command-line()
=C2= =A0 normal-top-level()

G=C3=A1bor <hajovonta@gmail.com> ezt =C3=ADrta (id= =C5=91pont: 2020. okt. 13., K, 9:17):
I set them both to t, now I hav= e the following error on startup:

Debugger entered= --Lisp error: (file-missing "make client process failed" "No= such file or directory" :name "server-client-test" :family = local :server nil :noquery t :service "/run/user/1000/emacs/server&quo= t;)
=C2=A0 make-network-process(:name "server-client-test" :fa= mily local :server nil :noquery t :service "/run/user/1000/emacs/serve= r")
=C2=A0 server-running-p("server")
=C2=A0 server-st= art()
=C2=A0 eval-buffer(#<buffer =C2=A0*load*> nil "/home/us= ername/.emacs" nil t) =C2=A0; Reading at buffer position 27778
=C2= =A0 load-with-code-conversion("/home/username/.emacs" "/home= /username/.emacs" t t)
=C2=A0 load("~/.emacs" noerror nom= essage)
=C2=A0 startup--load-user-init-file(#f(compiled-function () #<= ;bytecode 0xed8d667e6160a0f>) #f(compiled-function () #<bytecode 0x81= a386fa1b1b513>) t)
=C2=A0 command-line()
=C2=A0 normal-top-level()=



Eli Zaretskii <eliz@gnu.org> ezt =C3=ADrta (id=C5=91po= nt: 2020. okt. 12., H, 16:50):
> From: Michael Heerdegen <michael_heerdegen@web.de>
> Cc: G=C3=A1bor <hajovonta@gmail.com>,=C2=A0 larsi@gnus.org,
>=C2=A0 =C2=A0np= ostavs@gmail.com,
>=C2=A0 =C2=A043888@debbugs.gnu.org
> Date: Mon, 12 Oct 2020 07:58:27 +0200
>
> Eli Zaretskii <el= iz@gnu.org> writes:
>
> > > *ERROR*: Wrong number of arguments: (1 . 4), 5
>
> > But since with "emacs -Q" it does work, it is still som= e of your
> > customizations that are the prime suspect.
>
> Is there a way for the user to get an error message more verbose than<= br> > above?

Yes, make sure debug-on-signal and debug-on-error are both non-nil in
the Emacs that runs the server, then you will have the backtrace pop
up in Emacs.=C2=A0 Assuming there's some frame visible for the server, = that
is.
--000000000000e0b8e705b1887a68--