unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34802: 26.1; "Unknown message" when using emacsclient
@ 2019-03-10  7:48 Lumpe, Jared
  2019-03-10  9:46 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Lumpe, Jared @ 2019-03-10  7:48 UTC (permalink / raw)
  To: 34802

[-- Attachment #1: Type: text/plain, Size: 30139 bytes --]

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!

-Jared


In GNU Emacs 26.1 (build 1, x86_64-apple-darwin18.0.0, NS appkit-1671.00 Version 10.14 (Build 18A391))
of 2018-10-04 built on d12frosted.local
Windowing system distributor 'Apple', version 10.3.1671
Recent messages:
Auto-evilification could not remap these functions in map ‘org-agenda-mode-map’:
   - ‘org-agenda-filter-remove-all’ originally mapped on ‘|’
org-super-agenda-mode enabled.
Starting a server...
Starting new Ispell process aspell with default dictionary...
Spacemacs is ready.
Loading /Users/student/.emacs.d/.cache/recentf...done
Skipping check for new version (reason: dotfile)
Auto-evilification could not remap these functions in map ‘edebug-mode-map’:
   - ‘edebug-Go-nonstop-mode’ originally mapped on ‘G’

Configured using:
'configure --disable-dependency-tracking --disable-silent-rules
--enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs-plus/26.1/share/info/emacs
--prefix=/usr/local/Cellar/emacs-plus/26.1 --with-xml2 --without-dbus --with-gnutls
--with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained'

Configured features:
JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Spacemacs buffer

Minor modes in effect:
  pupo-mode: t
  purpose-mode: t
  evil-escape-mode: t
  global-display-line-numbers-mode: t
  helm-descbinds-mode: t
  helm-mode: t
  helm-flx-mode: t
  global-git-gutter+-mode: t
  projectile-mode: t
  recentf-mode: t
  winner-mode: t
  global-spacemacs-whitespace-cleanup-mode: t
  spacemacs-whitespace-cleanup-mode: t
  winum-mode: t
  global-vi-tilde-fringe-mode: t
  spaceline-info-mode: t
  spaceline-helm-mode: t
  save-place-mode: t
  savehist-mode: t
  popwin-mode: t
  persp-mode: t
  org-super-agenda-mode: t
  eyebrowse-mode: t
  global-anzu-mode: t
  anzu-mode: t
  editorconfig-mode: t
  clean-aindent-mode: t
  global-magit-file-mode: t
  diff-auto-refine-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  which-key-mode: t
  override-global-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  shell-dirtrack-mode: t
  evil-mode: t
  evil-local-mode: t
  spacemacs-leader-override-mode: t
  global-spacemacs-leader-override-mode: t
  global-hl-line-mode: t
  xterm-mouse-mode: t
  global-auto-revert-mode: t
  ido-vertical-mode: t
  global-page-break-lines-mode: t
  page-break-lines-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/Users/student/.emacs.d/elpa/26.1/develop/ht-20181216.337/ht hides /Users/student/.emacs.d/core/libs/ht
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-stan hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-stan
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-exp hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-exp
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-J hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-J
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-eshell hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-eshell
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-emacs-lisp hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-emacs-lisp
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-gnus hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-gnus
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-css hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-css
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-lob hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-lob
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-forth hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-forth
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-macs hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-macs
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-version hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-version
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-scheme hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-scheme
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-abc hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-abc
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-C hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-C
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-capture hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-capture
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-ref hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-ref
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-clojure hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-clojure
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-mouse hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-mouse
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-ledger hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-ledger
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-ctags hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-ctags
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-entities hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-entities
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-archive hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-archive
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-screen hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-screen
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-haskell hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-haskell
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-asymptote hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-asymptote
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-mhe hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-mhe
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-table hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-table
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-keys hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-keys
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-org hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-org
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-plot hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-plot
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-awk hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-awk
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-groovy hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-groovy
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-octave hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-octave
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-faces hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-faces
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-colview hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-colview
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-R hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-R
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-timer hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-timer
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-ebnf hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-ebnf
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-mobile hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-mobile
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-fortran hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-fortran
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-shell hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-shell
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-perl hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-perl
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-sqlite hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-sqlite
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-sed hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-sed
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-list hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-list
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-ruby hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-ruby
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-eval hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-eval
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-habit hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-habit
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-clock hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-clock
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-html hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-html
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-src hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-src
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-lisp hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-lisp
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-ditaa hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-ditaa
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-pcomplete hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-pcomplete
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-lint hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-lint
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-rmail hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-rmail
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-latex hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-latex
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-sass hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-sass
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-io hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-io
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-tangle hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-tangle
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-calc hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-calc
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-java hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-java
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-icalendar hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-icalendar
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-eww hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-eww
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-md hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-md
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-beamer hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-beamer
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-element hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-element
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-protocol hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-protocol
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-mscgen hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-mscgen
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-gnuplot hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-gnuplot
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-latex hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-latex
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-id hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-id
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-vala hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-vala
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-man hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-man
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-feed hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-feed
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-lua hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-lua
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-table hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-table
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-ocaml hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-ocaml
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-coq hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-coq
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-picolisp hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-picolisp
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-indent hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-indent
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-lilypond hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-lilypond
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-matlab hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-matlab
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-datetree hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-datetree
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-python hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-python
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-bbdb hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-bbdb
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-makefile hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-makefile
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-duration hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-duration
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-agenda hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-agenda
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-dot hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-dot
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-js hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-js
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-publish hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-publish
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-inlinetask hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-inlinetask
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-org hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-org
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-core hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-core
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-compat hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-compat
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-docview hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-docview
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-odt hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-odt
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-plantuml hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-plantuml
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-ascii hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-ascii
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-loaddefs hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-loaddefs
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-w3m hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-w3m
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-bibtex hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-bibtex
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-info hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-info
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-hledger hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-hledger
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-maxima hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-maxima
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-macro hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-macro
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-sql hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-sql
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-attach hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-attach
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-processing hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-processing
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ox-texinfo hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ox-texinfo
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-irc hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-irc
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-crypt hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-crypt
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-footnote hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-footnote
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/org-install hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/org-install
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-comint hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-comint
/Users/student/.emacs.d/elpa/26.1/develop/org-plus-contrib-20190122/ob-shen hides /usr/local/Cellar/emacs-plus/26.1/share/emacs/26.1/lisp/org/ob-shen

Features:
(shadow sort editorconfig-core editorconfig-core-handle editorconfig-fnmatch mail-extr emacsbug
sendmail flx spacemacs-purpose-popwin window-purpose-x imenu-list window-purpose
window-purpose-fixes window-purpose-prefix-overload window-purpose-switch let-alist
window-purpose-layout window-purpose-core window-purpose-configuration window-purpose-utils
evil-escape display-line-numbers helm-command helm-elisp helm-eval edebug helm-info helm-descbinds
helm-mode helm-files helm-buffers helm-tags helm-locate helm-grep helm-regexp helm-utils helm-help
helm-types helm-flx helm helm-source helm-multi-match helm-lib git-gutter-fringe+ fringe-helper
git-gutter+ tramp tramp-compat tramp-loaddefs trampver parse-time projectile grep compile ibuf-ext
ibuffer ibuffer-loaddefs recentf tree-widget fill-column-indicator hl-todo winner xterm-color
spacemacs-whitespace-cleanup ws-butler winum vi-tilde-fringe string-inflection spaceline-config
spaceline-segments spaceline powerline powerline-separators color powerline-themes diminish
saveplace savehist popwin persp-mode osx-trash org-super-agenda org-agenda org-export-json json map
evil-magit git-rebase eyebrowse evil-unimpaired f s evil-mc evil-mc-command-execute
evil-mc-command-record evil-mc-cursor-make evil-mc-region evil-mc-cursor-state evil-mc-undo
evil-mc-vars evil-mc-known-commands evil-mc-common evil-anzu anzu editorconfig clean-aindent-mode
orgit magit-submodule magit-obsolete magit-blame magit-stash magit-bisect magit-push magit-pull
magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos
magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff-mode magit-core
magit-autorevert magit-process magit-margin magit-mode git-commit magit-git magit-section
magit-utils magit-popup crm log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa
gnus-util rmail rmail-loaddefs mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log
with-editor async-bytecomp async server dash hybrid-mode evil-evilified-state which-key use-package
use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key
use-package-core hydra lv cus-edit cus-start cus-load evil evil-keybindings evil-integration
undo-tree diff evil-maps evil-commands reveal flyspell ispell evil-jumps evil-command-window
evil-types evil-search evil-ex shell evil-macros evil-repeat evil-states evil-core evil-common
windmove thingatpt rect evil-digraphs evil-vars bind-map quelpa mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr lisp-mnt help-fns radix-tree ox-odt
rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok
nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree generator
org ob ob-tangle ob-ref ob-lob ob-table org-macro org-footnote org-src ob-comint ob-keys
org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp org-loaddefs find-func cal-menu calendar cal-loaddefs ob-exp ob-core
org-compat ob-eval org-macs hl-line xt-mouse autorevert filenotify cl-extra disp-table wid-edit
spacemacs-dark-theme spacemacs-common format-spec info finder-inf ido-vertical-mode ido
core-spacemacs core-use-package-ext core-transient-state core-micro-state core-toggle
core-keybindings core-fonts-support core-themes-support core-display-init core-jump
core-release-management core-custom-settings core-configuration-layer eieio-compat core-progress-bar
core-spacemacs-buffer core-funcs ht cl help-mode warnings package url-handlers url-parse auth-source
cl-seq password-cache url-vars seq eieio byte-opt bytecomp byte-compile cconv eieio-core
eieio-loaddefs epg epg-config core-command-line pcase core-debug edmacro kmacro derived cl-macs gv
profiler easymenu cl-loaddefs cl-lib core-hooks page-break-lines easy-mmode core-env load-env-vars
rx core-dotspacemacs advice core-emacs-backports subr-x core-dumper time-date tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript
charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded
nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns lcms2 multi-tty
make-network-process emacs)

Memory information:
((conses 16 848573 711677)
(symbols 48 62651 189)
(miscs 40 1076 2731)
(strings 32 188899 99649)
(string-bytes 1 6351712)
(vectors 16 84443)
(vector-slots 8 1340339 403380)
(floats 8 506 1545)
(intervals 56 1737 526)
(buffers 992 14))

[-- Attachment #2: Type: text/html, Size: 57793 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34802: 26.1; "Unknown message" when using emacsclient
  2019-03-10  7:48 bug#34802: 26.1; "Unknown message" when using emacsclient Lumpe, Jared
@ 2019-03-10  9:46 ` Eli Zaretskii
       [not found]   ` <776CE2AF-8BA9-4F72-8F67-CEE4B883F03F@ucsf.edu>
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2019-03-10  9:46 UTC (permalink / raw)
  To: 34802, Jared.Lumpe

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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34802: 26.1; "Unknown message" when using emacsclient
       [not found]   ` <776CE2AF-8BA9-4F72-8F67-CEE4B883F03F@ucsf.edu>
@ 2019-03-11 17:48     ` Eli Zaretskii
  2019-09-22 22:08       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2019-03-11 17:48 UTC (permalink / raw)
  To: Lumpe, Jared; +Cc: 34802

[Please use Reply All to keep the bug tracker address on the CC list.]

> From: "Lumpe, Jared" <Jared.Lumpe@ucsf.edu>
> Date: Mon, 11 Mar 2019 17:33:39 +0000
> 
> Oddly enough, increasing server-msg-size seems to make the problem worse, in that more error messages get printed. I've attached the full string I'm trying to print (still testing by eval-ing a command that visits the file containing the string and does "(princ (buffer-string))"). It's about 9000 characters, but setting server-msg-size to 20000 didn't work. Decreasing it from the default of 1024 seems to affect the number and location of errors printed in a somewhat random way.

Maybe your OS gets in the way.

The error message seemed to say that the long string was cut into
several chunks in the middle of a quoted string, so I suggested to
make server-msg-size larger to avoid this, hoping that the string will
be sent in one chunk.  If that doesn't help, I don't know what to
suggest, because I don't understand what's going on.

Can you show the error message(s) you get with the enlarged
server-msg-size?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34802: 26.1; "Unknown message" when using emacsclient
  2019-03-11 17:48     ` Eli Zaretskii
@ 2019-09-22 22:08       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-22 22:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 34802, Lumpe, Jared

Eli Zaretskii <eliz@gnu.org> writes:

> Can you show the error message(s) you get with the enlarged
> server-msg-size?

More information was requested, but no response was given within a few
months, so I'm closing this bug report.  If the problem still exists,
please reopen this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-22 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-10  7:48 bug#34802: 26.1; "Unknown message" when using emacsclient Lumpe, Jared
2019-03-10  9:46 ` Eli Zaretskii
     [not found]   ` <776CE2AF-8BA9-4F72-8F67-CEE4B883F03F@ucsf.edu>
2019-03-11 17:48     ` Eli Zaretskii
2019-09-22 22:08       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).