unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: 70702@debbugs.gnu.org
Subject: bug#70702: Useless error message from the reader: Error: invalid-read-syntax ("#")
Date: Wed, 1 May 2024 19:29:54 +0000	[thread overview]
Message-ID: <ZjKYMhH6dqWB9BM8@ACM> (raw)

Hello, Emacs.

Recently, in my development version, I got the "error message":

    Error: invalid-read-syntax ("#")

while attempting to build Emacs.

This is an utterly useless error message:
(i) "#" is valid syntax in a .el or .elc file.  Only a subsequent
  character causes the invalidity.  The precise character sequence is not
  disclosed.
(ii) The source of the invalid character sequence, a file or buffer or
  string is kept secret.
(iii) The offset of the erring position in the file/buffer/string is not
  disclosed.  Neither is a line number or column number.
(iv) No context is given (e.g. the 32 characters before and after the
  "#").

This unhelpful message is a bug: a correct message would give at least
some of the information listed above.

The appearance, which surely must be false, is that the person
implementing the error messages was not attempting to help those affected
by them.

Come on, Emacs - we can do better than this.

-- 
Alan Mackenzie (Nuremberg, Germany).





             reply	other threads:[~2024-05-01 19:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01 19:29 Alan Mackenzie [this message]
     [not found] ` <handler.70702.B.171459184521740.ack@debbugs.gnu.org>
2024-05-06 20:19   ` bug#70702: Useless error message from the reader: Error: invalid-read-syntax ("#") Alan Mackenzie

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=ZjKYMhH6dqWB9BM8@ACM \
    --to=acm@muc.de \
    --cc=70702@debbugs.gnu.org \
    /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).