bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#34802: 26.1; "Unknown message" when using emacsclient


From: Eli Zaretskii
Subject: bug#34802: 26.1; "Unknown message" when using emacsclient
Date: Sun, 10 Mar 2019 11:46:58 +0200
User-agent: K-9 Mail for Android

On March 10, 2019 9:48:58 AM GMT+02:00, "Lumpe, Jared" <Jared.Lumpe@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?





reply via email to

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