From: Sean Whitton <spwhitton@spwhitton.name>
To: Robert Pluim <rpluim@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: master da4f1fa550f: server-eval-at: Signal more specific condition on unreadable result
Date: Sat, 11 Mar 2023 11:51:22 -0700 [thread overview]
Message-ID: <875yb72kb9.fsf@athena.silentflame.com> (raw)
In-Reply-To: <87ilfansyb.fsf@gmail.com> (Robert Pluim's message of "Thu, 09 Mar 2023 11:02:20 +0100")
Hello,
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)
I find this less good as a user-visible error message.
> (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)
Nice, this makes the wording seem less like a tautology, please install!
--
Sean Whitton
next prev parent reply other threads:[~2023-03-11 18:51 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 [this message]
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=875yb72kb9.fsf@athena.silentflame.com \
--to=spwhitton@spwhitton.name \
--cc=emacs-devel@gnu.org \
--cc=rpluim@gmail.com \
/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).