all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: 34802@debbugs.gnu.org, Jared.Lumpe@ucsf.edu
Subject: bug#34802: 26.1; "Unknown message" when using emacsclient
Date: Sun, 10 Mar 2019 11:46:58 +0200	[thread overview]
Message-ID: <B5682832-C75A-474B-844A-4C286ABAABD3@gnu.org> (raw)
In-Reply-To: <15F92A78-F4D3-48BE-BB17-04A397706CB3@ucsf.edu>

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	other threads:[~2019-03-10  9:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-10  7:48 bug#34802: 26.1; "Unknown message" when using emacsclient Lumpe, Jared
2019-03-10  9:46 ` Eli Zaretskii [this message]
     [not found]   ` <776CE2AF-8BA9-4F72-8F67-CEE4B883F03F@ucsf.edu>
2019-03-11 17:48     ` Eli Zaretskii
2019-09-22 22:08       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B5682832-C75A-474B-844A-4C286ABAABD3@gnu.org \
    --to=eliz@gnu.org \
    --cc=34802@debbugs.gnu.org \
    --cc=Jared.Lumpe@ucsf.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.