GNU bug report logs - #34802
26.1; "Unknown message" when using emacsclient

Previous Next

Package: emacs;

Reported by: "Lumpe, Jared" <Jared.Lumpe <at> ucsf.edu>

Date: Sun, 10 Mar 2019 07:50:02 UTC

Severity: normal

Found in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: 34802 <at> debbugs.gnu.org, Jared.Lumpe <at> ucsf.edu
Subject: bug#34802: 26.1; "Unknown message" when using emacsclient
Date: Sun, 10 Mar 2019 11:46:58 +0200
On March 10, 2019 9:48:58 AM GMT+02:00, "Lumpe, Jared" <Jared.Lumpe <at> ucsf.edu> wrote:
> Hello,
> 
> I am encountering an issue when trying to get the value of a long JSON
> string using emacsclient.
> My command looks like "emacsclient -eval '(json-encode
> <form-that-gets-data>)'" and I am trying to
> get the printed result of this command. The issue is that emacsclient
> is inserting several lines
> looking like
> 
> *ERROR*: Unknown message <a few characters from the expected output
> here>
> 
> in the middle of the output. I've managed to reduce this down to the
> following string of about 1000
> characters which recreates the problem:
> 
> :"δ","latin1":"delta","ascii":"delta","html":"&delta;","latex-math-p":true,"latex":"\\delta","name":"delta"},"contents":[]},{"org_element_type":"entity","properties":{"use-brackets-p":false,"end":336,"begin":329,"utf-8":"σ","latin1":"sigma","ascii":"sigma","html":"&sigma;","latex-math-p":true,"latex":"\\sigma","name":"sigma"},"contents":[]},{"org_element_type":"entity","properties":{"use-brackets-p":false,"end":343,"begin":336,"utf-8":"Σ","latin1":"Sigma","ascii":"Sigma","html":"&Sigma;","latex-math-p":true,"latex":"\\Sigma","name":"Sigma"},"contents":[]},{"org_element_type":"entity","properties":{"use-brackets-p":false,"end":350,"begin":343,"utf-8":"Ω","latin1":"Omega","ascii":"Omega","html":"&Omega;","latex-math-p":true,"latex":"\\Omega","name":"Omega"},"contents":[]},{"org_element_type":"entity","properties":{"use-brackets-p":false,"end":356,"begin":350,"utf-8":"ω","latin1":"omega","ascii":"omega","html":"&omega;","latex-math-p":true,"latex":"\\omega","name":"omega"},"contents":[]},@
> 
> If I add this to a file and run the following two commands:
> 
>     emacs -q -eval "(start-server)" &
> emacsclient -eval '(with-current-buffer (find-file-noselect
> "/Users/student/tmp/badinput.txt") (princ (substring-no-properties
> (buffer-string))))'
> 
> I get the following output:
> 
> ":\"δ\",\"latin1\":\"delta\",\"ascii\":\"delta\",\"html\":\"&delta;\",\"latex-math-p\":true,\"latex\":\"\\\\delta\",\"name\":\"delta\"},\"contents\":[]},{\"org_element_type\":\"entity\",\"properties\":{\"use-brackets-p\":false,\"end\":336,\"begin\":329,\"utf-8\":\"σ\",\"latin1\":\"sigma\",\"ascii\":\"sigma\",\"html\":\"&sigma;\",\"latex-math-p\":true,\"latex\":\"\\\\sigma\",\"name\":\"sigma\"},\"contents\":[]},{\"org_element_type\":\"entity\",\"properties\":{\"use-brackets-p\":false,\"end\":343,\"begin\":336,\"utf-8\":\"Σ\",\"latin1\":\"Sigma\",\"ascii\":\"Sigma\",\"html\":\"&Sigma;\",\"latex-math-p\":true,\"latex\":\"\\\\Sigma\",\"name\":\"Sigma\"},\"contents\":[]},{\"org_element_type\":\"entity\",\"properties\":{\"use-brackets-p\":false,\"end\":350,\"begin\":343,\"utf-8\":\"Ω\",\"latin1\":\"Omega\",\"ascii\":\"Omega\",\"html\":\"&Omega;\",\"latex-math-p\":true,\"latex\":\"\\\\Omega\",\"name\":\"Omega\"},\"contents\":[]},{\"org_element_type\":\"entity\",\"properties\":{\"use-
>     *ERROR*: Unknown message: bra
> ckets-p\":false,\"end\":356,\"begin\":350,\"utf-8\":\"ω\",\"latin1\":\"omega\",\"ascii\":\"omega\",\"html\":\"&omega;\",\"latex-math-p\":true,\"latex\":\"\\\\omega\",\"name\":\"omega\"},\"contents\":[]},"
> 
> I am using emacs-plus installed with Homebrew on OSX 10.14. Hopefully
> this is enough information. Thanks!


Does it help to enlarge server-msg-size?




This bug report was last modified 5 years and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.