unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: emacs-devel@gnu.org
Subject: Re: master da4f1fa550f: server-eval-at: Signal more specific condition on unreadable result
Date: Tue, 14 Mar 2023 09:22:01 +0100	[thread overview]
Message-ID: <87a60fvj2u.fsf@gmail.com> (raw)
In-Reply-To: <875yb72kb9.fsf@athena.silentflame.com> (Sean Whitton's message of "Sat, 11 Mar 2023 11:51:22 -0700")

>>>>> On Sat, 11 Mar 2023 11:51:22 -0700, Sean Whitton <spwhitton@spwhitton.name> said:

    Sean> Hello,
    Sean> On Thu 09 Mar 2023 at 11:02AM +01, Robert Pluim wrote:

    >> 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)

    Sean> I find this less good as a user-visible error message.

OK
    >> (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)

    Sean> Nice, this makes the wording seem less like a tautology, please install!

Done as b9a70865d2c

Robert
-- 



      reply	other threads:[~2023-03-14  8:22 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   ` master da4f1fa550f: server-eval-at: Signal more specific condition on unreadable result Robert Pluim
2023-03-11 18:51     ` Sean Whitton
2023-03-14  8:22       ` Robert Pluim [this message]

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=87a60fvj2u.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).