unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70702: Useless error message from the reader: Error: invalid-read-syntax ("#")
@ 2024-05-01 19:29 Alan Mackenzie
       [not found] ` <handler.70702.B.171459184521740.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2024-05-01 19:29 UTC (permalink / raw)
  To: 70702

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





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

end of thread, other threads:[~2024-05-06 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 19:29 bug#70702: Useless error message from the reader: Error: invalid-read-syntax ("#") Alan Mackenzie
     [not found] ` <handler.70702.B.171459184521740.ack@debbugs.gnu.org>
2024-05-06 20:19   ` Alan Mackenzie

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