From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34802: 26.1; "Unknown message" when using emacsclient Date: Sun, 10 Mar 2019 11:46:58 +0200 Message-ID: References: <15F92A78-F4D3-48BE-BB17-04A397706CB3@ucsf.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="221699"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: K-9 Mail for Android To: 34802@debbugs.gnu.org, Jared.Lumpe@ucsf.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 10 10:58:36 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2vE4-000vYJ-O9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 10:58:36 +0100 Original-Received: from localhost ([127.0.0.1]:43000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2vE3-0001Dr-Qi for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 05:58:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2vDp-00014I-DQ for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 05:58:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2v3r-0003hE-11 for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 05:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52359) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2v3q-0003go-Rf for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 05:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h2v3q-0004tW-Gx for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 05:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Mar 2019 09:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34802 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, "Lumpe, Jared" , 34802@debbugs.gnu.org Original-Received: via spool by 34802-submit@debbugs.gnu.org id=B34802.155221123118749 (code B ref 34802); Sun, 10 Mar 2019 09:48:02 +0000 Original-Received: (at 34802) by debbugs.gnu.org; 10 Mar 2019 09:47:11 +0000 Original-Received: from localhost ([127.0.0.1]:37670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h2v31-0004sL-0Z for submit@debbugs.gnu.org; Sun, 10 Mar 2019 05:47:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h2v2z-0004s5-36 for 34802@debbugs.gnu.org; Sun, 10 Mar 2019 05:47:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2v2s-0003AE-8g; Sun, 10 Mar 2019 05:47:02 -0400 Original-Received: from [109.253.190.115] (port=43935 helo=[10.128.33.140]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1h2v2r-0005eJ-IN; Sun, 10 Mar 2019 05:47:02 -0400 In-Reply-To: <15F92A78-F4D3-48BE-BB17-04A397706CB3@ucsf.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156217 Archived-At: On March 10, 2019 9:48:58 AM GMT+02:00, "Lumpe, Jared" wrote: > Hello, >=20 > I am encountering an issue when trying to get the value of a long JSON > string using emacsclient=2E > My command looks like "emacsclient -eval '(json-encode > )'" and I am trying to > get the printed result of this command=2E The issue is that emacsclient > is inserting several lines > looking like >=20 > *ERROR*: Unknown message here> >=20 > in the middle of the output=2E I've managed to reduce this down to the > following string of about 1000 > characters which recreates the problem: >=20 > :"=CE=B4","latin1":"delta","ascii":"delta","html":"δ","latex-math-= p":true,"latex":"\\delta","name":"delta"},"contents":[]},{"org_element_type= ":"entity","properties":{"use-brackets-p":false,"end":336,"begin":329,"utf-= 8":"=CF=83","latin1":"sigma","ascii":"sigma","html":"σ","latex-math-p= ":true,"latex":"\\sigma","name":"sigma"},"contents":[]},{"org_element_type"= :"entity","properties":{"use-brackets-p":false,"end":343,"begin":336,"utf-8= ":"=CE=A3","latin1":"Sigma","ascii":"Sigma","html":"Σ","latex-math-p"= :true,"latex":"\\Sigma","name":"Sigma"},"contents":[]},{"org_element_type":= "entity","properties":{"use-brackets-p":false,"end":350,"begin":343,"utf-8"= :"=CE=A9","latin1":"Omega","ascii":"Omega","html":"Ω","latex-math-p":= true,"latex":"\\Omega","name":"Omega"},"contents":[]},{"org_element_type":"= entity","properties":{"use-brackets-p":false,"end":356,"begin":350,"utf-8":= "=CF=89","latin1":"omega","ascii":"omega","html":"ω","latex-math-p":t= rue,"latex":"\\omega","name":"omega"},"contents":[]},@ >=20 > If I add this to a file and run the following two commands: >=20 > emacs -q -eval "(start-server)" & > emacsclient -eval '(with-current-buffer (find-file-noselect > "/Users/student/tmp/badinput=2Etxt") (princ (substring-no-properties > (buffer-string))))' >=20 > I get the following output: >=20 > ":\"=CE=B4\",\"latin1\":\"delta\",\"ascii\":\"delta\",\"html\":\"δ= \",\"latex-math-p\":true,\"latex\":\"\\\\delta\",\"name\":\"delta\"},\"cont= ents\":[]},{\"org_element_type\":\"entity\",\"properties\":{\"use-brackets-= p\":false,\"end\":336,\"begin\":329,\"utf-8\":\"=CF=83\",\"latin1\":\"sigma= \",\"ascii\":\"sigma\",\"html\":\"σ\",\"latex-math-p\":true,\"latex\"= :\"\\\\sigma\",\"name\":\"sigma\"},\"contents\":[]},{\"org_element_type\":\= "entity\",\"properties\":{\"use-brackets-p\":false,\"end\":343,\"begin\":33= 6,\"utf-8\":\"=CE=A3\",\"latin1\":\"Sigma\",\"ascii\":\"Sigma\",\"html\":\"= Σ\",\"latex-math-p\":true,\"latex\":\"\\\\Sigma\",\"name\":\"Sigma\"}= ,\"contents\":[]},{\"org_element_type\":\"entity\",\"properties\":{\"use-br= ackets-p\":false,\"end\":350,\"begin\":343,\"utf-8\":\"=CE=A9\",\"latin1\":= \"Omega\",\"ascii\":\"Omega\",\"html\":\"Ω\",\"latex-math-p\":true,\"= latex\":\"\\\\Omega\",\"name\":\"Omega\"},\"contents\":[]},{\"org_element_t= ype\":\"entity\",\"properties\":{\"use- > *ERROR*: Unknown message: bra > ckets-p\":false,\"end\":356,\"begin\":350,\"utf-8\":\"=CF=89\",\"latin1\= ":\"omega\",\"ascii\":\"omega\",\"html\":\"ω\",\"latex-math-p\":true,= \"latex\":\"\\\\omega\",\"name\":\"omega\"},\"contents\":[]}," >=20 > I am using emacs-plus installed with Homebrew on OSX 10=2E14=2E Hopefull= y > this is enough information=2E Thanks! Does it help to enlarge server-msg-size?