unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: emacs-devel@gnu.org
Cc: Sean Whitton <spwhitton@spwhitton.name>
Subject: Re: master da4f1fa550f: server-eval-at: Signal more specific condition on unreadable result
Date: Thu, 09 Mar 2023 11:02:20 +0100	[thread overview]
Message-ID: <87ilfansyb.fsf@gmail.com> (raw)
In-Reply-To: <20230309000923.641B0C13A82@vcs2.savannah.gnu.org> (Sean Whitton's message of "Wed, 8 Mar 2023 19:09:23 -0500 (EST)")

>>>>> On Wed,  8 Mar 2023 19:09:23 -0500 (EST), Sean Whitton <spwhitton@spwhitton.name> said:

    Sean> branch: master
    Sean> commit da4f1fa550f753e76c611b313d4f00987daed5ad
    Sean> Author: Sean Whitton <spwhitton@spwhitton.name>
    Sean> Commit: Sean Whitton <spwhitton@spwhitton.name>

    Sean>     server-eval-at: Signal more specific condition on unreadable result
    
    Sean>     * lisp/server.el (server-return-invalid-read-syntax): New error
    Sean>     signal.
    Sean>     (server-eval-at): Re-signal invalid-read-syntax as
    Sean>     server-return-invalid-read-syntax (bug#61658).

Iʼd suggest the following on top:

diff --git a/lisp/server.el b/lisp/server.el
index 89aedc72d52..1bbfdced5b0 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -1930,7 +1930,7 @@ server-unload-function
   nil)
 
 (define-error 'server-return-invalid-read-syntax
-              "Emacs server returned unreadable result of evaluation"
+              "Result of evaluation by Emacs server is unreadable"
               'invalid-read-syntax)
 
 (defun server-eval-at (server form)
@@ -1941,10 +1941,10 @@ server-eval-at
 
 This function signals `error' if it could not contact the server.
 
-This function signals `server-return-invalid-read-syntax' if it
-couldn't read the result of evaluation printed by the server.
-This will occur whenever the result of evaluating FORM is something
-not readably printable."
+This function signals `server-return-invalid-read-syntax' if
+`read' fails on the result returned by the server.
+This will occur whenever the result of evaluating FORM is
+something that cannot be printed readably."
   (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir))
          (server-file (expand-file-name server server-dir))
          (coding-system-for-read 'binary)

Robert
-- 



       reply	other threads:[~2023-03-09 10:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <167832056288.21107.13816783611653909117@vcs2.savannah.gnu.org>
     [not found] ` <20230309000923.641B0C13A82@vcs2.savannah.gnu.org>
2023-03-09 10:02   ` Robert Pluim [this message]
2023-03-11 18:51     ` master da4f1fa550f: server-eval-at: Signal more specific condition on unreadable result Sean Whitton
2023-03-14  8:22       ` Robert Pluim

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ilfansyb.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=spwhitton@spwhitton.name \
    /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 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).