[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24649: 24.5; Why no standard error for "Trailing garbage following e
bug#24649: 24.5; Why no standard error for "Trailing garbage following expression"?
Fri, 23 Aug 2019 02:25:37 +0200
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Lars Ingebrigtsen <address@hidden> writes:
> Drew Adams <address@hidden> writes:
>> Shouldn't this error be a standard error? If not a new standard error,
>> shouldn't it at least use one of the existing standard errors, such as
>> `scan-error' or `invalid-read-syntax'?
>> Otherwise, how to easily handle this error (e.g., to tell the user to
>> correct the input being read and then read again)?
> Makes sense to me. I'm not sure what signal to use, though -- anybody
> got an idea?
> + xsignal1 (Qinvalid_read_syntax,
> + build_string ("Trailing garbage following expression"));
There weren't any comments, so I've now applied this. If somebody has a
better idea for the error signal, please amend.
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#24649: 24.5; Why no standard error for "Trailing garbage following expression"?,
Lars Ingebrigtsen <=