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:30:57 +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="0000000000000a4ea205b18866e4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38441"; 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:32:36 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 1kSEnT-0009u1-K9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 09:32:35 +0200 Original-Received: from localhost ([::1]:56772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSEnS-0005UQ-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 03:32:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSEmw-0005TP-IT for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSEmv-0004sc-PE for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSEmv-00010u-Mm for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:32:01 -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:32:01 +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.16025742783829 (code B ref 43888); Tue, 13 Oct 2020 07:32:01 +0000 Original-Received: (at 43888) by debbugs.gnu.org; 13 Oct 2020 07:31:18 +0000 Original-Received: from localhost ([127.0.0.1]:45024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSEmD-0000zg-Hw for submit@debbugs.gnu.org; Tue, 13 Oct 2020 03:31:18 -0400 Original-Received: from mail-wr1-f49.google.com ([209.85.221.49]:42261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSEmA-0000zS-Qy for 43888@debbugs.gnu.org; Tue, 13 Oct 2020 03:31:16 -0400 Original-Received: by mail-wr1-f49.google.com with SMTP id e18so22690630wrw.9 for <43888@debbugs.gnu.org>; Tue, 13 Oct 2020 00:31:14 -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=/BPMyJ8ZPYFO29a+9cXNRqqaKqQ5nx9tNG0ZtnrFKso=; b=qCeic1YOad3gc3R4CD4vGoS8A6jqJ2N2VL1ureygoML9Mx3QM7IqSMD9jMRormtbY2 H4Ct+57nsHvNgFM5o9PZ7leRAdCc2DYgH0cPjgvmkuRZjx0HjYy1ffpl/R26BSg85KFD hLfgZxDjkH0iwY8eNUXqxXIHs7xI8apk0edZJg7Ck1OQ9NLKZtv3UiNi2VDAi05/TkAw zFUkg8kCppdL3jW+OUxJr6iFC4f82Afc3/Juyk5PQ7aIdivr/bA8JVX1YF8xRw1c9J6U TXbo+vnJ+8bBewVcCSNTh7eDNZsyCLeQckNOtasT37uQB0hkmvcPgoC5yYBPgxdXA5sw nzIg== 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=/BPMyJ8ZPYFO29a+9cXNRqqaKqQ5nx9tNG0ZtnrFKso=; b=KaiWj5XGGFD+hAffCOXXD/AZABma1l9PPlsbE14Yzp1HTT2LH8PEO3w0NfWBbQCEq6 L+PqYHwcH+63ulz6mwfSpGT5WuYTLt1I5MPqO0zhnKM/gatFmfAfmXyMf4pUlMmQiMFZ LZGK2RxTrcK3bsQfouSINxgIrazwtRFQzIAqXXpyN1Cwk79lLFoipfshYd8ufh08Lk5m sRo6F5d4xHTmaIy7X9XKwWTLUlyl8jEkdz9TTiX0nTMYShd8hfvICoLsmWaYFWlfdkYF cI/8xw+MDJ0Uv59JlM/puJ6QYuVadsUEK2KpZdzZMVYgKjvrt4t5k7b+az2l3TKFdrwU bnQQ== X-Gm-Message-State: AOAM532uIhr27kHy2iBbDsiWWe7HzdPBkTcMhQlriBL7/vGn706dnkqM 3cWliq8VU/uAnYO8ajt60Q0CZRa/oM08h9VEbkY= X-Google-Smtp-Source: ABdhPJyFxO47OnEJct5Vy8uxeLc9Kw8UGBoPbbt9Pvu1YSiDTjyobpAh2CqhH/9gK2oY6mIB3IqvkwAuwGgr7/JyafM= X-Received: by 2002:a5d:4cd1:: with SMTP id c17mr21967359wrt.109.1602574269172; Tue, 13 Oct 2020 00:31:09 -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:190400 Archived-At: --0000000000000a4ea205b18866e4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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) #) :type boolean :version "22.1") byte-code("\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\315\= 316\317\320\321&\11\210\306\322\310\311\323DD\324\316\325\320\321&\7\210\32= 6\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 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 () #) "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 used if `s..." (choice (const :tag "Random" nil) (string :tag "Password")) "24.3" server-raise-frame #f(compiled-function () #) "If non-nil, raise frame when switching to a buffer..." server-visit-hook #f(compiled-function () #) "Hook 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 () #) #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. >> > --0000000000000a4ea205b18866e4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I moved it to the top of my config, then I get the fo= llowing error on startup:

Debugger entered--Lisp e= rror: (void-variable server-use-tcp)
=C2=A0 default-toplevel-value(serve= r-use-tcp)
=C2=A0 custom-initialize-reset(server-use-tcp (funcall #'= #f(compiled-function () #<bytecode 0x1e0000171e91>)))
=C2=A0 custo= m-declare-variable(server-use-tcp (funcall #'#f(compiled-function () #&= lt;bytecode 0x1e0000171e91>)) "If non-nil, use TCP sockets instead = of local socke..." :set #f(compiled-function (sym val) #<bytecode 0= xecd269cdbfc6f97>) :type boolean :version "22.1")
=C2=A0 by= te-code("\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\3= 15\316\317\320\321&\11\210\306\322\310\311\323DD\324\316\325\320\321&am= p;\7\210\326\322\327\330#\210\306\331\310\311..." [custom-declare-grou= p server nil "Emacs running as a server process." :group external= custom-declare-variable server-use-tcp funcall function #f(compiled-functi= on () #<bytecode 0x1e0000171e91>) "If non-nil, use TCP sockets i= nstead of local socke..." :set #f(compiled-function (sym val) #<byt= ecode 0xecd269cdbfc6f97>) :type boolean :version "22.1" server= -host #f(compiled-function () #<bytecode 0x1e0000171e91>) "The n= ame or IP address to use as host address of t..." (choice (string :tag= "Name or IP address") (const :tag "Local" nil)) put ri= sky-local-variable t server-port #f(compiled-function () #<bytecode 0x1e= 0000171e91>) "The port number that the server process should lis...= " (choice (string :tag "Port number") (const :tag "Rand= om" nil)) "24.1" server-auth-dir #f(compiled-function () #&l= t;bytecode 0xae5c6d90276fe>) "Directory for server authentication f= iles.\nWe only..." directory server-auth-key #f(compiled-function () #= <bytecode 0x1e0000171e91>) "Server authentication key.\nThis is = only used if `s..." (choice (const :tag "Random" nil) (strin= g :tag "Password")) "24.3" server-raise-frame #f(compil= ed-function () #<bytecode 0x1e0000171e5d>) "If non-nil, raise fr= ame when switching to a buffer..." server-visit-hook #f(compiled-funct= ion () #<bytecode 0x1e0000171e91>) "Hook run when visiting a fil= e for the Emacs server..." hook server-switch-hook #f(compiled-functio= n () #<bytecode 0x1e0000171e91>) "Hook run when switching to a b= uffer for the Emacs ..." server-after-make-frame-hook ...] 10)
=C2= =A0 (server-start)
=C2=A0 eval-buffer(#<buffer =C2=A0*load*> nil &= quot;/home/username/.emacs" nil t) =C2=A0; Reading at buffer position = 216
=C2=A0 load-with-code-conversion("/home/username/.emacs" &= quot;/home/username/.emacs" t t)
=C2=A0 load("~/.emacs" n= oerror nomessage)
=C2=A0 startup--load-user-init-file(#f(compiled-functi= on () #<bytecode 0xcee8b0bce81ba0f>) #f(compiled-function () #<byt= ecode 0x81a386fa1b1b513>) t)
=C2=A0 command-line()
=C2=A0 normal-t= op-level()

G=C3=A1bor <h= ajovonta@gmail.com> 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 start= up:

Debugger entered--Lisp error: (file-missing &q= uot;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")
=C2=A0 make-network-pro= cess(:name "server-client-test" :family local :server nil :noquer= y t :service "/run/user/1000/emacs/server")
=C2=A0 server-runn= ing-p("server")
=C2=A0 server-start()
=C2=A0 eval-buffer(#&= lt;buffer =C2=A0*load*> nil "/home/username/.emacs" nil t) =C2= =A0; Reading at buffer position 27778
=C2=A0 load-with-code-conversion(&= quot;/home/username/.emacs" "/home/username/.emacs" t t)
= =C2=A0 load("~/.emacs" noerror nomessage)
=C2=A0 startup--load= -user-init-file(#f(compiled-function () #<bytecode 0xed8d667e6160a0f>= ) #f(compiled-function () #<bytecode 0x81a386fa1b1b513>) t)
=C2=A0= command-line()
=C2=A0 normal-top-level()


<= /div>

Eli Zaretskii <el= iz@gnu.org> ezt =C3=ADrta (id=C5=91pont: 2020. okt. 12., H, 16:50):<= br>
> From: Micha= el 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.
--0000000000000a4ea205b18866e4--