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: Wed, 28 Oct 2020 14:11:24 +0100 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="0000000000003e109505b2bae7f2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27743"; 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 Wed Oct 28 14:12:24 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 1kXlFX-00075T-Bb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 14:12:23 +0100 Original-Received: from localhost ([::1]:46780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXlFW-0002Rd-0L for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 09:12:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXlFJ-0002RR-B2 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 09:12:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXlFC-0006Gh-7P for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 09:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXlFB-00051F-W0 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 09:12: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: Wed, 28 Oct 2020 13:12: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.160389070419270 (code B ref 43888); Wed, 28 Oct 2020 13:12:01 +0000 Original-Received: (at 43888) by debbugs.gnu.org; 28 Oct 2020 13:11:44 +0000 Original-Received: from localhost ([127.0.0.1]:47676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXlEu-00050k-5W for submit@debbugs.gnu.org; Wed, 28 Oct 2020 09:11:44 -0400 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:46816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXlEs-00050W-ND for 43888@debbugs.gnu.org; Wed, 28 Oct 2020 09:11:43 -0400 Original-Received: by mail-wr1-f48.google.com with SMTP id n6so5582402wrm.13 for <43888@debbugs.gnu.org>; Wed, 28 Oct 2020 06:11:42 -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=sR+vYkVrTvvTAocEpSHbb/Z1XKLaO/q5n7sgRhNwRlI=; b=t4WCHQyOP8+ecYB8FzwfQGSOpcT2XEXXGvh6l7nhWi/8C1tdgatWfopdzuUU+M4rxq bLyOBXydBFnyUxkujcUZNk+ag6OOd3ob9816e91CIgeiWeB7zxMuIxaRD7b840YAUnhg s1k4NyrT6+Jp5NmGf/gD6Biz8cWVu+GefMdXLke4VyPCnUZRaPM+PMZJqRYii67O2nzD RqzSTZ1SoLyHQmyiTNck9XLiY3yXlakS3kLizMZxmkvTcM1QMeoODkcL2HdvbvGX55rC gyyB7058dPMp9Pamqi158uVUkPPviXs+Io0OfMQhlpjCCElJM7R/ibzQMPY9ah24oqKZ B5Jg== 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=sR+vYkVrTvvTAocEpSHbb/Z1XKLaO/q5n7sgRhNwRlI=; b=Q4NYC/bJDDF53K0lZtgb/kbivOTJ93xsdDok+/i24DbDCaHeQ5STC1id5PhFIJGE2w MTQOlUsXRQgNq0PR9CW5QU7l7BDoxNyEgAPE2yVJOiYwWN2Qh/9YcP2ordK3iLsR2PQi gFxaS40MGWg5TMS1NuG8LGO9qY7tCQ1N1GCt3CZfK1Pq61CnKeXbYcGTgMcl0NEkZvbo k7S4gsohzS0hC3NiAK4JWspg+8fpwHMxhMBi4FZ/ywdVh8yhPgEDkrzEjyFR3+A3abJ3 L2/1FH4chn1iQ331llYqCmwSHw23eTwkqZvrhPA2GrvBpxbS9m5tKUzboRbTxrVJhhdF IZmw== X-Gm-Message-State: AOAM531tbycj38aLfGskHDiptadpVbHxKEQafQAgxeIRiXWWoYiNbJ5L ffbYIR4y0HKYGwxMS0MUed9FX1zte0weojatLpY= X-Google-Smtp-Source: ABdhPJy2am6x9e0CQYevg4JP+Xc9M93u+RQugkX1iG0cZsoZxHBlLDV7jB5Ye/wiMXP3ha3OtDBa6GyiUaKY+4aI9q4= X-Received: by 2002:adf:eac6:: with SMTP id o6mr9437024wrn.117.1603890696817; Wed, 28 Oct 2020 06:11:36 -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:191872 Archived-At: --0000000000003e109505b2bae7f2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The problem seems to be with having two different versions of with-editor installed. Removed the older one and emacsclient behavior is now normal. Thanks for the pointers, Best regards, Gabor G=C3=A1bor ezt =C3=ADrta (id=C5=91pont: 2020. okt. 13= ., K, 9:36): > 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\3= 15\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 addr= ess >> 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 tha= t >> 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 us= ed >> 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 () #) "H= ook >> run when visiting a file for the Emacs server..." hook server-switch-hoo= k >> #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 tha= n >>>> > 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. >>>> >>> --0000000000003e109505b2bae7f2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The problem seems to be with having two different ver= sions of with-editor installed. Removed the older one and emacsclient behav= ior is now normal.
Thanks for the pointers,

<= div>Best regards,
Gabor

G=C3=A1bor <hajovonta@gmail.com> ezt =C3=ADrta (id=C5=91po= nt: 2020. okt. 13., K, 9:36):
I get this error when I only have the f= ollowing in my .emacs:

(setq debug-on-signal t)(setq debug-on-error t)
(server-start)

G=C3=A1bor <hajovonta@gmail.com&g= t; 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-t= cp)
=C2=A0 default-toplevel-value(server-use-tcp)
=C2=A0 custom-initi= alize-reset(server-use-tcp (funcall #'#f(compiled-function () #<byte= code 0x1e0000171e91>)))
=C2=A0 custom-declare-variable(server-use-tcp= (funcall #'#f(compiled-function () #<bytecode 0x1e0000171e91>)) = "If non-nil, use TCP sockets instead of local socke..." :set #f(c= ompiled-function (sym val) #<bytecode 0xecd269cdbfc6f97>) :type boole= an :version "22.1")
=C2=A0 byte-code("\300\301\302\303\30= 4\305%\210\306\307\310\311\312DD\313\314\315\316\317\320\321&\11\210\30= 6\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-u= se-tcp funcall function #f(compiled-function () #<bytecode 0x1e0000171e9= 1>) "If non-nil, use TCP sockets instead of local socke..." :s= et #f(compiled-function (sym val) #<bytecode 0xecd269cdbfc6f97>) :typ= e boolean :version "22.1" server-host #f(compiled-function () #&l= t;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 () #<bytecode 0x1e0000171e91>) "The port nu= mber that the server process should lis..." (choice (string :tag "= ;Port number") (const :tag "Random" nil)) "24.1" s= erver-auth-dir #f(compiled-function () #<bytecode 0xae5c6d90276fe>) &= quot;Directory for server authentication files.\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) (string :tag "Password")) &qu= ot;24.3" server-raise-frame #f(compiled-function () #<bytecode 0x1e= 0000171e5d>) "If non-nil, raise frame when switching to a buffer...= " server-visit-hook #f(compiled-function () #<bytecode 0x1e0000171e= 91>) "Hook run when visiting a file for the Emacs server..." h= ook server-switch-hook #f(compiled-function () #<bytecode 0x1e0000171e91= >) "Hook run when switching to a buffer for the Emacs ..." ser= ver-after-make-frame-hook ...] 10)
=C2=A0 (server-start)
=C2=A0 eval-= buffer(#<buffer =C2=A0*load*> nil "/home/username/.emacs" n= il t) =C2=A0; Reading at buffer position 216
=C2=A0 load-with-code-conve= rsion("/home/username/.emacs" "/home/username/.emacs" t= t)
=C2=A0 load("~/.emacs" noerror nomessage)
=C2=A0 startu= p--load-user-init-file(#f(compiled-function () #<bytecode 0xcee8b0bce81b= a0f>) #f(compiled-function () #<bytecode 0x81a386fa1b1b513>) t)=C2=A0 command-line()
=C2=A0 normal-top-level()

G=C3=A1bor <= ;hajovonta@gmail.c= om> ezt =C3=ADrta (id=C5=91pont: 2020. okt. 13., K, 9:17):
=
I s= et them both to t, now I have the following error on startup:
Debugger entered--Lisp error: (file-missing "make client p= rocess failed" "No such file or directory" :name "serve= r-client-test" :family local :server nil :noquery t :service "/ru= n/user/1000/emacs/server")
=C2=A0 make-network-process(:name "= server-client-test" :family local :server nil :noquery t :service &quo= t;/run/user/1000/emacs/server")
=C2=A0 server-running-p("serve= r")
=C2=A0 server-start()
=C2=A0 eval-buffer(#<buffer =C2=A0*= load*> nil "/home/username/.emacs" nil t) =C2=A0; Reading at b= uffer position 27778
=C2=A0 load-with-code-conversion("/home/userna= me/.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-fun= ction () #<bytecode 0x81a386fa1b1b513>) t)
=C2=A0 command-line()=C2=A0 normal-top-level()



Eli Zaretski= i <eliz@gnu.org>= ; ezt =C3=ADrta (id=C5=91pont: 2020. okt. 12., H, 16:50):
> From: Michael Heerdegen <= michael_heerd= egen@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.
--0000000000003e109505b2bae7f2--